|
|
|
@ -57,6 +57,7 @@ import com.glxp.api.service.auth.SysWorkplaceService;
|
|
|
|
|
import com.glxp.api.service.basic.*;
|
|
|
|
|
import com.glxp.api.service.inout.*;
|
|
|
|
|
import com.glxp.api.service.inout.impl.IoCodeService;
|
|
|
|
|
import com.glxp.api.service.thrsys.SysWorkplacePutRelService;
|
|
|
|
|
import com.glxp.api.util.*;
|
|
|
|
|
import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
|
import com.glxp.api.util.udi.UdiCalCountUtil;
|
|
|
|
@ -288,10 +289,10 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
|
|
|
|
|
String mainAction = ioOrderEntity.getMainAction();
|
|
|
|
|
String fromCorpName = "";
|
|
|
|
|
String shipperName = "";
|
|
|
|
|
if (mainAction.equals(ConstantType.TYPE_PUT)){
|
|
|
|
|
if (mainAction.equals(ConstantType.TYPE_PUT)) {
|
|
|
|
|
shipperName = ioOrderEntity.getFromName();
|
|
|
|
|
fromCorpName = ioOrderEntity.getDeptName();
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
shipperName = ioOrderEntity.getDeptName();
|
|
|
|
|
fromCorpName = ioOrderEntity.getFromName();
|
|
|
|
|
}
|
|
|
|
@ -315,7 +316,7 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
|
|
|
|
|
}
|
|
|
|
|
save(collectOrder);
|
|
|
|
|
IoCollectOrderOrigin ioCollectOrderOrigin = new IoCollectOrderOrigin();
|
|
|
|
|
BeanUtils.copyProperties(collectOrder,ioCollectOrderOrigin);
|
|
|
|
|
BeanUtils.copyProperties(collectOrder, ioCollectOrderOrigin);
|
|
|
|
|
ioCollectOrderOrigin.setTagStatus(2);
|
|
|
|
|
collectOrderOriginService.saveOrUpdate(ioCollectOrderOrigin);
|
|
|
|
|
|
|
|
|
@ -346,7 +347,7 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
|
|
|
|
|
}
|
|
|
|
|
collectOrderBizs.add(collectOrderBiz);
|
|
|
|
|
IoCollectOrderBizOrigin ioCollectOrderBizOrigin = new IoCollectOrderBizOrigin();
|
|
|
|
|
BeanUtils.copyProperties(collectOrderBiz,ioCollectOrderBizOrigin);
|
|
|
|
|
BeanUtils.copyProperties(collectOrderBiz, ioCollectOrderBizOrigin);
|
|
|
|
|
ioCollectOrderBizOrigin.setId(null);
|
|
|
|
|
collectOrderOriginBizs.add(ioCollectOrderBizOrigin);
|
|
|
|
|
}
|
|
|
|
@ -376,10 +377,10 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
|
|
|
|
|
String mainAction = ioOrderEntity.getMainAction();
|
|
|
|
|
String fromCorpName = "";
|
|
|
|
|
String shipperName = "";
|
|
|
|
|
if (mainAction.equals(ConstantType.TYPE_PUT)){
|
|
|
|
|
if (mainAction.equals(ConstantType.TYPE_PUT)) {
|
|
|
|
|
shipperName = ioOrderEntity.getFromName();
|
|
|
|
|
fromCorpName = ioOrderEntity.getDeptName();
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
shipperName = ioOrderEntity.getDeptName();
|
|
|
|
|
fromCorpName = ioOrderEntity.getFromName();
|
|
|
|
|
}
|
|
|
|
@ -432,13 +433,12 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PageInfo<IoCollectOrder> pageInfoReturn = new PageInfo<>(ioCollectOrders);
|
|
|
|
|
BeanUtils.copyProperties(pageInfo,pageInfoReturn);
|
|
|
|
|
BeanUtils.copyProperties(pageInfo, pageInfoReturn);
|
|
|
|
|
pageInfoReturn.setList(ioCollectOrders);
|
|
|
|
|
return ResultVOUtils.success(pageInfoReturn);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void importPrescribe(List<BasicSkPrescribeEntity> basicSkPrescribeEntities) {
|
|
|
|
|
//下载处方
|
|
|
|
|
if (CollUtil.isEmpty(basicSkPrescribeEntities))
|
|
|
|
@ -714,14 +714,23 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
|
|
|
|
|
.eq(IoCollectOrder::getId, collectOrderRequest.getId()).update();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SysWorkplacePutRelService sysWorkplacePutRelService;
|
|
|
|
|
|
|
|
|
|
public void finishOrder(CollectOrderRequest collectOrderRequest) {
|
|
|
|
|
IoCollectOrder collectOrder = new IoCollectOrder();
|
|
|
|
|
BeanUtils.copyProperties(collectOrderRequest, collectOrder);
|
|
|
|
|
collectOrder.setTagStatus(3);
|
|
|
|
|
collectOrder.setUpdateTime(new Date());
|
|
|
|
|
// updateByBillNo(collectOrder);
|
|
|
|
|
|
|
|
|
|
// Long putWorkPlace = null;
|
|
|
|
|
// SysWorkplacePutRel sysWorkplacePutRel = sysWorkplacePutRelService.findPutWorkPlace(collectOrder.getWorkPlaceCode(), collectOrder.getBusType());
|
|
|
|
|
// if (sysWorkplacePutRel != null) {
|
|
|
|
|
// putWorkPlace = sysWorkplacePutRel.getWorkPlaceCode();
|
|
|
|
|
// }
|
|
|
|
|
splitCodeService.finishAutoTagCode(collectOrder);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//插入备用表
|
|
|
|
|
IoCollectOrderBackup ioCollectOrderBackup = new IoCollectOrderBackup();
|
|
|
|
|
BeanUtils.copyProperties(collectOrder, ioCollectOrderBackup);
|
|
|
|
|