住院条码修改
This commit is contained in:
parent
fea7e18a2e
commit
a2c98a7105
@ -28,4 +28,8 @@ public class ReportParam {
|
|||||||
/**检验医生签名*/private String usernopic;
|
/**检验医生签名*/private String usernopic;
|
||||||
/**审核医生签名*/private String checkerpic;
|
/**审核医生签名*/private String checkerpic;
|
||||||
/**初审医生签名*/private String checkercbpic;
|
/**初审医生签名*/private String checkercbpic;
|
||||||
|
/**
|
||||||
|
* 通用数组参数
|
||||||
|
*/
|
||||||
|
private String[] arrayParam;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -451,3 +451,51 @@ if not exists(select 1 from dbo.com_dict where zdlb = 'ZKGZ' and zddh = '12X')
|
|||||||
begin
|
begin
|
||||||
insert into com_dict(zdlb,zddh,zdmc,zjf,zdbz,bz,yljg)values('ZKGZ','12X','十二个连续的质控测定值落在靶值(X)的同一侧','','','','1')
|
insert into com_dict(zdlb,zddh,zdmc,zjf,zdbz,bz,yljg)values('ZKGZ','12X','十二个连续的质控测定值落在靶值(X)的同一侧','','','','1')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '1')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '1', '开单', 'xz', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '11')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '11', '打印', 'dy', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '12')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '12', '采样', 'cy', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '13')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '13', '送检', 'sj', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '2')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '2', '上机', 'sj', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '4')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '4', '审核', 'sh', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '8')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '8', '剔回', 'th', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not exists(select 1 from dbo.com_dict where zdlb = 'ST' and zddh = '9')
|
||||||
|
begin
|
||||||
|
INSERT INTO dbo.com_dict (zdlb, zddh, zdmc, zjf, zdbz, bz, yljg, userflag)
|
||||||
|
VALUES ('ST', '9', '作废', 'zf', 'N', NULL, '1', NULL)
|
||||||
|
end
|
||||||
@ -32,6 +32,7 @@ public class ZycxController extends BaseController {
|
|||||||
private ZycxService zycxService;
|
private ZycxService zycxService;
|
||||||
@Autowired
|
@Autowired
|
||||||
PackBarcodeUtil packBarcodeUtil;
|
PackBarcodeUtil packBarcodeUtil;
|
||||||
|
|
||||||
@ApiOperation("获取申请单")
|
@ApiOperation("获取申请单")
|
||||||
@GetMapping("/query")
|
@GetMapping("/query")
|
||||||
//@PreAuthorize("@ss.hasPermi('zycx:interface:query')")
|
//@PreAuthorize("@ss.hasPermi('zycx:interface:query')")
|
||||||
@ -69,34 +70,42 @@ public class ZycxController extends BaseController {
|
|||||||
log.info("获取申请单主表数据,zyreq/reqmain:{}", labReqmain);
|
log.info("获取申请单主表数据,zyreq/reqmain:{}", labReqmain);
|
||||||
return zycxService.getSQDMain(labReqmain);
|
return zycxService.getSQDMain(labReqmain);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("封箱码查询")
|
@ApiOperation("封箱码查询")
|
||||||
@GetMapping("/checkpackid")
|
@GetMapping("/checkpackid")
|
||||||
public Result checkpackid(String packid) {
|
public Result checkpackid(String packid) {
|
||||||
return packBarcodeUtil.checkpackid(packid);
|
return packBarcodeUtil.checkpackid(packid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取封箱申请单信息")
|
@ApiOperation("获取封箱申请单信息")
|
||||||
@GetMapping("/getpackreq")
|
@GetMapping("/getpackreq")
|
||||||
public Result getpackreq(String sqh) {
|
public Result getpackreq(String sqh) {
|
||||||
return packBarcodeUtil.getpackreq(sqh);
|
return packBarcodeUtil.getpackreq(sqh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("封箱申请单")
|
@ApiOperation("封箱申请单")
|
||||||
@PostMapping("/packup")
|
@PostMapping("/packup")
|
||||||
public Result packup(@RequestBody List<LabReqpack> labReqpacks) {
|
public Result packup(@RequestBody List<LabReqpack> labReqpacks) {
|
||||||
return packBarcodeUtil.packup(labReqpacks);
|
return packBarcodeUtil.packup(labReqpacks);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("打印封箱码")
|
@ApiOperation("打印封箱码")
|
||||||
@GetMapping("/printpackid")
|
@GetMapping("/printpackid")
|
||||||
public Result printpackid(String ksmc) {
|
public Result printpackid(String ksmc) {
|
||||||
return packBarcodeUtil.printpackid(ksmc);
|
return packBarcodeUtil.printpackid(ksmc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/test1")
|
@GetMapping("/test1")
|
||||||
public Result test1(String sqh) {
|
public Result test1(String sqh) {
|
||||||
return zycxService.test1(sqh);
|
return zycxService.test1(sqh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation("打印送检清单")
|
||||||
|
@PostMapping("/printSendSample")
|
||||||
|
public Result printSendSample(@RequestBody String[] sqhArray){
|
||||||
|
return zycxService.printSendSample(sqhArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,5 +15,6 @@ public class QuerySqdVO {
|
|||||||
private String yljg;
|
private String yljg;
|
||||||
private String queryType; //1.brdh,2.ch,3.brxm
|
private String queryType; //1.brdh,2.ch,3.brxm
|
||||||
private String queryValue;
|
private String queryValue;
|
||||||
|
private String zt;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,4 +19,6 @@ public interface ZycxService {
|
|||||||
Result getSQDMain(LabReqmain labReqmain);
|
Result getSQDMain(LabReqmain labReqmain);
|
||||||
|
|
||||||
Result test1(String sqh);
|
Result test1(String sqh);
|
||||||
|
|
||||||
|
Result printSendSample(String[] sqhList);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.czlis.zycx.service.impl;
|
package com.czlis.zycx.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.common.core.domain.entity.lis.LabReqdetail;
|
import com.czlis.common.core.domain.entity.lis.LabReqdetail;
|
||||||
@ -52,6 +53,7 @@ public class ZycxServiceImpl implements ZycxService {
|
|||||||
webGetBarcode.setBrly("3");
|
webGetBarcode.setBrly("3");
|
||||||
webGetBarcode.setQueryType(querySqdVO.getQueryType());
|
webGetBarcode.setQueryType(querySqdVO.getQueryType());
|
||||||
webGetBarcode.setQueryValue(querySqdVO.getQueryValue());
|
webGetBarcode.setQueryValue(querySqdVO.getQueryValue());
|
||||||
|
webGetBarcode.setZt(querySqdVO.getZt());
|
||||||
return zycxMapper.getSQDInfo(webGetBarcode);
|
return zycxMapper.getSQDInfo(webGetBarcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,6 +105,8 @@ public class ZycxServiceImpl implements ZycxService {
|
|||||||
labReqmain.setZt("12");
|
labReqmain.setZt("12");
|
||||||
labReqmain.setSqh(sqhOne);
|
labReqmain.setSqh(sqhOne);
|
||||||
commonUtil.updateLabReqmain(labReqmain);
|
commonUtil.updateLabReqmain(labReqmain);
|
||||||
|
}else{
|
||||||
|
return new Result("-1","该条码已经送检或者上机或者已审核,不允许做采样操作!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,6 +117,20 @@ public class ZycxServiceImpl implements ZycxService {
|
|||||||
labReqmain.setZt("13");
|
labReqmain.setZt("13");
|
||||||
labReqmain.setSqh(sqhOne);
|
labReqmain.setSqh(sqhOne);
|
||||||
commonUtil.updateLabReqmain(labReqmain);
|
commonUtil.updateLabReqmain(labReqmain);
|
||||||
|
}else{
|
||||||
|
return new Result("-1","该条码已经送检或者上机或者已审核,不允许再送检!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//作废
|
||||||
|
if(status.equals("9")){
|
||||||
|
if(zt.equals("1") || zt.equals("8") || zt.equals("11") || zt.equals("12")){
|
||||||
|
LabReqmain labReqmain = new LabReqmain();
|
||||||
|
labReqmain.setZt("9");
|
||||||
|
labReqmain.setSqh(sqhOne);
|
||||||
|
commonUtil.updateLabReqmain(labReqmain);
|
||||||
|
}else{
|
||||||
|
return new Result("-1","该条码已经送检或者上机或者已审核,不允许作废!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,6 +158,20 @@ public class ZycxServiceImpl implements ZycxService {
|
|||||||
return printBarCode(sqh);
|
return printBarCode(sqh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打印送检清单
|
||||||
|
* @param sqhArray
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Result printSendSample(String[] sqhArray) {
|
||||||
|
ReportParam reportParam = new ReportParam();
|
||||||
|
reportParam.setArrayParam(sqhArray);
|
||||||
|
String hospitalName = commonUtil.getCompany("1");
|
||||||
|
reportParam.setHospitalName(hospitalName);
|
||||||
|
return reportUtil.printToPdf("sendSample",reportParam,"",true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public Result createSQDExecSP(String dept, String userid, String st, String et, String yljg){
|
public Result createSQDExecSP(String dept, String userid, String st, String et, String yljg){
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user