Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8b6f402634
@ -6,6 +6,7 @@ import com.ktg.common.utils.StringUtils;
|
|||||||
import com.ktg.mes.md.domain.*;
|
import com.ktg.mes.md.domain.*;
|
||||||
import com.ktg.mes.md.mapper.*;
|
import com.ktg.mes.md.mapper.*;
|
||||||
import com.ktg.mes.md.service.IWmsOutPlanService;
|
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.domain.WmStorageArea;
|
||||||
import com.ktg.mes.wm.mapper.WmStorageAreaMapper;
|
import com.ktg.mes.wm.mapper.WmStorageAreaMapper;
|
||||||
import com.ktg.mes.wm.mapper.WmStorageLocationMapper;
|
import com.ktg.mes.wm.mapper.WmStorageLocationMapper;
|
||||||
@ -57,6 +58,9 @@ public class WmsOutPlanServiceImpl implements IWmsOutPlanService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private WmStorageAreaMapper wmStorageAreaMapper;
|
private WmStorageAreaMapper wmStorageAreaMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private InventoryAdjustmentMapper inventoryAdjustmentMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询出库计划管理
|
* 查询出库计划管理
|
||||||
*
|
*
|
||||||
|
@ -1,7 +1,18 @@
|
|||||||
package com.ktg.mes.stl.mapper;
|
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 org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Mapper
|
@Mapper
|
||||||
public class InventoryAdjustmentMapper {
|
public interface InventoryAdjustmentMapper {
|
||||||
|
@DataSource(DataSourceType.SQLSERVER)
|
||||||
|
List<InventoryAdjustment> selectOutNewData();
|
||||||
|
|
||||||
|
@DataSource(DataSourceType.SQLSERVER)
|
||||||
|
int updateOutDataToOld(InventoryAdjustment inventoryAdjustment);
|
||||||
}
|
}
|
||||||
|
@ -68,11 +68,31 @@
|
|||||||
USER01,
|
USER01,
|
||||||
USER02,
|
USER02,
|
||||||
DATE01,
|
DATE01,
|
||||||
DATE02,
|
DATE02
|
||||||
from AP0AA
|
from AP0AD
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectList" resultMap="InventoryAdjustmentResult">
|
<select id="selectList" resultMap="InventoryAdjustmentResult">
|
||||||
<include refid="InventoryAdjustmentSelectAllCol"/>
|
<include refid="InventoryAdjustmentSelectAllCol"/>
|
||||||
</select>
|
</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>
|
</mapper>
|
Loading…
Reference in New Issue
Block a user