12/20 bug优化

dev_unify
wangwei 4 months ago
parent 36d193986d
commit 42154bee1a

@ -88,7 +88,7 @@ public class UdiContrastController {
if (keys != null && keys.size() > 0) { if (keys != null && keys.size() > 0) {
for (String key : keys) { for (String key : keys) {
//关联添加 //关联添加
if (udiCombineRequest.getRelId() == null || udiCombineRequest.isIdSpliUdi()) { if (udiCombineRequest.getRelId() == null) {
if (StrUtil.isNotEmpty(udiCombineRequest.getThirdId())) { if (StrUtil.isNotEmpty(udiCombineRequest.getThirdId())) {
if (udiContrastService.isExit(key, udiCombineRequest.getThirdId(), null)) { if (udiContrastService.isExit(key, udiCombineRequest.getThirdId(), null)) {
return ResultVOUtils.error(500, "已存在相同的对照关系,对照失败!"); return ResultVOUtils.error(500, "已存在相同的对照关系,对照失败!");
@ -443,6 +443,9 @@ public class UdiContrastController {
if (StrUtil.isEmpty(udiProductEntity.getCpms())) { if (StrUtil.isEmpty(udiProductEntity.getCpms())) {
udiProductEntity.setCpms(originProductEntity.getCpms()); udiProductEntity.setCpms(originProductEntity.getCpms());
} }
if (udiProductEntity.getProductsType() == null || udiProductEntity.getProductsType() == 0){
udiProductEntity.setProductsType(originProductEntity.getProductsType());
}
if (StrUtil.isEmpty(udiProductEntity.getBasicPrductRemak1())) { if (StrUtil.isEmpty(udiProductEntity.getBasicPrductRemak1())) {
udiProductEntity.setBasicPrductRemak1(originProductEntity.getBasicPrductRemak1()); udiProductEntity.setBasicPrductRemak1(originProductEntity.getBasicPrductRemak1());
} }
@ -525,4 +528,5 @@ public class UdiContrastController {
} }
} }

@ -454,11 +454,12 @@ public class IoOrderDetailBizController extends BaseController {
.sorted(Comparator.comparing(IoOrderDetailBizResponse::getNameCode)) .sorted(Comparator.comparing(IoOrderDetailBizResponse::getNameCode))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }
Integer total = orderDetailBizService.getCount(orderDetailBizRequest);
List<IoOrderDetailCodeEntity> orderDetailCodeEntities = orderDetailCodeService.findByOrderId(orderDetailBizRequest.getOrderIdFk()); List<IoOrderDetailCodeEntity> orderDetailCodeEntities = orderDetailCodeService.findByOrderId(orderDetailBizRequest.getOrderIdFk());
ioCheckInoutService.bizOrderCheck2(list, orderDetailCodeEntities); ioCheckInoutService.bizOrderCheck2(list, orderDetailCodeEntities);
PageInfo<IoOrderDetailBizResponse> pageInfo = new PageInfo<>(list); PageInfo<IoOrderDetailBizResponse> pageInfo = new PageInfo<>(list);
PageSimpleResponse<IoOrderDetailBizResponse> pageSimpleResponse = new PageSimpleResponse<>(); PageSimpleResponse<IoOrderDetailBizResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal()); pageSimpleResponse.setTotal(Long.valueOf(total));
pageSimpleResponse.setList(list); pageSimpleResponse.setList(list);
return ResultVOUtils.success(pageSimpleResponse); return ResultVOUtils.success(pageSimpleResponse);
} }

@ -47,4 +47,6 @@ public interface IoOrderDetailBizDao extends BaseMapperPlus<IoOrderDetailBizDao,
IoOrderDetailBizEntity findByRelBatch(@Param("orderId") String orderId, @Param("relId") Long relId, @Param("batchNo") String batchNo); IoOrderDetailBizEntity findByRelBatch(@Param("orderId") String orderId, @Param("relId") Long relId, @Param("batchNo") String batchNo);
Integer getCount(FilterOrderDetailBizRequest orderDetailBizRequest);
} }

@ -128,5 +128,4 @@ public class FilterUdiRelRequest extends ListPageRequest {
private String keyWords; private String keyWords;
} }

@ -247,6 +247,7 @@ public class UdiContrastService {
udiRelevanceEntity.setSplitEnable(true); udiRelevanceEntity.setSplitEnable(true);
udiRelevanceEntity.setAutoCode(true); udiRelevanceEntity.setAutoCode(true);
udiRelevanceEntity.setIsDisable(false); udiRelevanceEntity.setIsDisable(false);
udiRelevanceEntity.setProductsType(thrProductsEntity.getProductType());
BasicInsMaterialEntity basicInsMaterialEntity = null; BasicInsMaterialEntity basicInsMaterialEntity = null;
if (thrProductsEntity.getYbbm() != null) { if (thrProductsEntity.getYbbm() != null) {

@ -68,4 +68,6 @@ public interface IoOrderDetailBizService {
boolean copyOrderDetailBiz(String newBillNo, String oldBillNo); boolean copyOrderDetailBiz(String newBillNo, String oldBillNo);
BaseResponse addBizProduct(AddBizProductReqeust addBizProductReqeust); BaseResponse addBizProduct(AddBizProductReqeust addBizProductReqeust);
Integer getCount(FilterOrderDetailBizRequest orderDetailBizRequest);
} }

@ -454,4 +454,9 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService {
return ResultVOUtils.success(orderEntity); return ResultVOUtils.success(orderEntity);
} }
@Override
public Integer getCount(FilterOrderDetailBizRequest orderDetailBizRequest) {
return ioOrderDetailBizDao.getCount(orderDetailBizRequest);
}
} }

@ -190,4 +190,25 @@
</where> </where>
group by io_order_detail_result.id group by io_order_detail_result.id
</select> </select>
<select id="getCount" resultType="java.lang.Integer">
select count(*)
from io_order_detail_biz
left join basic_udirel bu on bu.id = io_order_detail_biz.bindRlFk
left join basic_products bp on bu.uuid = bp.uuid
<where>
<if test="orderIdFk!= null and orderIdFk!= ''">
AND orderIdFk = #{orderIdFk}
</if>
<if test="relId!= null">
AND bindRlFk = #{relId}
</if>
<if test="batchNo!= null and batchNo!= ''">
AND batchNo = #{batchNo}
</if>
<if test="productName!= null and productName!= ''">
AND bp.cpmctymc like concat('%', #{productName}, '%')
</if>
</where>
</select>
</mapper> </mapper>

Loading…
Cancel
Save