| | |
| | | |
| | | @GetMapping("/newGetTjPat") |
| | | @ApiOperation(value = "新的查询体检信息接口") |
| | | public AjaxResult newGetTjPat() { |
| | | List<Map<String, Object>> maps = testMapper.newGetTjPat(); |
| | | public AjaxResult newGetTjPat(@RequestParam(required = false)String pacCode, |
| | | @RequestParam(required = false)String pacName, |
| | | @RequestParam(required = false)String pacRemark) { |
| | | List<Map<String, Object>> maps = testMapper.newGetTjPat(pacCode,pacName,pacRemark); |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | | return AjaxResult.success(maps); |
| | | } |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.DigestUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @GetMapping("/newGetTjPat") |
| | | @ApiOperation(value = "查询his数据库返回新的数据") |
| | | public AjaxResult newGetTjPat() { |
| | | List<Map<String, Object>> maps = testMapper.newGetTjPat(); |
| | | public AjaxResult newGetTjPat(@RequestParam(required = false)String pacCode, |
| | | @RequestParam(required = false)String pacName, |
| | | @RequestParam(required = false)String pacRemark) { |
| | | List<Map<String, Object>> maps = testMapper.newGetTjPat(pacCode,pacName,pacRemark); |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | | return AjaxResult.success(maps); |
| | | } |
| | |
| | | if(null==ltkjTjPat){ |
| | | tjvLtkjvtjpatService.save(tjPatByIdCard); |
| | | } |
| | | } |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | | //再根据身份证号写customer表 |
| | | TjCustomer tjCustomer = tjCustomerService.getTjCustomerByCusIdCard(cusIdcard); |
| | |
| | | } |
| | | |
| | | } |
| | | } |
| | | //end====2023.12.12 |
| | | LambdaQueryWrapper<TjReservation> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjReservation::getIdCard, cusIdcard); |
| | |
| | | public List<LtkjTjPat> getTjPat(); |
| | | |
| | | @DataSource(value = DataSourceType.SLAVE_PACS) |
| | | @Select("select fcard_iD xh,fcard_no pacCode,pat_name pacName,\n" + |
| | | @Select({"<script> select fcard_iD xh,fcard_no pacCode,pat_name pacName,\n" + |
| | | " (case when patsex_id='0' then '男' when patsex_id='1' then '女' else '未知' end )+';'+brnl detail,\n" + |
| | | " pat_id price , mobile pacRemark\n" + |
| | | " from histjv_ltkjvtjpat") |
| | | public List<Map<String,Object>> newGetTjPat(); |
| | | " pat_id price , mobile pacRemark" + |
| | | " from histjv_ltkjvtjpat where 1=1 "+ |
| | | " <when test='pacCode!=null'>" + |
| | | " AND fcard_no = #{pacCode}" + |
| | | "</when>" + |
| | | " <when test='pacName!=null'>" + |
| | | " AND pat_name = #{pacName}" + |
| | | "</when>" + |
| | | " <when test='pacRemark!=null'>" + |
| | | " AND mobile = #{pacRemark}" + |
| | | "</when>" + |
| | | "</script>"}) |
| | | public List<Map<String,Object>> newGetTjPat(@Param("pacCode")String pacCode, |
| | | @Param("pacName")String pacName, |
| | | @Param("pacRemark")String pacRemark); |
| | | |
| | | |
| | | @DataSource(value = DataSourceType.SLAVE_HIS) |
| | | @Select("SELECT * FROM histjv_LTKJVTJPAT where Ltrim(Rtrim(fcard_no)) = #{id} or Ltrim(Rtrim(fcard_id))=#{id} ") |