|
|
@ -59,7 +59,6 @@ public class DeptDeviceDetailServiceImpl implements DeptDeviceDetailService {
|
|
|
|
for (DeviceReceiveOrderDetailResponse receiveOrderDetailResponse : deviceReceiveOrderDetailResponses) {
|
|
|
|
for (DeviceReceiveOrderDetailResponse receiveOrderDetailResponse : deviceReceiveOrderDetailResponses) {
|
|
|
|
//查询此编码的产品是否已经在科室设备明细中
|
|
|
|
//查询此编码的产品是否已经在科室设备明细中
|
|
|
|
Long count = deptDeviceDetailDao.selectCount(new QueryWrapper<DeptDeviceDetailEntity>().eq("deptCode", receiveOrderEntity.getFromDeptCode())
|
|
|
|
Long count = deptDeviceDetailDao.selectCount(new QueryWrapper<DeptDeviceDetailEntity>().eq("deptCode", receiveOrderEntity.getFromDeptCode())
|
|
|
|
.eq("invCode", receiveOrderEntity.getInvCode())
|
|
|
|
|
|
|
|
.eq("code", receiveOrderDetailResponse.getCode())
|
|
|
|
.eq("code", receiveOrderDetailResponse.getCode())
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (count == 0) {
|
|
|
|
if (count == 0) {
|
|
|
@ -84,8 +83,8 @@ public class DeptDeviceDetailServiceImpl implements DeptDeviceDetailService {
|
|
|
|
deviceDetail.setStatus(1);
|
|
|
|
deviceDetail.setStatus(1);
|
|
|
|
deviceDetail.setAddType(1);
|
|
|
|
deviceDetail.setAddType(1);
|
|
|
|
deviceDetail.setCreateUser(receiveOrderEntity.getAuditUser());
|
|
|
|
deviceDetail.setCreateUser(receiveOrderEntity.getAuditUser());
|
|
|
|
deviceDetail.setCreateTime(date);
|
|
|
|
// deviceDetail.setCreateTime(date);
|
|
|
|
deviceDetail.setUpdateTime(date);
|
|
|
|
// deviceDetail.setUpdateTime(date);
|
|
|
|
deptDeviceDetailDao.insert(deviceDetail);
|
|
|
|
deptDeviceDetailDao.insert(deviceDetail);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|