区域中心
This commit is contained in:
parent
d5e51048a3
commit
b60fbe5753
@ -296,3 +296,9 @@ ALTER TABLE [dbo].[reg_itemclass] ADD DEFAULT (1) FOR [itemclass_printcnt]
|
||||
ALTER TABLE [dbo].[reg_itemclass] ADD DEFAULT ('') FOR [update_by]
|
||||
ALTER TABLE [dbo].[reg_itemclass] ADD DEFAULT (NULL) FOR [remark]
|
||||
end
|
||||
|
||||
if not exists(SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'reg_TransitSample' and COLUMN_NAME = 'checkPUR')
|
||||
begin
|
||||
alter table reg_TransitSample add checkPUR varchar(1000)
|
||||
end
|
||||
|
||||
|
||||
@ -1,15 +1,21 @@
|
||||
package com.czlis.transitPF.controller;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.czlis.common.annotation.Anonymous;
|
||||
import com.czlis.common.core.controller.BaseController;
|
||||
import com.czlis.common.core.domain.Result;
|
||||
import com.czlis.common.core.page.TableDataInfo;
|
||||
import com.czlis.transitPF.pojo.RegTransitSample;
|
||||
import com.czlis.transitPF.pojo.RegTransitSampleDTO;
|
||||
import com.czlis.transitPF.service.RegTransitSampleService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 区域检验中心,标本流转
|
||||
@ -18,15 +24,24 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@RequestMapping("/transit")
|
||||
@Slf4j
|
||||
public class RegTransitSampleController {
|
||||
public class RegTransitSampleController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private RegTransitSampleService regTransitSampleService;
|
||||
|
||||
@ApiOperation("获取流转数据")
|
||||
@GetMapping("/querySample")
|
||||
public Result getQuerySample(RegTransitSample labQuerySample) {
|
||||
return regTransitSampleService.getRegTransitSample(labQuerySample);
|
||||
public TableDataInfo getQuerySample(RegTransitSample labQuerySample) {
|
||||
startPage();
|
||||
List<RegTransitSample> regTransitSampleList = regTransitSampleService.getRegTransitSample(labQuerySample);
|
||||
return getDataTable(regTransitSampleList);
|
||||
}
|
||||
|
||||
@Anonymous
|
||||
@ApiOperation("接口调用")
|
||||
@PostMapping("/invoke")
|
||||
public Result invoke(@RequestBody String jsonStr) {
|
||||
return regTransitSampleService.invoke(jsonStr);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2,10 +2,20 @@ package com.czlis.transitPF.mapper;
|
||||
|
||||
import com.czlis.transitPF.pojo.RegTransitSample;
|
||||
import com.czlis.transitPF.pojo.RegTransitSampleDetail;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RegTransitSampleMapper {
|
||||
List<RegTransitSample> getRegTransitSample(RegTransitSample labQuerySample);
|
||||
List<RegTransitSampleDetail> getRegTransitSampleDetail(RegTransitSampleDetail regTransitSampleDetail);
|
||||
|
||||
void addRegTransitSample(RegTransitSample regTransitSample);
|
||||
|
||||
void addRegTransitSampleDetail(RegTransitSampleDetail regTransitSampleDetail);
|
||||
|
||||
void delRegTransitSample(String barcode);
|
||||
void delRegTransitSampleDetail(String barcode);
|
||||
|
||||
void updateTest(@Param("checkPUR") String checkPUR,@Param("barcode") String barcode);
|
||||
}
|
||||
|
||||
@ -232,6 +232,17 @@ public class RegTransitSample {
|
||||
* 扩展序号
|
||||
*/
|
||||
private String ExpressNum;
|
||||
private String create_by;
|
||||
private Date create_time;
|
||||
private String update_by;
|
||||
private Date update_time;
|
||||
private String DataSource;
|
||||
private String checkPUR;
|
||||
|
||||
|
||||
private String DateType;
|
||||
private Date DateStart;
|
||||
private Date DateEnd;
|
||||
|
||||
|
||||
|
||||
|
||||
@ -30,7 +30,13 @@ public class RegTransitSampleDetail {
|
||||
private String OrderItemName;
|
||||
private String GroupItemCode;
|
||||
private String GroupItemName;
|
||||
/**
|
||||
* 本院的项目代码
|
||||
*/
|
||||
private String SrcOrderItemCode;
|
||||
/**
|
||||
* 本院的项目名称
|
||||
*/
|
||||
private String SrcOrderItemName;
|
||||
private String FeeCode;
|
||||
private String FeeName;
|
||||
|
||||
@ -3,6 +3,10 @@ package com.czlis.transitPF.service;
|
||||
import com.czlis.common.core.domain.Result;
|
||||
import com.czlis.transitPF.pojo.RegTransitSample;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface RegTransitSampleService {
|
||||
Result getRegTransitSample(RegTransitSample regTransitSample);
|
||||
List<RegTransitSample> getRegTransitSample(RegTransitSample regTransitSample);
|
||||
|
||||
Result invoke(String jsonStr);
|
||||
}
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
package com.czlis.transitPF.service.impl;
|
||||
|
||||
import cn.hutool.json.JSONArray;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.czlis.common.core.domain.Result;
|
||||
import com.czlis.transitPF.mapper.RegTransitSampleMapper;
|
||||
import com.czlis.transitPF.pojo.RegTransitSample;
|
||||
@ -21,15 +24,144 @@ public class RegTransitSampleServiceImpl implements RegTransitSampleService {
|
||||
|
||||
|
||||
@Override
|
||||
public Result getRegTransitSample(RegTransitSample labQuerySample) {
|
||||
List<RegTransitSample> labQuerySampleList = regTransitSampleMapper.getRegTransitSample(labQuerySample);
|
||||
RegTransitSampleDetail regTransitSampleDetail = new RegTransitSampleDetail();
|
||||
regTransitSampleDetail.setBarcode(labQuerySample.getBarcode());
|
||||
List<RegTransitSampleDetail> querySampleDetailList = regTransitSampleMapper.getRegTransitSampleDetail(regTransitSampleDetail);
|
||||
RegTransitSampleDTO regTransitSampleDTO = new RegTransitSampleDTO();
|
||||
regTransitSampleDTO.setLabQuerySampleList(labQuerySampleList);
|
||||
regTransitSampleDTO.setRegTransitSampleDetailList(querySampleDetailList);
|
||||
return new Result("0","查询成功!", regTransitSampleDTO);
|
||||
public List<RegTransitSample> getRegTransitSample(RegTransitSample labQuerySample) {
|
||||
List<RegTransitSample> regTransitSampleList = regTransitSampleMapper.getRegTransitSample(labQuerySample);
|
||||
// RegTransitSampleDetail regTransitSampleDetail = new RegTransitSampleDetail();
|
||||
// List<RegTransitSampleDetail> querySampleDetailList = null;
|
||||
// if(labQuerySample != null){
|
||||
// String barcode = labQuerySample.getBarcode();
|
||||
// if(barcode != null && barcode.equals("")){
|
||||
// regTransitSampleDetail.setBarcode(labQuerySample.getBarcode());
|
||||
// querySampleDetailList = regTransitSampleMapper.getRegTransitSampleDetail(regTransitSampleDetail);
|
||||
// }
|
||||
// }
|
||||
|
||||
// RegTransitSampleDTO regTransitSampleDTO = new RegTransitSampleDTO();
|
||||
// regTransitSampleDTO.setLabQuerySampleList(labQuerySampleList);
|
||||
// regTransitSampleDTO.setRegTransitSampleDetailList(querySampleDetailList);
|
||||
//return new Result("0","查询成功!", regTransitSampleDTO);
|
||||
return regTransitSampleList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result invoke(String jsonStr) {
|
||||
log.info("区域平台入参:{}", jsonStr);
|
||||
JSONObject jsonObject = null;
|
||||
try{
|
||||
jsonObject = JSONUtil.parseObj(jsonStr);
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
return new Result("-1","json格式不合法");
|
||||
}
|
||||
String method = String.valueOf(jsonObject.get("method"));
|
||||
if(method == null || method.equals("") || method.equals("null")){
|
||||
return new Result("-1","json格式不正确,必须包含method节点");
|
||||
}
|
||||
|
||||
switch (method){
|
||||
case "addTransitSample": //新增数据接口
|
||||
return addTransitSample(jsonStr);
|
||||
case "delTransitSample":
|
||||
return delTransitSample(jsonStr);
|
||||
case "queryTransitSample":
|
||||
return queryTransitSample(jsonStr);
|
||||
case "test":
|
||||
return test();
|
||||
default:
|
||||
return new Result("1","该接口还未实现!",method);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*{
|
||||
* "method":"addTransitSample",
|
||||
* "req": {
|
||||
* """":"",
|
||||
* "reqDetail": [{
|
||||
* "",""
|
||||
* },{
|
||||
* "",""
|
||||
* }
|
||||
* ]
|
||||
* }
|
||||
* }
|
||||
* @param jsonStr
|
||||
* @return
|
||||
*/
|
||||
public Result addTransitSample(String jsonStr){
|
||||
JSONObject jsonObject = null;
|
||||
try{
|
||||
jsonObject = JSONUtil.parseObj(jsonStr);
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
log.error("json格式错误:",e);
|
||||
return new Result("-1","json格式不合法");
|
||||
}
|
||||
JSONObject reqMain = jsonObject.getJSONObject("req").getJSONObject("reqMain");
|
||||
RegTransitSample regTransitSample = JSONUtil.toBean(reqMain, RegTransitSample.class);
|
||||
JSONArray reqDetailList = jsonObject.getJSONObject("req").getJSONArray("reqDetail");
|
||||
String checkPUR = "";
|
||||
List<RegTransitSampleDetail> regTransitSampleDetailList = reqDetailList.toList(RegTransitSampleDetail.class);
|
||||
for (RegTransitSampleDetail regTransitSampleDetail : regTransitSampleDetailList) {
|
||||
checkPUR = checkPUR + "," + regTransitSampleDetail.getOrderItemName();
|
||||
}
|
||||
checkPUR = checkPUR.substring(1);
|
||||
regTransitSample.setCheckPUR(checkPUR);
|
||||
regTransitSampleMapper.addRegTransitSample(regTransitSample);
|
||||
for (RegTransitSampleDetail regTransitSampleDetail : regTransitSampleDetailList) {
|
||||
regTransitSampleMapper.addRegTransitSampleDetail(regTransitSampleDetail);
|
||||
}
|
||||
return new Result("0","");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {
|
||||
* "method":"delTransitSample",
|
||||
* "req": {
|
||||
* "barcode":{
|
||||
* "":"",
|
||||
* } }
|
||||
* }
|
||||
* @param jsonStr
|
||||
* @return
|
||||
*/
|
||||
public Result delTransitSample(String jsonStr){
|
||||
JSONObject jsonObject = JSONUtil.parseObj(jsonStr);
|
||||
String barcode = jsonObject.getStr("barcode");
|
||||
regTransitSampleMapper.delRegTransitSample(barcode);
|
||||
regTransitSampleMapper.delRegTransitSampleDetail(barcode);
|
||||
return new Result("0","删除成功!");
|
||||
}
|
||||
|
||||
|
||||
public Result queryTransitSample(String jsonStr){
|
||||
JSONObject jsonObject = JSONUtil.parseObj(jsonStr);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public Result test(){
|
||||
RegTransitSample regTransitSample = new RegTransitSample();
|
||||
List<RegTransitSample> regTransitSampleList = regTransitSampleMapper.getRegTransitSample(regTransitSample);
|
||||
for (RegTransitSample transitSample : regTransitSampleList) {
|
||||
if(transitSample.getBarcode() == null || transitSample.getBarcode().equals("")) continue;
|
||||
|
||||
RegTransitSampleDetail regTransitSampleDetail = new RegTransitSampleDetail();
|
||||
regTransitSampleDetail.setBarcode(transitSample.getBarcode());
|
||||
List<RegTransitSampleDetail> regTransitSampleDetailList = regTransitSampleMapper.getRegTransitSampleDetail(regTransitSampleDetail);
|
||||
String tempName = "";
|
||||
for (RegTransitSampleDetail transitSampleDetail : regTransitSampleDetailList) {
|
||||
tempName = tempName + ","+ transitSampleDetail.getSrcOrderItemName();
|
||||
}
|
||||
tempName = tempName.substring(1);
|
||||
regTransitSampleMapper.updateTest(tempName,transitSample.getBarcode());
|
||||
}
|
||||
return new Result("0","成功!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -8,6 +8,16 @@
|
||||
select * from Reg_TransitSample
|
||||
<where>
|
||||
<if test="Barcode != null and Barcode !=''">and Barcode = #{Barcode}</if>
|
||||
<if test="SrcHospName != null and SrcHospName !=''">and SrcHospName like '%'+#{SrcHospName}+'%' </if>
|
||||
<if test="PatName != null and PatName !=''">and PatName like '%'+#{PatName}+'%'</if>
|
||||
<if test="checkPUR != null and checkPUR !=''">and checkPUR like '%'+#{checkPUR}+'%'</if>
|
||||
<if test="Status != null and Status !=''">and Status = #{Status}</if>
|
||||
<if test="AffirmUserName != null and AffirmUserName !=''">and AffirmUserName like '%'+#{AffirmUserName}+'%'</if>
|
||||
<if test="SignInUserName != null and SignInUserName !=''">and SignInUserName like '%'+#{SignInUserName}+'%'</if>
|
||||
<if test="DateType == '登记时间'">and (OrderTime between #{DateStart} and #{DateEnd}) </if>
|
||||
<if test="DateType == '采样时间'">and (AffirmTime between #{DateStart} and #{DateEnd}) </if>
|
||||
<if test="DateType == '送出时间'">and (SendPackTime between #{DateStart} and #{DateEnd}) </if>
|
||||
<if test="DateType == '签收时间'">and (SignInTime between #{DateStart} and #{DateEnd}) </if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -18,5 +28,162 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="addRegTransitSample">
|
||||
insert into reg_TransitSample(
|
||||
<if test="PatId != null and PatId != ''">PatId,</if>
|
||||
<if test="PatCardType != null and PatCardType != ''">PatCardType,</if>
|
||||
<if test="PatCardNo != null and PatCardNo != ''">PatCardNo,</if>
|
||||
<if test="PatType != null and PatType != ''">PatType,</if>
|
||||
<if test="RegNo != null and RegNo != ''">RegNo,</if>
|
||||
<if test="PatName != null and PatName != ''">PatName,</if>
|
||||
<if test="PatSex != null and PatSex != ''">PatSex,</if>
|
||||
<if test="PatAge != null and PatAge != ''">PatAge,</if>
|
||||
<if test="AgeUnit != null and AgeUnit != ''">AgeUnit,</if>
|
||||
<if test="PatAgeShow != null and PatAgeShow != ''">PatAgeShow,</if>
|
||||
<if test="PatBirthday != null and PatBirthday != ''">PatBirthday,</if>
|
||||
<if test="PatIdentity != null and PatIdentity != ''">PatIdentity,</if>
|
||||
<if test="Phone != null and Phone != ''">Phone,</if>
|
||||
<if test="Address != null and Address != ''">Address,</if>
|
||||
<if test="PatFeeType != null and PatFeeType != ''">PatFeeType,</if>
|
||||
<if test="DepartCode != null and DepartCode != ''">DepartCode,</if>
|
||||
<if test="DepartName != null and DepartName != ''">DepartName,</if>
|
||||
<if test="AreaCode != null and AreaCode != ''">AreaCode,</if>
|
||||
<if test="AreaName != null and AreaName != ''">AreaName,</if>
|
||||
<if test="PatBed != null and PatBed != ''">PatBed,</if>
|
||||
<if test="DiagnosisCode != null and DiagnosisCode != ''">DiagnosisCode,</if>
|
||||
<if test="DiagnosisName != null and DiagnosisName != ''">DiagnosisName,</if>
|
||||
<if test="OrderPatId != null and OrderPatId != ''">OrderPatId,</if>
|
||||
<if test="OrderUserCode != null and OrderUserCode != ''">OrderUserCode,</if>
|
||||
<if test="OrderUserName != null and OrderUserName != ''">OrderUserName,</if>
|
||||
<if test="OrderTime != null">OrderTime,</if>
|
||||
<if test="SrcHospCode != null and SrcHospCode != ''">SrcHospCode,</if>
|
||||
<if test="SrcHospName != null and SrcHospName != ''">SrcHospName,</if>
|
||||
<if test="Barcode != null and Barcode != ''">Barcode,</if>
|
||||
<if test="SrcHospBarcode != null and SrcHospBarcode != ''">SrcHospBarcode,</if>
|
||||
<if test="TubeCode != null and TubeCode != ''">TubeCode,</if>
|
||||
<if test="TubeName != null and TubeName != ''">TubeName,</if>
|
||||
<if test="tubeColor != null and tubeColor != ''">tubeColor,</if>
|
||||
<if test="SampleTypeCode != null and SampleTypeCode != ''">SampleTypeCode,</if>
|
||||
<if test="SampleTypeName != null and SampleTypeName != ''">SampleTypeName,</if>
|
||||
<if test="BodyCode != null and BodyCode != ''">BodyCode,</if>
|
||||
<if test="BodyName != null and BodyName != ''">BodyName,</if>
|
||||
<if test="IsER != null and IsER != ''">IsER,</if>
|
||||
<if test="Status != null and Status != ''">Status,</if>
|
||||
<if test="AffirmTime != null">AffirmTime,</if>
|
||||
<if test="AffirmUserCode != null and AffirmUserCode != ''">AffirmUserCode,</if>
|
||||
<if test="AffirmUserName != null and AffirmUserName != ''">AffirmUserName,</if>
|
||||
<if test="SendPackTime != null ">SendPackTime,</if>
|
||||
<if test="SendUserCode != null and SendUserCode != ''">SendUserCode,</if>
|
||||
<if test="SendUserName != null and SendUserName != ''">SendUserName,</if>
|
||||
<if test="SignInTime != null ">SignInTime,</if>
|
||||
<if test="SignInUserCode != null and SignInUserCode != ''">SignInUserCode,</if>
|
||||
<if test="SignInUserName != null and SignInUserName != ''">SignInUserName,</if>
|
||||
<if test="DstHospCode != null and DstHospCode != ''">DstHospCode,</if>
|
||||
<if test="DstHospName != null and DstHospName != ''">DstHospName,</if>
|
||||
<if test="ExpressComCode != null and ExpressComCode != ''">ExpressComCode,</if>
|
||||
<if test="ExpressComName != null and ExpressComName != ''">ExpressComName,</if>
|
||||
<if test="PackSerial != null and PackSerial != ''">PackSerial,</if>
|
||||
<if test="ExpressNum != null and ExpressNum != ''">ExpressNum,</if>
|
||||
create_by,create_time,update_by,update_time
|
||||
)values(
|
||||
<if test="PatId != null and PatId != ''">#{PatId},</if>
|
||||
<if test="PatCardType != null and PatCardType != ''">#{PatCardType},</if>
|
||||
<if test="PatCardNo != null and PatCardNo != ''">#{PatCardNo},</if>
|
||||
<if test="PatType != null and PatType != ''">#{PatType},</if>
|
||||
<if test="RegNo != null and RegNo != ''">#{RegNo},</if>
|
||||
<if test="PatName != null and PatName != ''">#{PatName},</if>
|
||||
<if test="PatSex != null and PatSex != ''">#{PatSex},</if>
|
||||
<if test="PatAge != null and PatAge != ''">#{PatAge},</if>
|
||||
<if test="AgeUnit != null and AgeUnit != ''">#{AgeUnit},</if>
|
||||
<if test="PatAgeShow != null and PatAgeShow != ''">#{PatAgeShow},</if>
|
||||
<if test="PatBirthday != null and PatBirthday != ''">#{PatBirthday},</if>
|
||||
<if test="PatIdentity != null and PatIdentity != ''">#{PatIdentity},</if>
|
||||
<if test="Phone != null and Phone != ''">#{Phone},</if>
|
||||
<if test="Address != null and Address != ''">#{Address},</if>
|
||||
<if test="PatFeeType != null and PatFeeType != ''">#{PatFeeType},</if>
|
||||
<if test="DepartCode != null and DepartCode != ''">#{DepartCode},</if>
|
||||
<if test="DepartName != null and DepartName != ''">#{DepartName},</if>
|
||||
<if test="AreaCode != null and AreaCode != ''">#{AreaCode},</if>
|
||||
<if test="AreaName != null and AreaName != ''">#{AreaName},</if>
|
||||
<if test="PatBed != null and PatBed != ''">#{PatBed},</if>
|
||||
<if test="DiagnosisCode != null and DiagnosisCode != ''">#{DiagnosisCode},</if>
|
||||
<if test="DiagnosisName != null and DiagnosisName != ''">#{DiagnosisName},</if>
|
||||
<if test="OrderPatId != null and OrderPatId != ''">#{OrderPatId},</if>
|
||||
<if test="OrderUserCode != null and OrderUserCode != ''">#{OrderUserCode},</if>
|
||||
<if test="OrderUserName != null and OrderUserName != ''">#{OrderUserName},</if>
|
||||
<if test="OrderTime != null">#{OrderTime},</if>
|
||||
<if test="SrcHospCode != null and SrcHospCode != ''">#{SrcHospCode},</if>
|
||||
<if test="SrcHospName != null and SrcHospName != ''">#{SrcHospName},</if>
|
||||
<if test="Barcode != null and Barcode != ''">#{Barcode},</if>
|
||||
<if test="SrcHospBarcode != null and SrcHospBarcode != ''">#{SrcHospBarcode},</if>
|
||||
<if test="TubeCode != null and TubeCode != ''">#{TubeCode},</if>
|
||||
<if test="TubeName != null and TubeName != ''">#{TubeName},</if>
|
||||
<if test="tubeColor != null and tubeColor != ''">#{tubeColor},</if>
|
||||
<if test="SampleTypeCode != null and SampleTypeCode != ''">#{SampleTypeCode},</if>
|
||||
<if test="SampleTypeName != null and SampleTypeName != ''">#{SampleTypeName},</if>
|
||||
<if test="BodyCode != null and BodyCode != ''">#{BodyCode},</if>
|
||||
<if test="BodyName != null and BodyName != ''">#{BodyName},</if>
|
||||
<if test="IsER != null and IsER != ''">#{IsER},</if>
|
||||
<if test="Status != null and Status != ''">#{Status},</if>
|
||||
<if test="AffirmTime != null">#{AffirmTime},</if>
|
||||
<if test="AffirmUserCode != null and AffirmUserCode != ''">#{AffirmUserCode},</if>
|
||||
<if test="AffirmUserName != null and AffirmUserName != ''">#{AffirmUserName},</if>
|
||||
<if test="SendPackTime != null ">#{SendPackTime},</if>
|
||||
<if test="SendUserCode != null and SendUserCode != ''">#{SendUserCode},</if>
|
||||
<if test="SendUserName != null and SendUserName != ''">#{SendUserName},</if>
|
||||
<if test="SignInTime != null ">#{SignInTime},</if>
|
||||
<if test="SignInUserCode != null and SignInUserCode != ''">#{SignInUserCode},</if>
|
||||
<if test="SignInUserName != null and SignInUserName != ''">#{SignInUserName},</if>
|
||||
<if test="DstHospCode != null and DstHospCode != ''">#{DstHospCode},</if>
|
||||
<if test="DstHospName != null and DstHospName != ''">#{DstHospName},</if>
|
||||
<if test="ExpressComCode != null and ExpressComCode != ''">#{ExpressComCode},</if>
|
||||
<if test="ExpressComName != null and ExpressComName != ''">#{ExpressComName},</if>
|
||||
<if test="PackSerial != null and PackSerial != ''">#{PackSerial},</if>
|
||||
<if test="ExpressNum != null and ExpressNum != ''">#{ExpressNum},</if>
|
||||
#{create_by},#{create_time},#{update_by},#{update_time}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="addRegTransitSampleDetail">
|
||||
insert into reg_TransitSample_detail(
|
||||
<if test="OrderItemCode != null and OrderItemCode != ''">OrderItemCode,</if>
|
||||
<if test="OrderItemName != null and OrderItemName != ''">OrderItemName,</if>
|
||||
<if test="GroupItemCode != null and GroupItemCode != ''">GroupItemCode,</if>
|
||||
<if test="GroupItemName != null and GroupItemName != ''">GroupItemName,</if>
|
||||
<if test="SrcOrderItemCode != null and SrcOrderItemCode != ''">SrcOrderItemCode,</if>
|
||||
<if test="SrcOrderItemName != null and SrcOrderItemName != ''">SrcOrderItemName,</if>
|
||||
<if test="FeeCode != null and FeeCode != ''">FeeCode,</if>
|
||||
<if test="FeeName != null and FeeName != ''">FeeName,</if>
|
||||
<if test="Cost != null">Cost,</if>
|
||||
<if test="Status != null and Status != ''">Status,</if>
|
||||
Barcode,OrderItemSerial,create_by,create_time,update_by,update_time
|
||||
)values(
|
||||
<if test="OrderItemCode != null and OrderItemCode != ''">#{OrderItemCode},</if>
|
||||
<if test="OrderItemName != null and OrderItemName != ''">#{OrderItemName},</if>
|
||||
<if test="GroupItemCode != null and GroupItemCode != ''">#{GroupItemCode},</if>
|
||||
<if test="GroupItemName != null and GroupItemName != ''">#{GroupItemName},</if>
|
||||
<if test="SrcOrderItemCode != null and SrcOrderItemCode != ''">#{SrcOrderItemCode},</if>
|
||||
<if test="SrcOrderItemName != null and SrcOrderItemName != ''">#{SrcOrderItemName},</if>
|
||||
<if test="FeeCode != null and FeeCode != ''">#{FeeCode},</if>
|
||||
<if test="FeeName != null and FeeName != ''">#{FeeName},</if>
|
||||
<if test="Cost != null">#{Cost},</if>
|
||||
<if test="Status != null and Status != ''">#{Status},</if>
|
||||
#{Barcode},#{OrderItemSerial},#{create_by},#{create_time},#{update_by},#{update_time}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<delete id="delRegTransitSample">
|
||||
delete from reg_TransitSample where Barcode = #{barcode}
|
||||
</delete>
|
||||
|
||||
<delete id="delRegTransitSampleDetail">
|
||||
delete from reg_TransitSample_detail where Barcode = #{barcode}
|
||||
</delete>
|
||||
|
||||
|
||||
<update id="updateTest">
|
||||
update reg_TransitSample set checkPUR = #{checkPUR} WHERE Barcode = #{barcode}
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
Loading…
x
Reference in New Issue
Block a user