| | |
| | | public AjaxResult newGetTjPat(@RequestParam(required = false)String pacCode, |
| | | @RequestParam(required = false)String pacName, |
| | | @RequestParam(required = false)String pacRemark) { |
| | | // List<Map<String, Object>> maps = testMapper.newGetTjPat111111(pacName); |
| | | List<Map<String, Object>> maps = testMapper.newGetTjPat(pacCode,pacName,pacRemark); |
| | | DynamicDataSourceContextHolder.clearDataSourceType(); |
| | | return AjaxResult.success(maps); |
| | |
| | | private ITjCustomerService customerService; |
| | | @Resource |
| | | private ITjCustomerService tjCustomerService; |
| | | |
| | | @Autowired |
| | | private ITjAskWorkLogService tjAskWorkLogService; |
| | | @Autowired |
| | | private ITjHarmTypeLogService tjHarmTypeLogService; |
| | | |
| | | @Autowired |
| | | private ITjHarmTypeService tjHarmTypeService; |
| | | |
| | | @Resource |
| | | private ITjOrderService tjOrderService; |
| | | |
| | | |
| | | /** |
| | | * 查询问诊列表 |
| | | */ |
| | | @GetMapping("/getZhengZhuang") |
| | | @ApiOperation(value = "获取症状接口集") |
| | | public AjaxResult getZhengZhuang() { |
| | | List<DictZhengzhuang> zhengZhuang = tjAskMedicalHistoryService.getZhengZhuang(); |
| | | return AjaxResult.success(zhengZhuang); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | @ApiOperation(value = "根据客户id获取问诊详细信息") |
| | | public AjaxResult getInfoById(@RequestParam String tjNumber) { |
| | | if (null != tjNumber && !"".equals(tjNumber)) { |
| | | LambdaQueryWrapper<TjAskMedicalHistory> wq = new LambdaQueryWrapper<>(); |
| | | wq.eq(TjAskMedicalHistory::getTjNum, tjNumber); |
| | | TjAskMedicalHistory one = tjAskMedicalHistoryService.getOne(wq); |
| | | // LambdaQueryWrapper<TjAskMedicalHistory> wq = new LambdaQueryWrapper<>(); |
| | | // wq.eq(TjAskMedicalHistory::getTjNum, tjNumber); |
| | | // TjAskMedicalHistory one = tjAskMedicalHistoryService.getOne(wq); |
| | | TjAskMedicalHistory one = tjAskMedicalHistoryService.selectTjAskMedicalHistoryByTjNum(tjNumber); |
| | | if (one != null) { |
| | | LambdaQueryWrapper<TjAskWorkLog> wqq = new LambdaQueryWrapper<>(); |
| | | wqq.eq(TjAskWorkLog::getTjNumber, tjNumber); |
| | |
| | | TjAskMedicalHistory a = new TjAskMedicalHistory(); |
| | | LambdaQueryWrapper<TjOrder> wqqq = new LambdaQueryWrapper<>(); |
| | | wqqq.eq(TjOrder::getTjNumber, tjNumber); |
| | | final TjOrder one1 = tjOrderService.getOne(wqqq); |
| | | a.setCusId(one1.getUserId()); |
| | | TjCustomer byId11 = customerService.getById(a.getCusId()); |
| | | if (byId11 != null) { |
| | | a.setCusName(MatchUtils.hideCusName(byId11.getCusName())); |
| | | final TjOrder order = tjOrderService.getOne(wqqq); |
| | | a.setCusId(order.getUserId()); |
| | | a.setTjNum(order.getTjNumber()); |
| | | a.setTjLx(order.getTjCategory()); |
| | | TjCustomer customer = customerService.getById(a.getCusId()); |
| | | if (customer != null) { |
| | | a.setCusName(MatchUtils.hideCusName(customer.getCusName())); |
| | | a.setCusIdCard(customer.getCusIdcard()); |
| | | a.setCusSex(String.valueOf(customer.getCusSex())); |
| | | } |
| | | return AjaxResult.success(a); |
| | | } |
| | |
| | | } else { |
| | | b = tjAskMedicalHistoryService.save(tjAskMedicalHistory); |
| | | } |
| | | //boolean b = tjAskMedicalHistoryService.saveOrUpdate(tjAskMedicalHistory); |
| | | if (b) { |
| | | List<TjAskHistorys> tjAskHistorysList = tjAskMedicalHistory.getTjAskHistorysList(); |
| | | if (tjAskHistorysList != null && tjAskHistorysList.size() > 0) { |
| | |
| | | log.setCusName(tjAskMedicalHistory.getCusName()); |
| | | log.setTjNumber(tjAskMedicalHistory.getTjNum()); |
| | | log.setWorkId(askWorkLog.getId()); |
| | | tjHarmTypeLogService.saveOrUpdate(log); |
| | | tjHarmTypeLogService.save(log); |
| | | } |
| | | } |
| | | } |
| | |
| | | if (null != tjReservation.getDepartment()) tjOrder.setFirmDeptName(tjReservation.getDepartment()); |
| | | if (null != tjReservation.getJobNo()) tjOrder.setFirmWorkId(tjReservation.getJobNo()); |
| | | if (null != tjReservation.getPacId()) tjOrder.setPacId(tjReservation.getPacId()); |
| | | if (null != tjReservation.getTjCategory()) tjOrder.setTjCategory(tjReservation.getTjCategory()); |
| | | if (null != tjReservation.getGroupingId()){ |
| | | tjOrder.setGroupId(tjReservation.getGroupingId()); |
| | | tjOrder.setFirmDeptId(tjReservation.getPacId()); |
| | |
| | | |
| | | import cn.hutool.core.date.DateTime; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ltkj.LtkjApplication; |
| | | import com.ltkj.common.core.redis.RedisCache; |
| | | import com.ltkj.common.utils.SecurityUtils; |
| | | import com.ltkj.hosp.domain.DictHosp; |
| | | import com.ltkj.hosp.domain.TjProject; |
| | | import com.ltkj.hosp.service.*; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.junit.Test; |
| | |
| | | import org.springframework.data.redis.core.ScanOptions; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.test.context.junit4.SpringRunner; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | |
| | | // |
| | | // @Autowired |
| | | // private ITjGroupingProService groupingProService; |
| | | // @Autowired |
| | | // private ITjProjectService projectService; |
| | | @Autowired |
| | | private ITjProjectService projectService; |
| | | // |
| | | // @Resource |
| | | // private ITjOrderService tjOrderService; |
| | |
| | | // System.out.println(list); |
| | | // System.out.println(redisCache.getMultiCacheMapValue("check",null)); |
| | | // } |
| | | |
| | | /* LambdaQueryWrapper<TjProject> wq=new LambdaQueryWrapper<>(); |
| | | wq.eq(TjProject::getProParentId,0); |
| | | List<TjProject> projectList = projectService.list(wq); |
| | | for (TjProject project : projectList) { |
| | | LambdaQueryWrapper<TjProject> wqq=new LambdaQueryWrapper<>(); |
| | | wqq.eq(TjProject::getProParentId,project.getProId()); |
| | | List<TjProject> list = projectService.list(wqq); |
| | | for (TjProject tjProject : list) { |
| | | tjProject.setDeptId(project.getDeptId()); |
| | | projectService.updateById(tjProject); |
| | | } |
| | | }*/ |
| | | } |
| | | |
| | | |
New file |
| | |
| | | package com.ltkj.common.mybatis; |
| | | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import org.apache.ibatis.type.BaseTypeHandler; |
| | | import org.apache.ibatis.type.JdbcType; |
| | | |
| | | import java.sql.CallableStatement; |
| | | import java.sql.PreparedStatement; |
| | | import java.sql.ResultSet; |
| | | import java.sql.SQLException; |
| | | |
| | | /* |
| | | <columnOverride column="ids" javaType="java.lang.Integer[]" typeHandler="JsonIntegerArrayTypeHandler"/> |
| | | */ |
| | | public class JsonIntegerArrayTypeHandler extends BaseTypeHandler<Integer[]> { |
| | | private static final ObjectMapper mapper = new ObjectMapper(); |
| | | |
| | | @Override |
| | | public void setNonNullParameter(PreparedStatement ps, int i, Integer[] parameter, JdbcType jdbcType) throws SQLException { |
| | | ps.setString(i, toJson(parameter)); |
| | | } |
| | | |
| | | @Override |
| | | public Integer[] getNullableResult(ResultSet rs, String columnName) throws SQLException { |
| | | return this.toObject(rs.getString(columnName)); |
| | | } |
| | | |
| | | @Override |
| | | public Integer[] getNullableResult(ResultSet rs, int columnIndex) throws SQLException { |
| | | return this.toObject(rs.getString(columnIndex)); |
| | | } |
| | | |
| | | @Override |
| | | public Integer[] getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { |
| | | return this.toObject(cs.getString(columnIndex)); |
| | | } |
| | | |
| | | private String toJson(Integer[] params) { |
| | | try { |
| | | return mapper.writeValueAsString(params); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return "[]"; |
| | | } |
| | | |
| | | private Integer[] toObject(String content) { |
| | | if (content != null && !content.isEmpty()) { |
| | | try { |
| | | return (Integer[]) mapper.readValue(content, Integer[].class); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } else { |
| | | return null; |
| | | } |
| | | } |
| | | } |
New file |
| | |
| | | package com.ltkj.common.mybatis; |
| | | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.JsonNode; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import org.apache.ibatis.type.BaseTypeHandler; |
| | | import org.apache.ibatis.type.JdbcType; |
| | | |
| | | import java.io.IOException; |
| | | import java.sql.CallableStatement; |
| | | import java.sql.PreparedStatement; |
| | | import java.sql.ResultSet; |
| | | import java.sql.SQLException; |
| | | |
| | | /* |
| | | <columnOverride column="json_string" javaType="com.fasterxml.jackson.databind.JsonNode" typeHandler="JsonNodeTypeHandler"/> |
| | | */ |
| | | public class JsonNodeTypeHandler extends BaseTypeHandler<JsonNode> { |
| | | private static final ObjectMapper mapper = new ObjectMapper(); |
| | | |
| | | |
| | | @Override |
| | | public void setNonNullParameter(PreparedStatement ps, int i, JsonNode parameter, JdbcType jdbcType) throws SQLException { |
| | | String str = null; |
| | | try { |
| | | str = mapper.writeValueAsString(parameter); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | str = "{}"; |
| | | } |
| | | ps.setString(i, str); |
| | | } |
| | | |
| | | @Override |
| | | public JsonNode getNullableResult(ResultSet rs, String columnName) throws SQLException { |
| | | String jsonSource = rs.getString(columnName); |
| | | if (jsonSource == null) { |
| | | return null; |
| | | } |
| | | try { |
| | | JsonNode jsonNode = mapper.readTree(jsonSource); |
| | | return jsonNode; |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public JsonNode getNullableResult(ResultSet rs, int columnIndex) throws SQLException { |
| | | String jsonSource = rs.getString(columnIndex); |
| | | if (jsonSource == null) { |
| | | return null; |
| | | } |
| | | try { |
| | | JsonNode jsonNode = mapper.readTree(jsonSource); |
| | | return jsonNode; |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return null; |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public JsonNode getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { |
| | | String jsonSource = cs.getString(columnIndex); |
| | | if (jsonSource == null) { |
| | | return null; |
| | | } |
| | | try { |
| | | JsonNode jsonNode = mapper.readTree(jsonSource); |
| | | return jsonNode; |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ltkj.common.mybatis; |
| | | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import org.apache.ibatis.type.BaseTypeHandler; |
| | | import org.apache.ibatis.type.JdbcType; |
| | | |
| | | import java.sql.CallableStatement; |
| | | import java.sql.PreparedStatement; |
| | | import java.sql.ResultSet; |
| | | import java.sql.SQLException; |
| | | |
| | | /* |
| | | <columnOverride column="urls" javaType="java.lang.String[]" typeHandler="JsonStringArrayTypeHandler"/> |
| | | */ |
| | | public class JsonStringArrayTypeHandler extends BaseTypeHandler<String[]> { |
| | | private static final ObjectMapper mapper = new ObjectMapper(); |
| | | |
| | | @Override |
| | | public void setNonNullParameter(PreparedStatement ps, int i, String[] parameter, JdbcType jdbcType) throws SQLException { |
| | | ps.setString(i, toJson(parameter)); |
| | | } |
| | | |
| | | @Override |
| | | public String[] getNullableResult(ResultSet rs, String columnName) throws SQLException { |
| | | return this.toObject(rs.getString(columnName)); |
| | | } |
| | | |
| | | @Override |
| | | public String[] getNullableResult(ResultSet rs, int columnIndex) throws SQLException { |
| | | return this.toObject(rs.getString(columnIndex)); |
| | | } |
| | | |
| | | @Override |
| | | public String[] getNullableResult(CallableStatement cs, int columnIndex) throws SQLException { |
| | | return this.toObject(cs.getString(columnIndex)); |
| | | } |
| | | |
| | | private String toJson(String[] params) { |
| | | try { |
| | | return mapper.writeValueAsString(params); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return "[]"; |
| | | } |
| | | |
| | | private String[] toObject(String content) { |
| | | if (content != null && !content.isEmpty()) { |
| | | try { |
| | | return (String[]) mapper.readValue(content, String[].class); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } else { |
| | | return null; |
| | | } |
| | | } |
| | | } |
| | |
| | | // 这里是测试写法,具体的value可以通过请求参数传递过来 |
| | | properties.setProperty("druid.enabled",props.getProperty("hisenabled")); |
| | | properties.setProperty("druid.driverClassName","com.microsoft.sqlserver.jdbc.SQLServerDriver"); |
| | | properties.setProperty("druid.url","jdbc:sqlserver://"+props.getProperty("hisip")+":"+props.getProperty("hisprot")+";DatabaseName="+props.getProperty("hisname")); |
| | | properties.setProperty("druid.url","jdbc:sqlserver://"+props.getProperty("hisip")+":"+props.getProperty("hisprot")+";DatabaseName="+props.getProperty("hisname")+ |
| | | ";&characterEncoding=utf8"); |
| | | properties.setProperty("druid.username",props.getProperty("hisusername")); |
| | | properties.setProperty("druid.password",props.getProperty("hispassword")); |
| | | dataSource.restart(properties); |
| | |
| | | // 这里是测试写法,具体的value可以通过请求参数传递过来 |
| | | properties.setProperty("druid.enabled",props.getProperty("lisenabled")); |
| | | properties.setProperty("druid.driverClassName","com.microsoft.sqlserver.jdbc.SQLServerDriver"); |
| | | properties.setProperty("druid.url","jdbc:sqlserver://"+props.getProperty("lisip")+":"+props.getProperty("lisprot")+";DatabaseName="+props.getProperty("lisname")); |
| | | properties.setProperty("druid.url","jdbc:sqlserver://"+props.getProperty("lisip")+":"+props.getProperty("lisprot")+";DatabaseName="+props.getProperty("lisname")+ |
| | | ";&characterEncoding=utf8"); |
| | | properties.setProperty("druid.username",props.getProperty("lisusername")); |
| | | properties.setProperty("druid.password",props.getProperty("lispassword")); |
| | | dataSource.restart(properties); |
| | |
| | | // 这里是测试写法,具体的value可以通过请求参数传递过来 |
| | | properties.setProperty("druid.enabled",props.getProperty("pacsenabled")); |
| | | properties.setProperty("druid.driverClassName","com.microsoft.sqlserver.jdbc.SQLServerDriver"); |
| | | properties.setProperty("druid.url","jdbc:sqlserver://"+props.getProperty("pacsip")+":"+props.getProperty("pacsprot")+";DatabaseName="+props.getProperty("pacsname")); |
| | | properties.setProperty("druid.url","jdbc:sqlserver://"+props.getProperty("pacsip")+":"+props.getProperty("pacsprot")+";DatabaseName="+props.getProperty("pacsname")+ |
| | | ";&characterEncoding=utf8"); |
| | | properties.setProperty("druid.username",props.getProperty("pacsusername")); |
| | | properties.setProperty("druid.password",props.getProperty("pacspassword")); |
| | | dataSource.restart(properties); |
New file |
| | |
| | | package com.ltkj.hosp.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import com.ltkj.common.annotation.Excel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @Company: 西安路泰科技有限公司 |
| | | * @Author: zjh |
| | | * @Date: 2023/12/29 0029 15:37 |
| | | */ |
| | | |
| | | @Data |
| | | public class DictZhengzhuang { |
| | | @TableId(type= IdType.AUTO) |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long id; |
| | | |
| | | @Excel(name = "项目名") |
| | | private String proName; |
| | | } |
| | |
| | | package com.ltkj.hosp.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | import lombok.NoArgsConstructor; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | |
| | | private Long icdId; |
| | | |
| | | |
| | | @ApiModelProperty(value = "疾病类型") |
| | | private String type; |
| | | |
| | | |
| | | public void setDiseaseId(Long diseaseId) { |
| | | this.diseaseId = diseaseId; |
| | | } |
| | |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | import com.ltkj.common.annotation.Excel; |
| | | import com.ltkj.common.core.domain.BaseEntity; |
| | | import com.ltkj.common.mybatis.JsonStringArrayTypeHandler; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | @ApiModelProperty(value = "客户身份证号") |
| | | @TableField(exist = false) |
| | | private String cusIdCard; |
| | | |
| | | @ApiModelProperty(value = "客户性别") |
| | | @TableField(exist = false) |
| | | private String cusSex; |
| | | |
| | | |
| | | @ApiModelProperty(value = "客户体检类型2=个人,1=团队") |
| | | @TableField(exist = false) |
| | | private String tjLx; |
| | | |
| | | /** |
| | | * 客户名 |
| | |
| | | @ApiModelProperty(value = "末次月经或停经年龄") |
| | | @Excel(name = "末次月经或停经年龄") |
| | | private String mociage; |
| | | |
| | | |
| | | @ApiModelProperty(value = "月经是否异常") |
| | | private String yjsfyc; |
| | | |
| | | /** |
| | | * 现有子女 |
| | |
| | | @TableField(exist = false) |
| | | private String tjCategory; |
| | | |
| | | @ApiModelProperty(value = "症状数据集") |
| | | @TableField(typeHandler = JsonStringArrayTypeHandler.class) |
| | | private String[] zzsjj; |
| | | |
| | | |
| | | @ApiModelProperty(value = "工种") |
| | | private String gongZhong; |
| | | @ApiModelProperty(value = "工龄") |
| | | private String gongLing; |
| | | @ApiModelProperty(value = "接害工龄") |
| | | private String jhgl; |
| | | |
| | | } |
| | |
| | | " pat_id price , mobile pacRemark" + |
| | | " from histjv_ltkjvtjpat where 1=1 "+ |
| | | " <when test='pacCode!=null'>" + |
| | | " AND fcard_no = #{pacCode}" + |
| | | " AND fcard_no like '%'+#{pacCode}+'%'" + |
| | | "</when>" + |
| | | " <when test='pacName!=null'>" + |
| | | " AND pat_name = #{pacName}" + |
| | | " AND pat_name like '%'+#{pacName}+'%' " + |
| | | "</when>" + |
| | | " <when test='pacRemark!=null'>" + |
| | | " AND mobile = #{pacRemark}" + |
| | |
| | | @Select({"<script> select *"+ |
| | | " from histjv_Ltkj_hyxm where 1=1 "+ |
| | | " <when test='pacCode!=null'>" + |
| | | " AND pacCode = #{pacCode}" + |
| | | " AND pacCode like '%'+#{pacCode}+'%'" + |
| | | "</when>" + |
| | | " <when test='pacName!=null'>" + |
| | | " AND pacName = #{pacName}" + |
| | | " AND pacName like '%'+#{pacName}+'%' " + |
| | | "</when>" + |
| | | " <when test='pacRemark!=null'>" + |
| | | " AND pacRemark = #{pacRemark}" + |
| | |
| | | import com.ltkj.hosp.domain.TjAdvice; |
| | | import com.ltkj.hosp.domain.TjAskHistorys; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Company: 西安路泰科技有限公司 |
| | |
| | | */ |
| | | @Mapper |
| | | public interface TjAskHistorysMapper extends BaseMapper<TjAskHistorys> { |
| | | |
| | | |
| | | @Select({"<script>", "select", "GROUP_CONCAT(pro_name ORDER BY pro_name) AS names", "from dict_zhengzhuang", "where id in", |
| | | "<foreach collection='ids' item='id' open='(' separator=',' close=')'>", |
| | | "#{id}", |
| | | "</foreach>", |
| | | "</script>" }) |
| | | String getZhengZhuangStr(@Param("ids")List<String> ids); |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ltkj.hosp.domain.DictZhengzhuang; |
| | | import com.ltkj.hosp.domain.TjAskMedicalHistory; |
| | | import com.ltkj.hosp.domain.TjAskHistorys; |
| | | import com.ltkj.hosp.domain.TjCatering; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | /** |
| | |
| | | " a.cus_id=#{cusId} \n" + |
| | | "AND ISNULL(a.tj_num)") |
| | | boolean updateTjAskMedicalHistoryByCusId(@Param("tjNum") String tjNum,@Param("userName") String userName,@Param("userId") String userId,@Param("cusId") String cusId); |
| | | |
| | | |
| | | |
| | | @Select("SELECT * FROM dict_zhengzhuang") |
| | | List<DictZhengzhuang> getZhengZhuang(); |
| | | |
| | | |
| | | |
| | | // @Select("SELECT * FROM tj_ask_medical_history a WHERE a.deleted=0 AND a.tj_num=#{tjNum}") |
| | | TjAskMedicalHistory selectTjAskMedicalHistoryByTjNum(String tjNum); |
| | | |
| | | } |
| | |
| | | import com.ltkj.hosp.domain.TjAskHistorys; |
| | | import com.ltkj.hosp.domain.TjAskMedicalHistory; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Company: 西安路泰科技有限公司 |
| | | * @Author: lige |
| | | * @Date: 2023/4/11 17:48 |
| | | */ |
| | | public interface ITjAskHistorysService extends IService<TjAskHistorys> { |
| | | String getZhengZhuangStr(List<String> ids); |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ltkj.hosp.domain.DictZhengzhuang; |
| | | import com.ltkj.hosp.domain.TjAskMedicalHistory; |
| | | import com.ltkj.hosp.domain.TjCatering; |
| | | |
| | |
| | | public int deleteTjAskMedicalHistoryByAskId(Long askId); |
| | | |
| | | boolean updateTjAskMedicalHistoryByCusId(String tjNum,String userName, String userId,String cusId); |
| | | |
| | | |
| | | List<DictZhengzhuang> getZhengZhuang(); |
| | | |
| | | |
| | | TjAskMedicalHistory selectTjAskMedicalHistoryByTjNum(String tjNum); |
| | | } |
| | |
| | | import com.ltkj.hosp.service.ITjAskHistorysService; |
| | | import com.ltkj.hosp.service.TjSurveyRecordDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Company: 西安路泰科技有限公司 |
| | |
| | | */ |
| | | @Service |
| | | public class ITjAskHistorysServiceImpl extends ServiceImpl<TjAskHistorysMapper, TjAskHistorys> implements ITjAskHistorysService { |
| | | @Resource |
| | | private TjAskHistorysMapper mapper; |
| | | |
| | | @Override |
| | | public String getZhengZhuangStr(List<String> ids) { |
| | | return mapper.getZhengZhuangStr(ids); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ltkj.common.utils.DateUtils; |
| | | import com.ltkj.hosp.domain.TjAskWorkLog; |
| | | import com.ltkj.hosp.domain.TjChargingStandard; |
| | | import com.ltkj.hosp.domain.*; |
| | | import com.ltkj.hosp.mapper.TjAskWorkLogMapper; |
| | | import com.ltkj.hosp.mapper.TjChargingStandardMapper; |
| | | import com.ltkj.hosp.service.ITjAskWorkLogService; |
| | |
| | | |
| | | import com.ltkj.common.utils.StringUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.ltkj.hosp.domain.TjAskHistorys; |
| | | import com.ltkj.hosp.mapper.TjAskMedicalHistoryMapper; |
| | | import com.ltkj.hosp.domain.TjAskMedicalHistory; |
| | | import com.ltkj.hosp.service.ITjAskMedicalHistoryService; |
| | | |
| | | /** |
| | |
| | | return tjAskMedicalHistoryMapper.updateTjAskMedicalHistoryByCusId(tjNum, userName, userId, cusId); |
| | | } |
| | | |
| | | @Override |
| | | public List<DictZhengzhuang> getZhengZhuang() { |
| | | return tjAskMedicalHistoryMapper.getZhengZhuang(); |
| | | } |
| | | |
| | | @Override |
| | | public TjAskMedicalHistory selectTjAskMedicalHistoryByTjNum(String tjNum) { |
| | | return tjAskMedicalHistoryMapper.selectTjAskMedicalHistoryByTjNum(tjNum); |
| | | } |
| | | |
| | | /** |
| | | * @param tjAskMedicalHistory 问诊对象 |
| | | */ |
| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="fromBy" column="from_by"/> |
| | | <result property="zzsjj" column="zzsjj" typeHandler="com.ltkj.common.mybatis.JsonStringArrayTypeHandler"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="TjAskMedicalHistoryTjAskHistorysResult" type="TjAskMedicalHistory" extends="TjAskMedicalHistoryResult"> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectTjAskMedicalHistoryVo"> |
| | | select ask_id, cus_id, cus_name, work, work_status, medical_history, chuchao, jingqi, zhouqi, mociage, zinv, liuchan, zaochan, sichan, yichangtai, xiyan, xiyanpinlv, xiyanyear, yinjiu, yinjiupinlv, yinjiuyear, qita, remark, create_by, create_time, update_by, update_time, deleted,from_by |
| | | select ask_id, cus_id, cus_name, work, work_status, medical_history, chuchao, jingqi, zhouqi, mociage, zinv, liuchan, |
| | | zaochan, sichan, yichangtai, xiyan, xiyanpinlv, xiyanyear, yinjiu, yinjiupinlv, yinjiuyear, qita, remark, create_by, |
| | | create_time, update_by, update_time, deleted,from_by,zzsjj |
| | | from tj_ask_medical_history |
| | | </sql> |
| | | |
| | |
| | | }) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | |
| | | <select id="selectTjAskMedicalHistoryByTjNum" parameterType="String" resultMap="TjAskMedicalHistoryResult"> |
| | | <include refid="selectTjAskMedicalHistoryVo"/> |
| | | where tj_num = #{tjNum} |
| | | and deleted=0 |
| | | </select> |
| | | </mapper> |