diff --git a/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/mapper/xml/SmartBeamFieldBeamToProcessMapper.xml b/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/mapper/xml/SmartBeamFieldBeamToProcessMapper.xml
index 20f961a80..ebb875e59 100644
--- a/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/mapper/xml/SmartBeamFieldBeamToProcessMapper.xml
+++ b/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/mapper/xml/SmartBeamFieldBeamToProcessMapper.xml
@@ -57,6 +57,9 @@
smart_beam_field_make_beam_pedestal_id = #{smartBeamFieldMakeBeamPedestalId,jdbcType=BIGINT},
+
+ status = #{status},
+
where id = #{id,jdbcType=BIGINT}
diff --git a/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/service/impl/SmartBeamFieldBeamToProcessServiceImpl.java b/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/service/impl/SmartBeamFieldBeamToProcessServiceImpl.java
index dfa93f29c..1fa819c34 100644
--- a/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/service/impl/SmartBeamFieldBeamToProcessServiceImpl.java
+++ b/src/main/java/com/zhgd/xmgl/modules/smartbeamfield/service/impl/SmartBeamFieldBeamToProcessServiceImpl.java
@@ -69,21 +69,24 @@ public class SmartBeamFieldBeamToProcessServiceImpl extends ServiceImpl smartBeamFieldBeamToProcesses = smartBeamFieldBeamToProcessMapper.selectList(new LambdaQueryWrapper()
.eq(SmartBeamFieldBeamToProcess::getSmartBeamFieldBeamId, smartBeamFieldBeamId)
.in(SmartBeamFieldBeamToProcess::getStatus, Stream.of(1, 2).collect(Collectors.toList()))
);
+ int status;
if (CollUtil.isEmpty(smartBeamFieldBeamToProcesses)) {
- smartBeamFieldBeamMapper.update(null, new LambdaUpdateWrapper().set(SmartBeamFieldBeam::getBeamMakeStatus, 3)
- .eq(SmartBeamFieldBeam::getId, smartBeamFieldBeamId));
+ status = 3;
+ } else {
+ status = 2;
}
+ smartBeamFieldBeamMapper.update(null, new LambdaUpdateWrapper().set(SmartBeamFieldBeam::getBeamMakeStatus, status)
+ .eq(SmartBeamFieldBeam::getId, smartBeamFieldBeamId));
}
private Integer getStatus(SmartBeamFieldBeamToProcess smartBeamFieldBeamToProcess) {
@@ -100,7 +103,7 @@ public class SmartBeamFieldBeamToProcessServiceImpl extends ServiceImpl