Compare commits
2 Commits
b608fcb2bf
...
5d7374e50a
Author | SHA1 | Date | |
---|---|---|---|
5d7374e50a | |||
e9a45fe507 |
@ -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;
|
||||
|
||||
/**
|
||||
* 查询出库计划管理
|
||||
*
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -69,10 +69,30 @@
|
||||
USER02,
|
||||
DATE01,
|
||||
DATE02,
|
||||
from AP0AA
|
||||
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>
|
Loading…
Reference in New Issue
Block a user