Merge remote-tracking branch 'origin/master'

This commit is contained in:
Kelvin 2024-12-13 14:44:37 +08:00
commit 8b6f402634
3 changed files with 38 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import com.ktg.common.utils.StringUtils;
import com.ktg.mes.md.domain.*;
import com.ktg.mes.md.mapper.*;
import com.ktg.mes.md.service.IWmsOutPlanService;
import com.ktg.mes.stl.mapper.InventoryAdjustmentMapper;
import com.ktg.mes.wm.domain.WmStorageArea;
import com.ktg.mes.wm.mapper.WmStorageAreaMapper;
import com.ktg.mes.wm.mapper.WmStorageLocationMapper;
@ -57,6 +58,9 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService {
@Autowired
private WmStorageAreaMapper wmStorageAreaMapper;
@Autowired
private InventoryAdjustmentMapper inventoryAdjustmentMapper;
/**
* 查询出库计划管理
*

View File

@ -1,7 +1,18 @@
package com.ktg.mes.stl.mapper;
import com.ktg.common.annotation.DataSource;
import com.ktg.common.enums.DataSourceType;
import com.ktg.mes.md.domain.AP0AD;
import com.ktg.mes.stl.domain.InventoryAdjustment;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public class InventoryAdjustmentMapper {
public interface InventoryAdjustmentMapper {
@DataSource(DataSourceType.SQLSERVER)
List<InventoryAdjustment> selectOutNewData();
@DataSource(DataSourceType.SQLSERVER)
int updateOutDataToOld(InventoryAdjustment inventoryAdjustment);
}

View File

@ -68,11 +68,31 @@
USER01,
USER02,
DATE01,
DATE02,
from AP0AA
DATE02
from AP0AD
</sql>
<select id="selectList" resultMap="InventoryAdjustmentResult">
<include refid="InventoryAdjustmentSelectAllCol"/>
</select>
<select id="selectOutNewData" resultMap="InventoryAdjustmentResult">
<include refid="InventoryAdjustmentSelectAllCol"/>
where UDF02 != 'ED'
AND AD001 IS NOT NULL
AND AD002 IS NOT NULL
AND AD003 IS NOT NULL
AND AD004 IS NOT NULL
AND AD008 > 0
AND AD011 IS NOT NULL
</select>
<update id="updateOutDataToOld">
update AP0AD
set UDF02 = 'ED'
where AD001 = #{singetsu}
AND AD002 = #{oddNumber}
AND AD003 = #{billDate}
AND AD004 = #{serialNumber}
</update>
</mapper>