1.查询上传单据到自助平台控制字段逻辑修改

wms_pzh
x_z 3 years ago
parent 2e3e10bdd4
commit dedd43ecc5

@ -39,5 +39,5 @@ public interface UnitMaintainPlatformDao{
void deleteById(String id);
Long selectCount(@Param("action") String action);
Long selectCount(@Param("unitId") String unitId, @Param("action") String action);
}

@ -504,7 +504,7 @@ public class OrderServiceImpl implements OrderService {
@Override
public void setUploadFlag(List<StockOrderResponse> resultList) {
for (StockOrderResponse stockOrderResponse : resultList) {
Long count = unitMaintainPlatformDao.selectCount(stockOrderResponse.getBillType());
Long count = unitMaintainPlatformDao.selectCount(stockOrderResponse.getUnitIdFk(), stockOrderResponse.getBillType());
stockOrderResponse.setUploadFlag(count > 0 ? true : false);
}

@ -135,5 +135,6 @@
select count(*)
from io_unit_maintain_platform
where sourceAction = #{action}
and unitId = #{unitId}
</select>
</mapper>
Loading…
Cancel
Save