|
@@ -17,6 +17,7 @@ import com.rongwei.rwadmincommon.system.vo.SysUserVo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
|
+import com.rongwei.rwcommon.vo.generalsql.MasterSlaveUpdateVo;
|
|
|
import com.rongwei.rwcommonentity.commonservers.vo.SysSerialVo;
|
|
|
import com.rongwei.safecommon.fegin.CXAdminFeginClient;
|
|
|
import com.rongwei.safecommon.utils.CXCommonUtils;
|
|
@@ -1693,6 +1694,17 @@ public class ApsReportRecordsServiceImpl extends ServiceImpl<ApsReportRecordsDao
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public R generalMsUpdate(MasterSlaveUpdateVo masterSlaveUpdate) {
|
|
|
+ String recordId = masterSlaveUpdate.getMasterUpdate().getColumnQueryTypes().get(0).getColumns().get(0).getValue();
|
|
|
+ ApsReportRecordsDo recordsDo = this.getById(recordId);
|
|
|
+ if (ObjectUtil.isEmpty(recordsDo) || !recordsDo.getReportworkstatus().equals("已开工")) {
|
|
|
+ return R.error("此作业已取消开工或已报工,请刷新列表后重试");
|
|
|
+ }
|
|
|
+ cxAdminFeginClient.generalMsUpdate(masterSlaveUpdate);
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|