|
|
|
@ -14,10 +14,7 @@ import com.glxp.api.constant.Constant;
|
|
|
|
|
import com.glxp.api.constant.WorkOperType;
|
|
|
|
|
import com.glxp.api.dao.collect.IoCollectOrderCodeManMapper;
|
|
|
|
|
import com.glxp.api.entity.auth.SysWorkplace;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.SysWorkplaceDocumentEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.SysWorkplacePutRel;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.*;
|
|
|
|
|
import com.glxp.api.entity.collect.*;
|
|
|
|
|
import com.glxp.api.entity.inout.IoCodeLostEntity;
|
|
|
|
|
import com.glxp.api.entity.inout.IoCodeTempEntity;
|
|
|
|
@ -207,6 +204,11 @@ public class IoCollectOrderCodeManService extends ServiceImpl<IoCollectOrderCode
|
|
|
|
|
throw new JsonException(500, "当前追溯码非原始处方追溯码");
|
|
|
|
|
}
|
|
|
|
|
IoCollectCodeResponse ioCollectCodeResponse = ioCollectCodeResponses.get(0);
|
|
|
|
|
// if (ioCollectCodeResponse.getReCount() != 0 || ioCollectCodeResponse.getReCount() != null){
|
|
|
|
|
// //扫入的为拆零码
|
|
|
|
|
// //这个为 退货的数量 如果退货数量 是
|
|
|
|
|
// Integer count = collectOrderBiz1.getCount();
|
|
|
|
|
// }
|
|
|
|
|
if (!ioCollectCodeResponse.getCode().equals(code)){
|
|
|
|
|
throw new JsonException(500, "当前追溯码非原始处方追溯码");
|
|
|
|
|
}
|
|
|
|
@ -473,14 +475,16 @@ public class IoCollectOrderCodeManService extends ServiceImpl<IoCollectOrderCode
|
|
|
|
|
int count = IntUtil.value(collectOrderBiz.getScanCount()) + 1;
|
|
|
|
|
int actCount = 0;
|
|
|
|
|
actCount = IntUtil.value(collectOrderBiz.getScanActCount()) + scanCount;
|
|
|
|
|
if (actCount > IntUtil.value(collectOrderBiz.getCount())) {
|
|
|
|
|
int needCount = IntUtil.value(collectOrderBiz.getCount()) - IntUtil.value(collectOrderBiz.getScanActCount());
|
|
|
|
|
if (needCount > 0) {
|
|
|
|
|
if (vailInSplit(collectOrderBiz, putWorkPlaceCode, needCount)) {
|
|
|
|
|
throw new JsonException(502, collectOrderBiz.getCpmctymc() + "当前拆零数量还有剩余,是否继续扫码进行拆零?");
|
|
|
|
|
if (!addTagCodeReqeust.getBusType().startsWith("YPCFTF")) {
|
|
|
|
|
if (actCount > IntUtil.value(collectOrderBiz.getCount())) {
|
|
|
|
|
int needCount = IntUtil.value(collectOrderBiz.getCount()) - IntUtil.value(collectOrderBiz.getScanActCount());
|
|
|
|
|
if (needCount > 0) {
|
|
|
|
|
if (vailInSplit(collectOrderBiz, putWorkPlaceCode, needCount)) {
|
|
|
|
|
throw new JsonException(502, collectOrderBiz.getCpmctymc() + "当前拆零数量还有剩余,是否继续扫码进行拆零?");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
throw new JsonException(500, collectOrderBiz.getCpmctymc() + "扫码数量超出!");
|
|
|
|
|
}
|
|
|
|
|
throw new JsonException(500, collectOrderBiz.getCpmctymc() + "扫码数量超出!");
|
|
|
|
|
}
|
|
|
|
|
collectOrderBiz.setAddScanCount(1);
|
|
|
|
|
collectOrderBiz.setAddScanActCount(scanCount);
|
|
|
|
|