1.修复平衡补单在未完成二次验收的情况下就补单的问题,调整查询语句,精简非必要字段,合并多次查询

fencang
x_z 3 years ago
parent 2c6d1f9874
commit 737b0462ff

@ -326,10 +326,7 @@ public class OrderServiceImpl implements OrderService {
stockOrderEntityList.forEach(stockOrderEntity -> { stockOrderEntityList.forEach(stockOrderEntity -> {
StockOrderResponse response = new StockOrderResponse(); StockOrderResponse response = new StockOrderResponse();
BeanUtil.copyProperties(stockOrderEntity, response); BeanUtil.copyProperties(stockOrderEntity, response);
String supplementOrderType = bussinessTypeDao.selectEnableSupplementOrder(stockOrderEntity.getOrderIdFk()); if (stockOrderEntity.getStatus().equals(ConstantStatus.SORDER_DELIVER)) {
if (StrUtil.isBlank(supplementOrderType) || StrUtil.isNotBlank(stockOrderEntity.getSupplementNo())) {
response.setEnableSupplementOrder(false);
} else {
response.setEnableSupplementOrder(true); response.setEnableSupplementOrder(true);
} }
result.add(response); result.add(response);

@ -318,10 +318,20 @@
</select> </select>
<select id="selectSupplementOrderList" resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity"> <select id="selectSupplementOrderList" resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity">
select * SELECT
from stock_order billNo, orderIdFk, `status`
where supplementNo is null FROM
or supplementNo = '' stock_order
WHERE
( supplementNo IS NULL OR supplementNo = '' )
AND billType IN (
SELECT
localAction
FROM
basic_bussiness_type
WHERE
supplementOrderType IS NOT NULL
OR supplementOrderType != '')
</select> </select>
<select id="selectById" resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity"> <select id="selectById" resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity">

Loading…
Cancel
Save