bug修改

workplace
yewj 10 months ago
parent b706a7c210
commit fe6a7c18b1

@ -257,7 +257,7 @@ public class IoCollectOrderController extends BaseController {
collectOrderBizRequest.setOrderIdFk(collectOrderRequest.getBillNo());
List<CollectOrderBizResponse> collectOrderBizResponses = collectOrderService.combieOrderDetail(collectOrderBizRequest);
boolean isAllTag = collectOrderBizResponses.stream()
.allMatch(obj -> StrUtil.isNotEmpty(obj.getFinishUdiCode()));
.allMatch(obj -> StrUtil.isNotEmpty(obj.getFinishUdiCode()) || obj.getAutoTagStatus() == 2);
if (!isAllTag) {
return ResultVOUtils.error(502, "该业务单据未全部赋码,是否强制完成单据?");
}

@ -81,9 +81,9 @@ public class ThrProductsController {
BaseResponse<PageSimpleResponse<ThrProductsResponse>> udiDlDeviceResponse = erpBasicClient.getErpProducts(filterThrProductsRequest);
return udiDlDeviceResponse;
} else {
if (filterThrProductsRequest.getProductType() == null) {
filterThrProductsRequest.setProductType(1);
}
// if (filterThrProductsRequest.getProductType() == null) {
// filterThrProductsRequest.setProductType(1);
// }
List<ThrProductsResponse> thrCorpEntities = thrProductsService.filterJoinThrProducts(filterThrProductsRequest);
PageInfo<ThrProductsResponse> pageInfo;
pageInfo = new PageInfo<>(thrCorpEntities);

@ -497,7 +497,7 @@ public class UdiProductService {
udiProductEntity1.setBhxjcpbm(updateLevelDrugRequest.getBhxjcpbm());
udiProductEntity1.setBhxjsl(updateLevelDrugRequest.getMyBhxjsl());
udiProductEntity1.setUuid(udiRelevanceEntity.getUuid());
udiProductEntity1.setId(IdUtil.getSnowflakeNextId());
// udiProductEntity1.setId(IdUtil.getSnowflakeNextId());
udiProductDao.insert(udiProductEntity1);
}
} else {

@ -351,7 +351,7 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
public void importPrescribe(List<BasicSkPrescribeEntity> basicSkPrescribeEntities) {
//下载处方
if (CollUtil.isNotEmpty(basicSkPrescribeEntities))
if (CollUtil.isEmpty(basicSkPrescribeEntities))
basicSkPrescribeEntities = basicSkPrescribeService.list();
List<SysWorkplaceResponse> allWorksList = new ArrayList<>();
for (BasicSkPrescribeEntity basicSkPrescribeEntity : basicSkPrescribeEntities) {
@ -516,10 +516,8 @@ public class IoCollectOrderService extends ServiceImpl<IoCollectOrderMapper, IoC
if (IntUtil.value(sysWorkplaceDocumentEntity.getAutoTag()) == 1 && IntUtil.value(collectOrder.getTagStatus()) == 1) {
splitFifoCodeService.lockInventoryByOrder(collectOrder.getBillNo(), 1);
}
}
}
}
@Transactional(rollbackFor = Exception.class)

@ -458,8 +458,6 @@ public class IoSplitCodeService extends ServiceImpl<IoSplitCodeMapper, IoSplitCo
}
}
continue;
}
@ -524,6 +522,8 @@ public class IoSplitCodeService extends ServiceImpl<IoSplitCodeMapper, IoSplitCo
} else
collectOrderBiz.setAutoTagStatus(1);
}
collectOrderBizService.updateBatchById(collectOrderBizs);
}

@ -4337,6 +4337,14 @@ CALL Pro_Temp_ColumnWork('io_collect_order_biz', 'autoTagStatus',
CALL Pro_Temp_ColumnWork('basic_ins_drug', 'prepnSpec',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''采集规格''',
1);
CALL Pro_Temp_ColumnWork('thr_products', 'prepnSpec',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''采集规格''',
1);
CALL Pro_Temp_ColumnWork('basic_ins_material', 'remark',
'varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT ''备注''',
1);

Loading…
Cancel
Save