Bläddra i källkod

新增对外万事通查询核酸检查结果接口

Administrator 2 år sedan
förälder
incheckning
f04b1a7a3b

+ 21 - 0
boman-web-core/src/main/java/com/boman/web/core/controller/AccountingDataController.java

@@ -105,4 +105,25 @@ public class AccountingDataController extends BaseController {
         taskService.insertAccountingData();
     }
 
+
+
+
+    /***
+     * 对外万事通开放接口
+     * 根据身份证号去查询核酸检测列表
+     */
+    @GetMapping("/nucleicAcid/wanShiTongList")
+    public AjaxResult wanShiTongList( AccountingDataVo accountingData) {
+        return accountingDataService.wanShiTongList(accountingData);
+    }
+
+
+    /***
+     * 对外万事通开放接口
+     * 根据身份证号去查询核酸检测列表
+     */
+    @GetMapping("/nucleicAcid/wanShiTongInfo")
+    public AjaxResult wanShiTongInfo( AccountingDataVo accountingData) {
+        return accountingDataService.wanShiTongInfo(accountingData);
+    }
 }

+ 4 - 0
boman-web-core/src/main/java/com/boman/web/core/mapper/AccountingDataMapper.java

@@ -77,4 +77,8 @@ public interface AccountingDataMapper {
     int tongjiCzC(@Param("startTime")String startTime, @Param("endTime")String endTime, @Param("areaId")String areaId);
 
     List<AccountingDataVo> detailedInfoByIdCard(AccountingDataVo accountingData);
+
+    List<AccountingDataVo> selectWanShiTongList(AccountingDataVo accountingData);
+
+    AccountingDataVo selectWanShiTongInfo(AccountingDataVo accountingData);
 }

+ 23 - 0
boman-web-core/src/main/java/com/boman/web/core/service/accounting/AccountingDataServiceImpl.java

@@ -165,6 +165,29 @@ public class AccountingDataServiceImpl implements IAccountingDataService {
         return AjaxResult.success(accountingDataVoList.get(0));
     }
 
+    /***
+     * 对外万事通开放接口
+     * 根据身份证号去查询核酸检测列表
+     */
+    @Override
+    public AjaxResult wanShiTongList(AccountingDataVo accountingData) {
+        String zjhm = accountingData.getZjhm();
+        if (StringUtils.isEmpty(zjhm)){
+            return AjaxResult.error("身份证号码未提交");
+        }
+        List<AccountingDataVo> accountingDataVos = accountingDataMapper.selectWanShiTongList(accountingData);
+        return AjaxResult.success(accountingDataVos);
+    }
+    /***
+     * 对外万事通开放接口
+     * 根据身份证号去查询核酸检测详情
+     */
+    @Override
+    public AjaxResult wanShiTongInfo(AccountingDataVo accountingData) {
+        AccountingDataVo accountingDataVo = accountingDataMapper.selectWanShiTongInfo(accountingData);
+        return AjaxResult.success(accountingDataVo);
+    }
+
 
     /**
      * 核酸数据导出(户籍)

+ 2 - 0
boman-web-core/src/main/java/com/boman/web/core/service/accounting/IAccountingDataService.java

@@ -63,4 +63,6 @@ public interface IAccountingDataService {
     int tongjiCzZ(String startTime, String endTime, String areaId);
 
     AjaxResult detailedInfo(AccountingDataVo accountingData);
+    AjaxResult wanShiTongList(AccountingDataVo accountingData);
+    AjaxResult wanShiTongInfo(AccountingDataVo accountingData);
 }

+ 10 - 0
boman-web-core/src/main/resources/mapper/AccountingDateMapper.xml

@@ -544,7 +544,17 @@
                 and z.village_id = #{areaId}
               GROUP BY zjhm) a;
     </select>
+    <select id="selectWanShiTongList" resultMap="AccountingDataResult">
+        select id, jcjg,jcdd, cjsj, jcsj from accounting_data
+        <where> is_del = 'N'
+        <if test="zjhm != null  and zjhm != ''">and zjhm = #{zjhm}</if>
+        <if test=" params.startTime != null  and params.startTime != ''">and cjsj bewteen #{params.startTime} and #{params.endTime}</if>
+        </where>
+    </select>
 
+    <select id="selectWanShiTongInfo" resultMap="AccountingDataResult">
 
+        select xm,zjhm,
+    </select>
 
 </mapper>