修复仓位id与点位id不相同
This commit is contained in:
@@ -91,11 +91,16 @@ public class StructattrServiceImpl implements StructattrService {
|
|||||||
StructattrDto byCode = this.findByCode(struct_code);
|
StructattrDto byCode = this.findByCode(struct_code);
|
||||||
if (ObjectUtil.isNotEmpty(byCode)) throw new BadRequestException("编码已存在!");
|
if (ObjectUtil.isNotEmpty(byCode)) throw new BadRequestException("编码已存在!");
|
||||||
|
|
||||||
|
// 获取点位信息
|
||||||
|
WQLObject pointTab = WQLObject.getWQLObject("SCH_BASE_Point");
|
||||||
|
JSONObject jsonObject = pointTab.query("point_code = '" + struct_code + "'").uniqueResult(0);
|
||||||
|
if (ObjectUtil.isEmpty(jsonObject)) throw new BadRequestException("点位编码为[" + struct_code + "]不存在!");
|
||||||
|
|
||||||
Long currentUserId = SecurityUtils.getCurrentUserId();
|
Long currentUserId = SecurityUtils.getCurrentUserId();
|
||||||
String nickName = SecurityUtils.getNickName();
|
String nickName = SecurityUtils.getNickName();
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
dto.setStruct_id(IdUtil.getSnowflake(1, 1).nextId());
|
dto.setStruct_id(jsonObject.getLong("point_id"));
|
||||||
dto.setCreate_id(currentUserId);
|
dto.setCreate_id(currentUserId);
|
||||||
dto.setCreate_name(nickName);
|
dto.setCreate_name(nickName);
|
||||||
dto.setUpdate_optid(currentUserId);
|
dto.setUpdate_optid(currentUserId);
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[交易说明]
|
[交易说明]
|
||||||
交易名: 生产管理之产线管理下工序参数设置
|
交易名: 生产管理之产线管理下工序参数设置
|
||||||
所属模块:
|
所属模块:
|
||||||
功能简述:
|
功能简述:
|
||||||
版权所有:
|
版权所有:
|
||||||
表引用:
|
表引用:
|
||||||
版本经历:
|
版本经历:
|
||||||
|
|
||||||
[数据库]
|
[数据库]
|
||||||
--指定数据库,为空采用默认值,默认为db.properties中列出的第一个库
|
--指定数据库,为空采用默认值,默认为db.properties中列出的第一个库
|
||||||
@@ -25,22 +25,22 @@
|
|||||||
|
|
||||||
[临时表]
|
[临时表]
|
||||||
--这边列出来的临时表就会在运行期动态创建
|
--这边列出来的临时表就会在运行期动态创建
|
||||||
|
|
||||||
[临时变量]
|
[临时变量]
|
||||||
--所有中间过程变量均可在此处定义
|
--所有中间过程变量均可在此处定义
|
||||||
|
|
||||||
[业务过程]
|
[业务过程]
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# 1、输入输出检查 #
|
# 1、输入输出检查 #
|
||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# 2、主过程前处理 #
|
# 2、主过程前处理 #
|
||||||
##########################################
|
##########################################
|
||||||
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# 3、业务主过程 #
|
# 3、业务主过程 #
|
||||||
##########################################
|
##########################################
|
||||||
|
|||||||
Reference in New Issue
Block a user