患者信息,患者处方等相关接口新增

test
anthonywj 1 year ago
parent bbc21a1a97
commit c20dcbd4a5

@ -59,7 +59,7 @@ public class BasicDestinyRelController {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
List<BasicSkProjectResponse> basicSkProjectResponses = basicSkProjectService.filterThrProducts(basicSkProjectRequest);
List<BasicSkProjectResponse> basicSkProjectResponses = basicSkProjectService.filterList(basicSkProjectRequest);
PageInfo<BasicSkProjectResponse> pageInfo = new PageInfo<>(basicSkProjectResponses);
PageSimpleResponse<BasicSkProjectResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());

@ -0,0 +1,109 @@
package com.glxp.api.controller.basic;
import cn.hutool.core.util.IdUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageInfo;
import com.glxp.api.common.enums.ResultEnum;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.controller.BaseController;
import com.glxp.api.entity.auth.AuthAdmin;
import com.glxp.api.entity.basic.BasicSkSickerEntity;
import com.glxp.api.req.basic.BasicSkSickerRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.basic.BasicSkSickerResponse;
import com.glxp.api.service.basic.BasicSkPrescribeService;
import com.glxp.api.service.basic.BasicSkSickerService;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@RestController
public class BasicSickerController extends BaseController {
@Resource
BasicSkSickerService basicSkSickerService;
@GetMapping("/udiwms/basic/sk/sicker/filter")
public BaseResponse filterSicker(BasicSkSickerRequest basicSkSickerRequest, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
List<BasicSkSickerResponse> basicSkSickerResponses = basicSkSickerService.filterList(basicSkSickerRequest);
PageInfo<BasicSkSickerResponse> pageInfo = new PageInfo<>(basicSkSickerResponses);
PageSimpleResponse<BasicSkSickerResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(basicSkSickerResponses);
return ResultVOUtils.success(pageSimpleResponse);
}
@PostMapping("/udiwms/basic/sk/sicker/add")
public BaseResponse addSicker(@RequestBody BasicSkSickerEntity basicSkSickerEntity) {
//判断名字和编号不能重复
QueryWrapper<BasicSkSickerEntity> ew = new QueryWrapper<>();
ew.clear();
ew.eq("code", basicSkSickerEntity.getCode());
long count = basicSkSickerService.count(ew);
if (count > 0) {
return ResultVOUtils.error(999, "编号已存在!");
}
AuthAdmin authAdmin = getUser();
basicSkSickerEntity.setId(IdUtil.getSnowflakeNextId());
basicSkSickerEntity.setCreateTime(new Date());
basicSkSickerEntity.setUpdateTime(new Date());
basicSkSickerEntity.setCreateUser(authAdmin.getId() + "");
basicSkSickerEntity.setUpdateUser(authAdmin.getId() + "");
Boolean falg = basicSkSickerService.save(basicSkSickerEntity);
if (!falg) {
return ResultVOUtils.error(999, "新增失败!");
}
return ResultVOUtils.success();
}
@PostMapping("/udiwms/basic/sk/sicker/edit")
public BaseResponse editSicker(@RequestBody BasicSkSickerEntity basicSkSickerEntity) {
//判断名字和编号不能重复
QueryWrapper<BasicSkSickerEntity> ew = new QueryWrapper<>();
ew.eq("code", basicSkSickerEntity.getCode());
// ew.eq("type", 2);
BasicSkSickerEntity temp = basicSkSickerService.getOne(ew);
if (temp != null && !temp.getId().equals(temp.getId())) {
return ResultVOUtils.error(999, "编码已存在!");
}
AuthAdmin authAdmin = getUser();
basicSkSickerEntity.setUpdateTime(new Date());
basicSkSickerEntity.setUpdateUser(authAdmin.getId() + "");
Boolean falg = basicSkSickerService.updateById(basicSkSickerEntity);
if (!falg) {
return ResultVOUtils.error(999, "修改失败!");
}
return ResultVOUtils.success();
}
@PostMapping("/udiwms/basic/sk/sicker/delete")
public BaseResponse delectSicker(@RequestBody BasicSkSickerEntity basicSkSickerEntity) {
Boolean falg = basicSkSickerService.removeById(basicSkSickerEntity.getId() + "");
if (!falg) {
return ResultVOUtils.error(999, "删除失败!");
}
return ResultVOUtils.success();
}
}

