|
@@ -1,6 +1,8 @@
|
|
package org.jeecg.modules.weituo.service.impl;
|
|
package org.jeecg.modules.weituo.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
+import org.jeecg.common.exception.JeecgBootException;
|
|
|
|
+import org.jeecg.modules.weituo.common.ShenheStatus;
|
|
import org.jeecg.modules.weituo.convert.WeituoConvert;
|
|
import org.jeecg.modules.weituo.convert.WeituoConvert;
|
|
import org.jeecg.modules.weituo.dto.WeituoInsertCommand;
|
|
import org.jeecg.modules.weituo.dto.WeituoInsertCommand;
|
|
import org.jeecg.modules.weituo.dto.WeituoUpdateCommand;
|
|
import org.jeecg.modules.weituo.dto.WeituoUpdateCommand;
|
|
@@ -43,6 +45,7 @@ public class ItdmWeituoInfoServiceImpl extends ServiceImpl<ItdmWeituoInfoMapper,
|
|
public void saveWeituo(WeituoInsertCommand command) {
|
|
public void saveWeituo(WeituoInsertCommand command) {
|
|
|
|
|
|
ItdmWeituoInfo itdmWeituoInfo = WeituoConvert.INSTANCE.convert(command);
|
|
ItdmWeituoInfo itdmWeituoInfo = WeituoConvert.INSTANCE.convert(command);
|
|
|
|
+ itdmWeituoInfo.setShenheStatus("0");
|
|
|
|
|
|
|
|
|
|
this.baseMapper.insert(itdmWeituoInfo);
|
|
this.baseMapper.insert(itdmWeituoInfo);
|
|
@@ -70,7 +73,9 @@ public class ItdmWeituoInfoServiceImpl extends ServiceImpl<ItdmWeituoInfoMapper,
|
|
@Override
|
|
@Override
|
|
public void updateWeituo(WeituoUpdateCommand command) {
|
|
public void updateWeituo(WeituoUpdateCommand command) {
|
|
ItdmWeituoInfo itdmWeituoInfo = WeituoConvert.INSTANCE.convert(command);
|
|
ItdmWeituoInfo itdmWeituoInfo = WeituoConvert.INSTANCE.convert(command);
|
|
-
|
|
|
|
|
|
+ if (itdmWeituoInfo.getShenheStatus().equals(ShenheStatus.t.getCode())) {
|
|
|
|
+ throw new JeecgBootException("审核通过不能修改数据");
|
|
|
|
+ }
|
|
|
|
|
|
this.baseMapper.updateById(itdmWeituoInfo);
|
|
this.baseMapper.updateById(itdmWeituoInfo);
|
|
|
|
|