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

fencang
x_z 3 years ago
parent 2c6d1f9874
commit 737b0462ff

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

@ -318,10 +318,20 @@
</select>
<select id="selectSupplementOrderList" resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity">
select *
from stock_order
where supplementNo is null
or supplementNo = ''
SELECT
billNo, orderIdFk, `status`
FROM
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 id="selectById" resultType="com.glxp.sale.admin.entity.inout.StockOrderEntity">

Loading…
Cancel
Save