@ -0,0 +1,42 @@
package com.glxp.api.controller.basic;
import com.github.pagehelper.PageInfo;
import com.glxp.api.common.enums.ResultEnum;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.controller.BaseController;
import com.glxp.api.req.basic.BasicSkPrescribeRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.basic.BasicSkPrescribeResponse;
import com.glxp.api.service.basic.BasicSkPrescribeService;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
public class BasicSkPrescribeController extends BaseController {
@Resource
BasicSkPrescribeService basicSkPrescribeService;
@GetMapping("/udiwms/basic/sk/prescribe/filter")
public BaseResponse filterSicker(BasicSkPrescribeRequest basicSkPrescribeRequest, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
List<BasicSkPrescribeResponse> basicSkPrescribeResponses = basicSkPrescribeService.filterList(basicSkPrescribeRequest);
PageInfo<BasicSkPrescribeResponse> pageInfo = new PageInfo<>(basicSkPrescribeResponses);
PageSimpleResponse<BasicSkPrescribeResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(basicSkPrescribeResponses);
return ResultVOUtils.success(pageSimpleResponse);
}
}

@ -1,5 +1,6 @@
package com.glxp.api.controller.inv;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.annotation.AuthRuleAnnotation;
@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
@RestController
@ -34,13 +36,17 @@ public class InvSickTraceController {
if (StrUtil.isEmpty(filterSickTraceRequest.getSickAd())) {
return ResultVOUtils.error(500, "病人住院号不能为空!");
}
BasicCorpEntity basicCorpEntity = basicCorpService.selectByName(filterSickTraceRequest.getSickAd());
if (basicCorpEntity == null) {
List<BasicCorpEntity> basicCorpEntities = basicCorpService.batchSelectByErpIdsAndName(null, filterSickTraceRequest.getSickAd());
if (CollUtil.isEmpty(basicCorpEntities)) {
return ResultVOUtils.error(500, "未查询到病人信息");
}
List<String> names = new ArrayList<>();
basicCorpEntities.forEach(item ->
names.add(item.getErpId())
);
FilterOrderRequest orderFilterRequest = new FilterOrderRequest();
orderFilterRequest.setFromCorp(basicCorpEntity.getErpId());
orderFilterRequest.setFromCorpList(names);
List<IoOrderResponse> orderEntityList = orderService.filterList(orderFilterRequest);
PageInfo<IoOrderResponse> pageInfo;
pageInfo = new PageInfo<>(orderEntityList);

@ -2,8 +2,15 @@ package com.glxp.api.dao.basic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.basic.BasicSkPrescribeEntity;
import com.glxp.api.req.basic.BasicSkPrescribeRequest;
import com.glxp.api.res.basic.BasicSkPrescribeResponse;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface BasicSkPrescribeMapper extends BaseMapper<BasicSkPrescribeEntity> {
List<BasicSkPrescribeResponse> filterList(BasicSkPrescribeRequest basicSkPrescribeRequest);
}

@ -2,8 +2,18 @@ package com.glxp.api.dao.basic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.basic.BasicSkSickerEntity;
import com.glxp.api.req.basic.BasicSkSickerRequest;
import com.glxp.api.res.basic.BasicSkSickerResponse;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface BasicSkSickerMapper extends BaseMapper<BasicSkSickerEntity> {
List<BasicSkSickerResponse> filterList(BasicSkSickerRequest basicSkSickerRequest);
}

@ -0,0 +1,72 @@
package com.glxp.api.req.basic;
import com.baomidou.mybatisplus.annotation.TableField;
import com.glxp.api.util.page.ListPageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
public class BasicSkPrescribeRequest extends ListPageRequest {
private Long id;
/**
*
*/
private String code;
/**
*
*/
private Date prescribeDate;
/**
*
*/
private String createDr;
/**
*
*/
private String deptCode;
/**
*
*/
private String deptName;
/**
*
*/
private String diagnosis;
/**
* ID
*/
private String sickerIdFk;
private String remark;
/**
*
*/
private String createUser;
/**
*
*/
private Date createTime;
/**
*
*/
private String updateUser;
/**
*
*/
private Date updateTime;
}

@ -0,0 +1,113 @@
package com.glxp.api.req.basic;
import com.glxp.api.util.page.ListPageRequest;
import lombok.Data;
import java.util.Date;
@Data
public class BasicSkSickerRequest extends ListPageRequest {
private Long id;
/**
*
*/
private String code;
/**
*
*/
private String name;
/**
*
*/
private String adNum;
/**
*
*/
private String idNum;
/**
*
*/
private String phone;
/**
*
*/
private String gender;
/**
*
*/
private String job;
/**
*
*/
private String bornDate;
/**
*
*/
private String nationality;
/**
*
*/
private String education;
/**
*
*/
private String guardianName;
/**
*
*/
private String guardianRel;
/**
*
*/
private String curAddr;
/**
*
*/
private String kosekiAddr;
/**
*
*/
private String medicalIns;
/**
*
*/
private String createUser;
/**
*
*/
private Date createTime;
/**
*
*/
private String updateUser;
/**
*
*/
private Date updateTime;
/**
*
*/
private String remark;
}

@ -64,6 +64,8 @@ public class FilterOrderRequest extends ListPageRequest {
*/
private String fromCorp;
private List<String> fromCorpList;
private String customerId;
/**

@ -0,0 +1,71 @@
package com.glxp.api.res.basic;
import lombok.Data;
import java.util.Date;
@Data
public class BasicSkPrescribeResponse {
private Long id;
/**
*
*/
private String code;
/**
*
*/
private Date prescribeDate;
/**
*
*/
private String createDr;
/**
*
*/
private String deptCode;
/**
*
*/
private String deptName;
/**
*
*/
private String diagnosis;
/**
* ID
*/
private String sickerIdFk;
private String remark;
/**
*
*/
private String createUser;
/**
*
*/
private Date createTime;
/**
*
*/
private String updateUser;
/**
*
*/
private Date updateTime;
}

@ -0,0 +1,111 @@
package com.glxp.api.res.basic;
import lombok.Data;
import java.util.Date;
@Data
public class BasicSkSickerResponse {
private Long id;
/**
*
*/
private String code;
/**
*
*/
private String name;
/**
*
*/
private String adNum;
/**
*
*/
private String idNum;
/**
*
*/
private String phone;
/**
*
*/
private String gender;
/**
*
*/
private String job;
/**
*
*/
private String bornDate;
/**
*
*/
private String nationality;
/**
*
*/
private String education;
/**
*
*/
private String guardianName;
/**
*
*/
private String guardianRel;
/**
*
*/
private String curAddr;
/**
*
*/
private String kosekiAddr;
/**
*
*/
private String medicalIns;
/**
*
*/
private String createUser;
/**
*
*/
private Date createTime;
/**
*
*/
private String updateUser;
/**
*
*/
private Date updateTime;
/**
*
*/
private String remark;
}

@ -1,10 +1,35 @@
package com.glxp.api.service.basic;
import com.github.pagehelper.PageHelper;
import com.glxp.api.dao.basic.BasicSkProjectMapper;
import com.glxp.api.req.basic.BasicSkPrescribeRequest;
import com.glxp.api.req.basic.BasicSkProjectRequest;
import com.glxp.api.res.basic.BasicSkPrescribeResponse;
import com.glxp.api.res.basic.BasicSkProjectResponse;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.entity.basic.BasicSkPrescribeEntity;
import com.glxp.api.dao.basic.BasicSkPrescribeMapper;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
@Service
public class BasicSkPrescribeService extends ServiceImpl<BasicSkPrescribeMapper, BasicSkPrescribeEntity> {
@Resource
BasicSkPrescribeMapper basicSkPrescribeMapper;
public List<BasicSkPrescribeResponse> filterList(BasicSkPrescribeRequest basicSkPrescribeRequest) {
if (basicSkPrescribeRequest == null) {
return Collections.emptyList();
}
if (basicSkPrescribeRequest.getPage() != null) {
int offset = (basicSkPrescribeRequest.getPage() - 1) * basicSkPrescribeRequest.getLimit();
PageHelper.offsetPage(offset, basicSkPrescribeRequest.getLimit());
}
List<BasicSkPrescribeResponse> data = basicSkPrescribeMapper.filterList(basicSkPrescribeRequest);
return data;
}
}

@ -21,7 +21,7 @@ public class BasicSkProjectService extends ServiceImpl<BasicSkProjectMapper, Bas
@Resource
BasicSkProjectMapper basicSkProjectMapper;
public List<BasicSkProjectResponse> filterThrProducts(BasicSkProjectRequest basicSkProjectRequest) {
public List<BasicSkProjectResponse> filterList(BasicSkProjectRequest basicSkProjectRequest) {
if (basicSkProjectRequest == null) {
return Collections.emptyList();
}

@ -1,10 +1,34 @@
package com.glxp.api.service.basic;
import com.github.pagehelper.PageHelper;
import com.glxp.api.dao.basic.BasicSkProjectMapper;
import com.glxp.api.req.basic.BasicSkProjectRequest;
import com.glxp.api.req.basic.BasicSkSickerRequest;
import com.glxp.api.res.basic.BasicSkProjectResponse;
import com.glxp.api.res.basic.BasicSkSickerResponse;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.glxp.api.entity.basic.BasicSkSickerEntity;
import com.glxp.api.dao.basic.BasicSkSickerMapper;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
@Service
public class BasicSkSickerService extends ServiceImpl<BasicSkSickerMapper, BasicSkSickerEntity> {
@Resource
BasicSkSickerMapper basicSkSickerMapper;
public List<BasicSkSickerResponse> filterList(BasicSkSickerRequest basicSkSickerRequest) {
if (basicSkSickerRequest == null) {
return Collections.emptyList();
}
if (basicSkSickerRequest.getPage() != null) {
int offset = (basicSkSickerRequest.getPage() - 1) * basicSkSickerRequest.getLimit();
PageHelper.offsetPage(offset, basicSkSickerRequest.getLimit());
}
List<BasicSkSickerResponse> data = basicSkSickerMapper.filterList(basicSkSickerRequest);
return data;
}
}

@ -4,7 +4,7 @@ server:
spring:
datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_pt?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
jdbc-url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_zyy?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
hikari:

@ -3,7 +3,7 @@ server:
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://192.168.0.61:3306/udi_wms_w?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
jdbc-url: jdbc:mysql://192.168.0.166:3306/udi_wms_zyy?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
hikari:
@ -42,8 +42,9 @@ ok:
logging:
level:
com.glxp.api.dao: debug
file_path: D:/udi/udiwms/udiwmsfile/
file_path: /home/glxp/udiwms/udiwmsfile/
file_lpath: /udiwms/image/register/file/getImage
file_url: http://127.0.0.1:9991
UDI_KEY: 6b137c66-6286-46c6-8efa-c2f5dd9237df
UDI_SERVER_URL: https://www.udims.com/UDI_DL_Server_test
SPMS_KEY: lCOdWCBKS6Kw45wdnnqUTELXyuSKnXEs

@ -1,26 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.basic.BasicSkPrescribeMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkPrescribeEntity">
<!--@mbg.generated-->
<!--@Table basic_sk_prescribe-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="prescribeDate" jdbcType="TIMESTAMP" property="prescribeDate" />
<result column="createDr" jdbcType="VARCHAR" property="createDr" />
<result column="deptCode" jdbcType="VARCHAR" property="deptCode" />
<result column="deptName" jdbcType="VARCHAR" property="deptName" />
<result column="diagnosis" jdbcType="VARCHAR" property="diagnosis" />
<result column="sickerIdFk" jdbcType="VARCHAR" property="sickerIdFk" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, prescribeDate, createDr, deptCode, deptName, diagnosis, sickerIdFk, remark,
`createUser`, createTime, updateUser, updateTime
</sql>
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkPrescribeEntity">
<!--@mbg.generated-->
<!--@Table basic_sk_prescribe-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="prescribeDate" jdbcType="TIMESTAMP" property="prescribeDate"/>
<result column="createDr" jdbcType="VARCHAR" property="createDr"/>
<result column="deptCode" jdbcType="VARCHAR" property="deptCode"/>
<result column="deptName" jdbcType="VARCHAR" property="deptName"/>
<result column="diagnosis" jdbcType="VARCHAR" property="diagnosis"/>
<result column="sickerIdFk" jdbcType="VARCHAR" property="sickerIdFk"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="createUser" jdbcType="VARCHAR" property="createUser"/>
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="updateUser" jdbcType="VARCHAR" property="updateUser"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, prescribeDate, createDr, deptCode, deptName, diagnosis, sickerIdFk, remark,
`createUser`, createTime, updateUser, updateTime
</sql>
<select id="filterList" parameterType="com.glxp.api.req.basic.BasicSkPrescribeRequest"
resultType="com.glxp.api.res.basic.BasicSkPrescribeResponse">
SELECT *, cb.userName as createByName
FROM basic_sk_sicker
LEFT JOIN auth_user cb ON basic_sk_sicker.createUser = cb.id
<where>
<if test="code != '' and code != null">
AND code LIKE concat('%', #{code}, '%')
</if>
<if test="sickerIdFk != null">
AND code = #{sickerIdFk}
</if>
</where>
</select>
</mapper>

@ -1,35 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.basic.BasicSkSickerMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkSickerEntity">
<!--@mbg.generated-->
<!--@Table basic_sk_sicker-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="adNum" jdbcType="VARCHAR" property="adNum" />
<result column="idNum" jdbcType="VARCHAR" property="idNum" />
<result column="phone" jdbcType="VARCHAR" property="phone" />
<result column="gender" jdbcType="VARCHAR" property="gender" />
<result column="job" jdbcType="VARCHAR" property="job" />
<result column="bornDate" jdbcType="VARCHAR" property="bornDate" />
<result column="nationality" jdbcType="VARCHAR" property="nationality" />
<result column="education" jdbcType="VARCHAR" property="education" />
<result column="guardianName" jdbcType="VARCHAR" property="guardianName" />
<result column="guardianRel" jdbcType="VARCHAR" property="guardianRel" />
<result column="curAddr" jdbcType="VARCHAR" property="curAddr" />
<result column="kosekiAddr" jdbcType="VARCHAR" property="kosekiAddr" />
<result column="medicalIns" jdbcType="VARCHAR" property="medicalIns" />
<result column="createUser" jdbcType="VARCHAR" property="createUser" />
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
<result column="updateUser" jdbcType="VARCHAR" property="updateUser" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, `name`, adNum, idNum, phone, gender, job, bornDate, nationality, education,
guardianName, guardianRel, curAddr, kosekiAddr, medicalIns, `createUser`, createTime,
updateUser, updateTime, remark
</sql>
<resultMap id="BaseResultMap" type="com.glxp.api.entity.basic.BasicSkSickerEntity">
<!--@mbg.generated-->
<!--@Table basic_sk_sicker-->
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="code" jdbcType="VARCHAR" property="code"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="adNum" jdbcType="VARCHAR" property="adNum"/>
<result column="idNum" jdbcType="VARCHAR" property="idNum"/>
<result column="phone" jdbcType="VARCHAR" property="phone"/>
<result column="gender" jdbcType="VARCHAR" property="gender"/>
<result column="job" jdbcType="VARCHAR" property="job"/>
<result column="bornDate" jdbcType="VARCHAR" property="bornDate"/>
<result column="nationality" jdbcType="VARCHAR" property="nationality"/>
<result column="education" jdbcType="VARCHAR" property="education"/>
<result column="guardianName" jdbcType="VARCHAR" property="guardianName"/>
<result column="guardianRel" jdbcType="VARCHAR" property="guardianRel"/>
<result column="curAddr" jdbcType="VARCHAR" property="curAddr"/>
<result column="kosekiAddr" jdbcType="VARCHAR" property="kosekiAddr"/>
<result column="medicalIns" jdbcType="VARCHAR" property="medicalIns"/>
<result column="createUser" jdbcType="VARCHAR" property="createUser"/>
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="updateUser" jdbcType="VARCHAR" property="updateUser"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="remark" jdbcType="VARCHAR" property="remark"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, code, `name`, adNum, idNum, phone, gender, job, bornDate, nationality, education,
guardianName, guardianRel, curAddr, kosekiAddr, medicalIns, `createUser`, createTime,
updateUser, updateTime, remark
</sql>
<select id="filterList" parameterType="com.glxp.api.req.basic.BasicSkSickerRequest"
resultType="com.glxp.api.res.basic.BasicSkSickerResponse">
SELECT *, cb.userName as createByName
FROM basic_sk_sicker
LEFT JOIN auth_user cb ON basic_sk_sicker.createUser = cb.id
<where>
<if test="name != '' and name != null">
AND name LIKE concat('%', #{name}, '%')
</if>
<if test="code != '' and code != null">
AND code LIKE concat('%', #{code}, '%')
</if>
</where>
</select>
</mapper>

@ -116,6 +116,14 @@
#{item}
</foreach>
</if>
<if test="fromCorpList != null and fromCorpList.size() != 0">
AND io.fromCorp in
<foreach collection="fromCorpList" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="inOrders != null and inOrders.size() != 0">
AND io.billNo in
<foreach collection="inOrders" index="index" item="item" open="(" close=")" separator=",">

Loading…
Cancel
Save