fix(存储仓库库存大于0同步sap):增加快照ID条件
This commit is contained in:
parent
2d8e4c835c
commit
f71e8a708a
@ -142,7 +142,7 @@ public interface RemoteWmsInventoryService {
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/z-wms-inventory-stock-his-itf/api/readZWmsInventoryStockHisItfCount/{site}")
|
||||
R<Integer> readZWmsInventoryStockHisItfCount(@PathVariable("site") String site, @RequestHeader(SecurityConstants.FROM) String from);
|
||||
R<ZWmsInventoryStockHisItf> readZWmsInventoryStockHisItfCount(@PathVariable("site") String site, @RequestHeader(SecurityConstants.FROM) String from);
|
||||
|
||||
/**
|
||||
* 获取库存数量大于0的数据
|
||||
@ -150,6 +150,6 @@ public interface RemoteWmsInventoryService {
|
||||
* @param site
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/z-wms-inventory-stock-his-itf/api/readZWmsInventoryStockHisItfList/{site}/{start}/{end}")
|
||||
R<List<ZWmsInventoryStockHisItf>> readZWmsInventoryStockHisItfList(@PathVariable("site") String site, @PathVariable("start") Integer start, @PathVariable("end") Integer end, @RequestHeader(SecurityConstants.FROM) String from);
|
||||
@GetMapping("/z-wms-inventory-stock-his-itf/api/readZWmsInventoryStockHisItfList/{site}/{snapshotId}/{start}/{end}")
|
||||
R<List<ZWmsInventoryStockHisItf>> readZWmsInventoryStockHisItfList(@PathVariable("site") String site, @PathVariable("snapshotId") String snapshotId, @PathVariable("start") Integer start, @PathVariable("end") Integer end, @RequestHeader(SecurityConstants.FROM) String from);
|
||||
}
|
||||
@ -2,6 +2,7 @@ package com.foreverwin.mom.wms.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
||||
@ -147,4 +148,11 @@ public class ZWmsInventoryStockHisItf extends Model<ZWmsInventoryStockHisItf> {
|
||||
*/
|
||||
@ApiModelProperty(value="快照ID")
|
||||
private String snapshotId;
|
||||
|
||||
/**
|
||||
* 发送总数
|
||||
*/
|
||||
@ApiModelProperty(value = "发送总数")
|
||||
@TableField(exist = false)
|
||||
private Integer amount;
|
||||
}
|
||||
|
||||
@ -117,7 +117,7 @@ public class ZWmsInventoryStockHisItfController {
|
||||
@ApiOperation(value = "获取库存数量大于0的最新一笔快照数据量", notes = "获取库存数量大于0的最新一笔快照数据量")
|
||||
@GetMapping("/api/readZWmsInventoryStockHisItfCount/{site}")
|
||||
@Inner(value = false)
|
||||
public R<Integer> readZWmsInventoryStockHisItfCount(@PathVariable("site") String site) {
|
||||
public R<ZWmsInventoryStockHisItf> readZWmsInventoryStockHisItfCount(@PathVariable("site") String site) {
|
||||
return R.ok(zWmsInventoryStockHisItfService.readZWmsInventoryStockHisItfCount(site));
|
||||
}
|
||||
|
||||
|
||||
@ -27,5 +27,5 @@ public interface ZWmsInventoryStockHisItfService extends IService<ZWmsInventoryS
|
||||
* @param site 站点
|
||||
* @return
|
||||
*/
|
||||
Integer readZWmsInventoryStockHisItfCount(String site);
|
||||
ZWmsInventoryStockHisItf readZWmsInventoryStockHisItfCount(String site);
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ public class ZWmsInventoryStockHisItfServiceImpl extends ServiceImpl<ZWmsInvento
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer readZWmsInventoryStockHisItfCount(String site) {
|
||||
public ZWmsInventoryStockHisItf readZWmsInventoryStockHisItfCount(String site) {
|
||||
return baseMapper.readZWmsInventoryStockHisItfCount(site);
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,5 +14,5 @@ import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface ZWmsInventoryStockHisItfMapper extends BaseMapper<ZWmsInventoryStockHisItf> {
|
||||
|
||||
Integer readZWmsInventoryStockHisItfCount(@Param("site") String site);
|
||||
ZWmsInventoryStockHisItf readZWmsInventoryStockHisItfCount(@Param("site") String site);
|
||||
}
|
||||
|
||||
@ -390,7 +390,6 @@
|
||||
#{iqcResults}
|
||||
</foreach>
|
||||
</if>
|
||||
ORDER BY ZD.DOCUMENT_NO DESC, ZDS.GRADE_ONE_CARRIER ASC,ZDS.GRADE_TWO_CARRIER ASC;
|
||||
</select>
|
||||
|
||||
<select id="findAllSourceWarehouse" resultMap="com.foreverwin.mom.wms.mapper.WareHouseMapper.wmsWarehouseMap">
|
||||
|
||||
@ -26,9 +26,10 @@
|
||||
</resultMap>
|
||||
|
||||
<!--获取库存数量大于0的最新一笔快照数据量-->
|
||||
<select id="readZWmsInventoryStockHisItfCount" resultType="java.lang.Integer">
|
||||
<select id="readZWmsInventoryStockHisItfCount" resultType="com.foreverwin.mom.wms.entity.ZWmsInventoryStockHisItf">
|
||||
select
|
||||
count(zwishi.HANDLE) as AMOUNT
|
||||
count(zwishi.HANDLE) as AMOUNT,
|
||||
zwishi.SNAPSHOT_ID
|
||||
from
|
||||
wms.z_wms_inventory_stock_his_itf zwishi
|
||||
where
|
||||
@ -43,5 +44,6 @@
|
||||
order by
|
||||
zwisi.DATE_CREATE desc
|
||||
limit 1)
|
||||
group by zwishi.SNAPSHOT_ID
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user