| | |
| | | import com.ltkj.common.enums.DataSourceType; |
| | | import com.ltkj.framework.config.UserHoder; |
| | | import com.ltkj.framework.datasource.DynamicDataSourceContextHolder; |
| | | import com.ltkj.hosp.domain.TjCustomer; |
| | | import com.ltkj.hosp.domain.TjOrder; |
| | | import com.ltkj.hosp.domain.TjOrderRemark; |
| | | import com.ltkj.hosp.domain.TjProject; |
| | | import com.ltkj.hosp.domain.*; |
| | | import com.ltkj.hosp.service.*; |
| | | import com.ltkj.hosp.sqlDomain.*; |
| | | import com.ltkj.hosp.mapper.TestMapper; |
| | | import com.ltkj.system.service.ISysDeptService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.redis.core.ConvertingCursor; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpSession; |
| | | import java.sql.ResultSet; |
| | | import java.sql.SQLException; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.ltkj.framework.datasource.DynamicDataSourceContextHolder.log; |
| | | import static org.apache.poi.hemf.record.emfplus.HemfPlusRecordType.save; |
| | |
| | | private LtkjHisUserService hisUserService; |
| | | @Resource |
| | | private ITjProjectService tjProjectService; |
| | | @Autowired |
| | | private ITjOrderDetailService tjOrderDetailService; |
| | | @Resource |
| | | private ITjOrderRemarkService tjOrderRemarkService; |
| | | |
| | | |
| | | @GetMapping("/getTjHyBgList") |
| | | @ApiOperation(value = "查询lis数据库项目信息接口") |
| | |
| | | |
| | | |
| | | @GetMapping("/newGetTjPat") |
| | | @ApiOperation(value = "新的查询体检信息接口") |
| | | @ApiOperation(value = "A------新的查询体检信息接口") |
| | | public AjaxResult newGetTjPat(@RequestParam(required = false)String pacCode, |
| | | @RequestParam(required = false)String pacName, |
| | | @RequestParam(required = false)String pacRemark) { |
| | | @RequestParam(required = false)String pacRemark, HttpServletRequest request, |
| | | HttpSession session) { |
| | | |
| | | // List<Map<String, Object>> maps = testMapper.newGetTjPat111111(pacName); |
| | | List<Map<String, Object>> maps = testMapper.newGetTjPat(pacCode,pacName,pacRemark); |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | | // List<Map<String, Object>> list=new ArrayList<>(); |
| | | // if(null !=maps && maps.size()>0){ |
| | | // for (Map<String, Object> map : maps) { |
| | | // String pacCode1 = map.get("pacCode").toString(); |
| | | // List<String> s = orderService.selectTjOrderByCardId1(); |
| | | // if(null !=s && s.size()>0){ |
| | | // if(s.contains(pacCode1)){ |
| | | //// maps.remove(map); |
| | | // continue; |
| | | // } |
| | | // list.add(map); |
| | | // } |
| | | // } |
| | | // } |
| | | // return AjaxResult.success(list); |
| | | |
| | | List<String> strings = orderService.selectTjOrderByCardId1(); |
| | | if(null !=strings && strings.size()>0){ |
| | | List<Map<String, Object>> collect = maps.stream() |
| | | .filter(item -> !strings.contains(item.get("pacCode").toString())).collect(Collectors.toList()); |
| | | return AjaxResult.success(collect); |
| | | } |
| | | return AjaxResult.success(maps); |
| | | // return AjaxResult.success(collect); |
| | | } |
| | | |
| | | |
| | |
| | | @GetMapping("/getTjYxjcList") |
| | | @ApiOperation(value = "查询影响检查项目") |
| | | public AjaxResult getTjYxjcList() { |
| | | List<Map<String, Object>> tjYxjcList = testMapper.getTjYxjcList("杨云云",null,null,null); |
| | | List<Map<String, Object>> tjYxjcList = testMapper.getTjYxjcList("杨云云",null,null); |
| | | return AjaxResult.success(tjYxjcList); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getHuaYanProByTjNum") |
| | | @ApiOperation(value = "根据体检号查询化验项目接口") |
| | | public AjaxResult getHuaYanProByTjNum(@RequestParam @ApiParam(value = "体检号") String tjNumber) { |
| | | Map<String,Object> map=new HashMap<>(); |
| | | |
| | | List<TjOrderDetail> tjOrderDetails = tjOrderDetailService.addHuaYanTable(tjNumber); |
| | | List<TjOrderRemark> tjOrderRemarks = tjOrderRemarkService.addHuaYanTable(tjNumber); |
| | | map.put("tjOrderDetails",tjOrderDetails); |
| | | map.put("tjOrderRemarks",tjOrderRemarks); |
| | | return AjaxResult.success(map); |
| | | } |
| | | |
| | | |
| | | } |