fix: Long转String
This commit is contained in:
@@ -60,7 +60,7 @@ public class StIvtIostorinv implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 仓库标识
|
* 仓库标识
|
||||||
*/
|
*/
|
||||||
private Long stor_id;
|
private String stor_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仓库编码
|
* 仓库编码
|
||||||
@@ -180,12 +180,12 @@ public class StIvtIostorinv implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 部门ID
|
* 部门ID
|
||||||
*/
|
*/
|
||||||
private Long sysdeptid;
|
private String sysdeptid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公司ID
|
* 公司ID
|
||||||
*/
|
*/
|
||||||
private Long syscompanyid;
|
private String syscompanyid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否删除
|
* 是否删除
|
||||||
|
|||||||
@@ -595,7 +595,7 @@
|
|||||||
) AS c
|
) AS c
|
||||||
LEFT JOIN st_ivt_iostorinvdis dis ON dis.iostorinvdis_id = c.iostorinvdis_id
|
LEFT JOIN st_ivt_iostorinvdis dis ON dis.iostorinvdis_id = c.iostorinvdis_id
|
||||||
LEFT JOIN st_ivt_iostorinv mst ON mst.iostorinv_id = dis.iostorinv_id
|
LEFT JOIN st_ivt_iostorinv mst ON mst.iostorinv_id = dis.iostorinv_id
|
||||||
LEFT JOIN st_ivt_sectattr sect ON sect.sect_id = dis.sect_id
|
-- LEFT JOIN st_ivt_sectattr sect ON sect.sect_id = dis.sect_id
|
||||||
LEFT JOIN md_me_materialbase mater ON mater.material_id = dis.material_id
|
LEFT JOIN md_me_materialbase mater ON mater.material_id = dis.material_id
|
||||||
INNER JOIN pdm_bi_subpackagerelationrecord sub ON sub.container_name = dis.pcsn AND sub.package_box_sn =
|
INNER JOIN pdm_bi_subpackagerelationrecord sub ON sub.container_name = dis.pcsn AND sub.package_box_sn =
|
||||||
dis.box_no AND sub.bill_id = dis.iostorinv_id
|
dis.box_no AND sub.bill_id = dis.iostorinv_id
|
||||||
@@ -628,10 +628,10 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="paramMap.is_virtual == 0">
|
<if test="paramMap.is_virtual == 0">
|
||||||
AND sect.sect_type_attr <![CDATA[ <> ]]> '09'
|
-- AND sect.sect_type_attr <![CDATA[ <> ]]> '09'
|
||||||
</if>
|
</if>
|
||||||
<if test="paramMap.is_virtual == 1">
|
<if test="paramMap.is_virtual == 1">
|
||||||
AND sect.sect_type_attr = '09'
|
-- AND sect.sect_type_attr = '09'
|
||||||
</if>
|
</if>
|
||||||
<if test="paramMap.product_area != null and !paramMap.product_area.isEmpty()">
|
<if test="paramMap.product_area != null and !paramMap.product_area.isEmpty()">
|
||||||
AND LEFT(sub.container_name,2) IN
|
AND LEFT(sub.container_name,2) IN
|
||||||
|
|||||||
@@ -2047,7 +2047,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
|||||||
private StIvtIostorinv updataMst(JSONObject whereJson, StIvtIostorinv mstDao) {
|
private StIvtIostorinv updataMst(JSONObject whereJson, StIvtIostorinv mstDao) {
|
||||||
|
|
||||||
// 仓库信息
|
// 仓库信息
|
||||||
StorattrDto storattrDto = storattrService.findById(Long.parseLong((String) whereJson.get("stor_id")));
|
StorattrDto storattrDto = storattrService.findById((String) whereJson.get("stor_id"));
|
||||||
|
|
||||||
if (ObjectUtil.isEmpty(mstDao)) {
|
if (ObjectUtil.isEmpty(mstDao)) {
|
||||||
// 新增
|
// 新增
|
||||||
@@ -2074,8 +2074,8 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
|||||||
.update_time(DateUtil.now())
|
.update_time(DateUtil.now())
|
||||||
.is_delete(IOSEnum.IS_NOTANDYES.code("否"))
|
.is_delete(IOSEnum.IS_NOTANDYES.code("否"))
|
||||||
.is_upload(IOSEnum.IS_NOTANDYES.code("否"))
|
.is_upload(IOSEnum.IS_NOTANDYES.code("否"))
|
||||||
.syscompanyid(SecurityUtils.getDeptId())
|
.syscompanyid(String.valueOf(SecurityUtils.getDeptId()))
|
||||||
.sysdeptid(SecurityUtils.getDeptId())
|
.sysdeptid(String.valueOf(SecurityUtils.getDeptId()))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
if (ObjectUtil.isNotEmpty(whereJson.getString("out_stor_id"))) {
|
if (ObjectUtil.isNotEmpty(whereJson.getString("out_stor_id"))) {
|
||||||
|
|||||||
@@ -714,7 +714,7 @@ public class StIvtIostorinvServiceImpl extends ServiceImpl<StIvtIostorinvMapper,
|
|||||||
.uniqueResult(0);
|
.uniqueResult(0);
|
||||||
|
|
||||||
// 仓库信息
|
// 仓库信息
|
||||||
StorattrDto storattrDto = storattrService.findById(Long.parseLong((String) whereJson.get("stor_id")));
|
StorattrDto storattrDto = storattrService.findById((String) whereJson.get("stor_id"));
|
||||||
|
|
||||||
if (ObjectUtil.isEmpty(mstDao)) {
|
if (ObjectUtil.isEmpty(mstDao)) {
|
||||||
String currentUserId = SecurityUtils.getCurrentUserId();
|
String currentUserId = SecurityUtils.getCurrentUserId();
|
||||||
@@ -754,8 +754,8 @@ public class StIvtIostorinvServiceImpl extends ServiceImpl<StIvtIostorinvMapper,
|
|||||||
.update_time(DateUtil.now())
|
.update_time(DateUtil.now())
|
||||||
.is_delete(IOSEnum.IS_NOTANDYES.code("否"))
|
.is_delete(IOSEnum.IS_NOTANDYES.code("否"))
|
||||||
.is_upload(IOSEnum.IS_NOTANDYES.code("否"))
|
.is_upload(IOSEnum.IS_NOTANDYES.code("否"))
|
||||||
.syscompanyid(SecurityUtils.getDeptId())
|
.syscompanyid(String.valueOf(SecurityUtils.getDeptId()))
|
||||||
.sysdeptid(SecurityUtils.getDeptId())
|
.sysdeptid(String.valueOf(SecurityUtils.getDeptId()))
|
||||||
.build();
|
.build();
|
||||||
if (ObjectUtil.isNotEmpty(MapUtil.getStr(whereJson, "out_stor_id"))) {
|
if (ObjectUtil.isNotEmpty(MapUtil.getStr(whereJson, "out_stor_id"))) {
|
||||||
mstDao.setOut_stor_id(MapUtil.getStr(whereJson, "out_stor_id"));
|
mstDao.setOut_stor_id(MapUtil.getStr(whereJson, "out_stor_id"));
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public interface SectattrService {
|
|||||||
* @param sect_id ID
|
* @param sect_id ID
|
||||||
* @return Sectattr
|
* @return Sectattr
|
||||||
*/
|
*/
|
||||||
SectattrDto findById(Long sect_id);
|
SectattrDto findById(String sect_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据编码查询
|
* 根据编码查询
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public interface StorattrService {
|
|||||||
* @param stor_id ID
|
* @param stor_id ID
|
||||||
* @return Storattr
|
* @return Storattr
|
||||||
*/
|
*/
|
||||||
StorattrDto findById(Long stor_id);
|
StorattrDto findById(String stor_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据编码查询
|
* 根据编码查询
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public interface StructattrService {
|
|||||||
* @param struct_id ID
|
* @param struct_id ID
|
||||||
* @return Structattr
|
* @return Structattr
|
||||||
*/
|
*/
|
||||||
StructattrDto findById(Long struct_id);
|
StructattrDto findById(String struct_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据编码查询
|
* 根据编码查询
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ public class SectattrDto implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 防止精度丢失
|
* 防止精度丢失
|
||||||
*/
|
*/
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
private String sect_id;
|
||||||
private Long sect_id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 库区编码
|
* 库区编码
|
||||||
@@ -45,7 +44,7 @@ public class SectattrDto implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 仓库标识
|
* 仓库标识
|
||||||
*/
|
*/
|
||||||
private Long stor_id;
|
private String stor_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仓库名称
|
* 仓库名称
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package org.nl.wms.basedata.st.service.dto;
|
package org.nl.wms.basedata.st.service.dto;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -18,8 +16,7 @@ public class StorattrDto implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 防止精度丢失
|
* 防止精度丢失
|
||||||
*/
|
*/
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
private String stor_id;
|
||||||
private Long stor_id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仓库编码
|
* 仓库编码
|
||||||
@@ -112,11 +109,11 @@ public class StorattrDto implements Serializable {
|
|||||||
|
|
||||||
private String update_time;
|
private String update_time;
|
||||||
|
|
||||||
private Long sysownerid;
|
private String sysownerid;
|
||||||
|
|
||||||
private Long sysdeptid;
|
private String sysdeptid;
|
||||||
|
|
||||||
private Long syscompanyid;
|
private String syscompanyid;
|
||||||
|
|
||||||
private String is_delete;
|
private String is_delete;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package org.nl.wms.basedata.st.service.dto;
|
package org.nl.wms.basedata.st.service.dto;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -19,8 +17,7 @@ public class StructattrDto implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 防止精度丢失
|
* 防止精度丢失
|
||||||
*/
|
*/
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
private String struct_id;
|
||||||
private Long struct_id;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仓位编码
|
* 仓位编码
|
||||||
@@ -40,7 +37,7 @@ public class StructattrDto implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 库区标识
|
* 库区标识
|
||||||
*/
|
*/
|
||||||
private Long sect_id;
|
private String sect_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 库区编码
|
* 库区编码
|
||||||
@@ -55,7 +52,7 @@ public class StructattrDto implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 仓库标识
|
* 仓库标识
|
||||||
*/
|
*/
|
||||||
private Long stor_id;
|
private String stor_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仓库编码
|
* 仓库编码
|
||||||
@@ -185,7 +182,7 @@ public class StructattrDto implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 存储载具标识
|
* 存储载具标识
|
||||||
*/
|
*/
|
||||||
private Long storagevehicle_id;
|
private String storagevehicle_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 存储载具号
|
* 存储载具号
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public class SectattrServiceImpl implements SectattrService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SectattrDto findById(Long sect_id) {
|
public SectattrDto findById(String sect_id) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_sectattr");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_sectattr");
|
||||||
JSONObject json = wo.query("sect_id =" + sect_id + "").uniqueResult(0);
|
JSONObject json = wo.query("sect_id =" + sect_id + "").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(json)) {
|
if (ObjectUtil.isEmpty(json)) {
|
||||||
@@ -107,7 +107,7 @@ public class SectattrServiceImpl implements SectattrService {
|
|||||||
String nickName = SecurityUtils.getCurrentNickName();
|
String nickName = SecurityUtils.getCurrentNickName();
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
dto.setSect_id(IdUtil.getSnowflake(1, 1).nextId());
|
dto.setSect_id(IdUtil.getSnowflake(1, 1).nextIdStr());
|
||||||
dto.setCreate_id(currentUserId);
|
dto.setCreate_id(currentUserId);
|
||||||
dto.setCreate_name(nickName);
|
dto.setCreate_name(nickName);
|
||||||
dto.setUpdate_optid(currentUserId);
|
dto.setUpdate_optid(currentUserId);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class StorattrServiceImpl implements StorattrService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StorattrDto findById(Long stor_id) {
|
public StorattrDto findById(String stor_id) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_bsrealstorattr");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_bsrealstorattr");
|
||||||
JSONObject json = wo.query("stor_id =" + stor_id + "").uniqueResult(0);
|
JSONObject json = wo.query("stor_id =" + stor_id + "").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(json)) {
|
if (ObjectUtil.isEmpty(json)) {
|
||||||
@@ -89,7 +89,7 @@ public class StorattrServiceImpl implements StorattrService {
|
|||||||
String nickName = SecurityUtils.getCurrentNickName();
|
String nickName = SecurityUtils.getCurrentNickName();
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
dto.setStor_id(IdUtil.getSnowflake(1, 1).nextId());
|
dto.setStor_id(IdUtil.getSnowflake(1, 1).nextIdStr());
|
||||||
dto.setCreate_id(currentUserId);
|
dto.setCreate_id(currentUserId);
|
||||||
dto.setCreate_name(nickName);
|
dto.setCreate_name(nickName);
|
||||||
dto.setUpdate_optid(currentUserId);
|
dto.setUpdate_optid(currentUserId);
|
||||||
@@ -98,9 +98,9 @@ public class StorattrServiceImpl implements StorattrService {
|
|||||||
dto.setCreate_time(now);
|
dto.setCreate_time(now);
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
dto.setSyscompanyid(9L);
|
dto.setSyscompanyid("9");
|
||||||
dto.setSysdeptid(9L);
|
dto.setSysdeptid("9");
|
||||||
dto.setSysownerid(9L);
|
dto.setSysownerid("9");
|
||||||
|
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_bsrealstorattr");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_bsrealstorattr");
|
||||||
JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
|
JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ public class StructattrServiceImpl implements StructattrService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StructattrDto findById(Long struct_id) {
|
public StructattrDto findById(String struct_id) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("st_ivt_structattr");
|
WQLObject wo = WQLObject.getWQLObject("st_ivt_structattr");
|
||||||
JSONObject json = wo.query("struct_id =" + struct_id + "").uniqueResult(0);
|
JSONObject json = wo.query("struct_id =" + struct_id + "").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(json)) {
|
if (ObjectUtil.isEmpty(json)) {
|
||||||
@@ -145,7 +145,7 @@ public class StructattrServiceImpl implements StructattrService {
|
|||||||
String nickName = SecurityUtils.getCurrentNickName();
|
String nickName = SecurityUtils.getCurrentNickName();
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
dto.setStruct_id(IdUtil.getSnowflake(1, 1).nextId());
|
dto.setStruct_id(IdUtil.getSnowflake(1, 1).nextIdStr());
|
||||||
dto.setCreate_id(currentUserId);
|
dto.setCreate_id(currentUserId);
|
||||||
dto.setCreate_name(nickName);
|
dto.setCreate_name(nickName);
|
||||||
dto.setUpdate_optid(currentUserId);
|
dto.setUpdate_optid(currentUserId);
|
||||||
@@ -168,8 +168,7 @@ public class StructattrServiceImpl implements StructattrService {
|
|||||||
throw new BadRequestException("未发现载具号为【" + storagevehicle_code + "】的载具信息");
|
throw new BadRequestException("未发现载具号为【" + storagevehicle_code + "】的载具信息");
|
||||||
}
|
}
|
||||||
|
|
||||||
dto.setStoragevehicle_id(obj.getLong
|
dto.setStoragevehicle_id(obj.getString("storagevehicle_id"));
|
||||||
("storagevehicle_id"));
|
|
||||||
dto.setStoragevehicle_type(obj.getString("storagevehicle_type"));
|
dto.setStoragevehicle_type(obj.getString("storagevehicle_type"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,5 +89,9 @@ public interface InchargeService {
|
|||||||
*/
|
*/
|
||||||
IPage<WriteOffVo> inWriteOffPageDatas(ChargePageParam paramMap, PageQuery page);
|
IPage<WriteOffVo> inWriteOffPageDatas(ChargePageParam paramMap, PageQuery page);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库冲销 - 做出库
|
||||||
|
* @param paramMap
|
||||||
|
*/
|
||||||
void inWriteOffCharge(StIvtIostorinv paramMap);
|
void inWriteOffCharge(StIvtIostorinv paramMap);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,74 @@
|
|||||||
|
package org.nl.wms.st.inbill.service.dto;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仓位库存变动信息dto
|
||||||
|
*
|
||||||
|
* @Author: lyd
|
||||||
|
* @Date: 2025/6/12
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class InventoryChangeDto implements Serializable {
|
||||||
|
/**
|
||||||
|
* 仓位标识
|
||||||
|
*/
|
||||||
|
private String struct_id;
|
||||||
|
/**
|
||||||
|
* 物料标识
|
||||||
|
*/
|
||||||
|
private String material_id;
|
||||||
|
/**
|
||||||
|
* 品质类型
|
||||||
|
*/
|
||||||
|
private String quality_scode;
|
||||||
|
/**
|
||||||
|
* 批次
|
||||||
|
*/
|
||||||
|
private String pcsn;
|
||||||
|
/**
|
||||||
|
* 库存等级
|
||||||
|
*/
|
||||||
|
private String ivt_level;
|
||||||
|
/**
|
||||||
|
* 是否可用
|
||||||
|
*/
|
||||||
|
private String is_active;
|
||||||
|
/**
|
||||||
|
* 变动数(必填,大于0)
|
||||||
|
*/
|
||||||
|
private BigDecimal change_qty;
|
||||||
|
/**
|
||||||
|
* 单据类型
|
||||||
|
*/
|
||||||
|
private String bill_type_scode;
|
||||||
|
/**
|
||||||
|
* 单据标识
|
||||||
|
*/
|
||||||
|
private String inv_id;
|
||||||
|
/**
|
||||||
|
* 单据编号
|
||||||
|
*/
|
||||||
|
private String bill_code;
|
||||||
|
/**
|
||||||
|
* 单据表名(非必填)
|
||||||
|
*/
|
||||||
|
private String bill_table;
|
||||||
|
/**
|
||||||
|
* 单位标识
|
||||||
|
*/
|
||||||
|
private String qty_unit_id;
|
||||||
|
/**
|
||||||
|
* 单位名称
|
||||||
|
*/
|
||||||
|
private String qty_unit_name;
|
||||||
|
}
|
||||||
@@ -39,6 +39,7 @@ import org.nl.wms.basedata.st.service.impl.UserStorServiceImpl;
|
|||||||
import org.nl.wms.st.inbill.service.InchargeService;
|
import org.nl.wms.st.inbill.service.InchargeService;
|
||||||
import org.nl.wms.st.inbill.service.StorPublicService;
|
import org.nl.wms.st.inbill.service.StorPublicService;
|
||||||
import org.nl.wms.st.inbill.service.dto.ChargePageParam;
|
import org.nl.wms.st.inbill.service.dto.ChargePageParam;
|
||||||
|
import org.nl.wms.st.inbill.service.dto.InventoryChangeDto;
|
||||||
import org.nl.wms.st.inbill.service.vo.WriteOffVo;
|
import org.nl.wms.st.inbill.service.vo.WriteOffVo;
|
||||||
import org.nl.wms.st.vehiclebill.service.dto.EmptyvehiclerecordDto;
|
import org.nl.wms.st.vehiclebill.service.dto.EmptyvehiclerecordDto;
|
||||||
import org.nl.wms.stat.service.enums.OutBillTypeEnum;
|
import org.nl.wms.stat.service.enums.OutBillTypeEnum;
|
||||||
@@ -355,7 +356,6 @@ public class InchargeServiceImpl implements InchargeService {
|
|||||||
jsonIvt.put("bill_table", "ST_IVT_IOStorInv");
|
jsonIvt.put("bill_table", "ST_IVT_IOStorInv");
|
||||||
jsonIvt.put("change_qty", json2.getDoubleValue("real_qty"));
|
jsonIvt.put("change_qty", json2.getDoubleValue("real_qty"));
|
||||||
storPublicService.IOStor(jsonIvt, "11");
|
storPublicService.IOStor(jsonIvt, "11");
|
||||||
|
|
||||||
// 锁定仓位
|
// 锁定仓位
|
||||||
JSONObject jsonAttr = attrTab.query("struct_id = '" + jsonIvt.getString("struct_id") + "'").uniqueResult(0);
|
JSONObject jsonAttr = attrTab.query("struct_id = '" + jsonIvt.getString("struct_id") + "'").uniqueResult(0);
|
||||||
jsonAttr.put("lock_type", "3");
|
jsonAttr.put("lock_type", "3");
|
||||||
@@ -407,11 +407,11 @@ public class InchargeServiceImpl implements InchargeService {
|
|||||||
outOrder.setDis_optid(currentUserId);
|
outOrder.setDis_optid(currentUserId);
|
||||||
outOrder.setDis_optname(nickName);
|
outOrder.setDis_optname(nickName);
|
||||||
outOrder.setDis_time(DateUtil.now());
|
outOrder.setDis_time(DateUtil.now());
|
||||||
outOrder.setConfirm_optid("");
|
outOrder.setConfirm_optid("0");
|
||||||
outOrder.setConfirm_optname("");
|
outOrder.setConfirm_optname("");
|
||||||
outOrder.setConfirm_time("");
|
outOrder.setConfirm_time("");
|
||||||
outOrder.setSysdeptid(deptId);
|
outOrder.setSysdeptid(String.valueOf(deptId));
|
||||||
outOrder.setSyscompanyid(deptId);
|
outOrder.setSyscompanyid(String.valueOf(deptId));
|
||||||
iStIvtIostorinvService.save(outOrder);
|
iStIvtIostorinvService.save(outOrder);
|
||||||
// 根据入库明细生成出库明细
|
// 根据入库明细生成出库明细
|
||||||
List<StIvtIostorinvdis> needSaveOutDisList = new ArrayList<>();
|
List<StIvtIostorinvdis> needSaveOutDisList = new ArrayList<>();
|
||||||
@@ -488,6 +488,23 @@ public class InchargeServiceImpl implements InchargeService {
|
|||||||
jsonIvt.put("change_qty", inDis.getReal_qty());
|
jsonIvt.put("change_qty", inDis.getReal_qty());
|
||||||
storPublicService.IOStor(jsonIvt, "11");
|
storPublicService.IOStor(jsonIvt, "11");
|
||||||
|
|
||||||
|
InventoryChangeDto inventoryChangeDto = InventoryChangeDto.builder()
|
||||||
|
.struct_id(structivt.getStruct_id())
|
||||||
|
.material_id(structivt.getMaterial_id())
|
||||||
|
.quality_scode(structivt.getQuality_scode())
|
||||||
|
.pcsn(structivt.getPcsn())
|
||||||
|
.ivt_level("")
|
||||||
|
.is_active("")
|
||||||
|
.change_qty(inDis.getReal_qty())
|
||||||
|
.bill_table("ST_IVT_IOStorInv")
|
||||||
|
.bill_type_scode(outOrder.getBill_type())
|
||||||
|
.inv_id(outOrder.getIostorinv_id())
|
||||||
|
.bill_code(outOrder.getBill_code())
|
||||||
|
.qty_unit_id(structivt.getQty_unit_id())
|
||||||
|
.qty_unit_name("").build();
|
||||||
|
|
||||||
|
// storPublicService.ioInventoryModify(inventoryChangeDto, "11");
|
||||||
|
|
||||||
needLockStructIds.add(jsonIvt.getString("struct_id"));
|
needLockStructIds.add(jsonIvt.getString("struct_id"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ public class OutChargeServiceImpl implements OutChargeService {
|
|||||||
outDtl.setSource_billdtl_id(oldDtl.getSource_billdtl_id());
|
outDtl.setSource_billdtl_id(oldDtl.getSource_billdtl_id());
|
||||||
outDtl.setSource_bill_type(oldOutOrder.getBill_type());
|
outDtl.setSource_bill_type(oldOutOrder.getBill_type());
|
||||||
outDtl.setSource_bill_code(oldOutOrder.getBill_code());
|
outDtl.setSource_bill_code(oldOutOrder.getBill_code());
|
||||||
outDtl.setSource_bill_table("st_ivt_iostorinvdtl");
|
outDtl.setSource_bill_table("ST_IVT_IOStorInv");
|
||||||
outDtl.setAssign_qty(disRow.getPlan_qty());
|
outDtl.setAssign_qty(disRow.getPlan_qty());
|
||||||
outDtl.setUnassign_qty(BigDecimal.ZERO);
|
outDtl.setUnassign_qty(BigDecimal.ZERO);
|
||||||
// 手工入库明细 后面批次插入
|
// 手工入库明细 后面批次插入
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ public class RawAssistIStorServiceImpl implements RawAssistIStorService {
|
|||||||
.io_type("0")
|
.io_type("0")
|
||||||
.bill_type((String) whereJson.get("bill_type"))
|
.bill_type((String) whereJson.get("bill_type"))
|
||||||
.biz_date(whereJson.get("biz_date").toString().substring(0, 10))
|
.biz_date(whereJson.get("biz_date").toString().substring(0, 10))
|
||||||
.stor_id(Long.valueOf((String) whereJson.get("stor_id")))
|
.stor_id((String) whereJson.get("stor_id"))
|
||||||
.stor_code(stIvtBsrealstorattr.getStor_code())
|
.stor_code(stIvtBsrealstorattr.getStor_code())
|
||||||
.stor_name(stIvtBsrealstorattr.getStor_name())
|
.stor_name(stIvtBsrealstorattr.getStor_name())
|
||||||
.detail_count(BigDecimal.valueOf(rows.size()))
|
.detail_count(BigDecimal.valueOf(rows.size()))
|
||||||
@@ -257,8 +257,8 @@ public class RawAssistIStorServiceImpl implements RawAssistIStorService {
|
|||||||
.update_time(String.valueOf(DateUtil.parse(now)))
|
.update_time(String.valueOf(DateUtil.parse(now)))
|
||||||
.is_delete("0")
|
.is_delete("0")
|
||||||
.is_upload("0")
|
.is_upload("0")
|
||||||
.sysdeptid(SecurityUtils.getDeptId())
|
.sysdeptid(String.valueOf(SecurityUtils.getDeptId()))
|
||||||
.syscompanyid(SecurityUtils.getDeptId())
|
.syscompanyid(String.valueOf(SecurityUtils.getDeptId()))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package org.nl.wms.stat.rest;
|
package org.nl.wms.stat.rest;
|
||||||
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
@@ -12,8 +11,10 @@ import org.nl.wms.stat.service.dto.InBillPageParam;
|
|||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -40,7 +41,7 @@ public class InBillQueryController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/query2")
|
@GetMapping(value = "/query2")
|
||||||
@Log("查询")
|
@Log("新查询")
|
||||||
public ResponseEntity<Object> query2(InBillPageParam whereJson, PageQuery page) {
|
public ResponseEntity<Object> query2(InBillPageParam whereJson, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(inBillQueryService.getPage2(whereJson, page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(inBillQueryService.getPage2(whereJson, page)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package org.nl.wms.stat.rest;
|
package org.nl.wms.stat.rest;
|
||||||
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
@@ -12,8 +11,10 @@ import org.nl.wms.stat.service.dto.OutBillPageParam;
|
|||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -26,7 +27,6 @@ import java.util.Map;
|
|||||||
**/
|
**/
|
||||||
@RestController
|
@RestController
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|
||||||
@RequestMapping("/api/out/OutQuery")
|
@RequestMapping("/api/out/OutQuery")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class OutBillQueryController {
|
public class OutBillQueryController {
|
||||||
|
|||||||
Reference in New Issue
Block a user