|
@@ -14,7 +14,9 @@ import com.tofly.feesapi.common.util.GuidGenerator;
|
|
|
import com.tofly.feesapi.sfgl.mapper.YyQfmxMapper;
|
|
|
import com.tofly.feesapi.yhgl.entity.YhBtLog;
|
|
|
import com.tofly.feesapi.yhgl.entity.YhKhjbxx;
|
|
|
+import com.tofly.feesapi.yhgl.entity.Yhkhjbxx2;
|
|
|
import com.tofly.feesapi.yhgl.mapper.YhBtLogMapper;
|
|
|
+import com.tofly.feesapi.yhgl.mapper.YhKhjbxxMapper;
|
|
|
import com.tofly.feesapi.yhgl.service.YhBtLogService;
|
|
|
import com.tofly.feesapi.yhgl.service.YhKhjbxxService;
|
|
|
import io.netty.util.internal.StringUtil;
|
|
@@ -51,6 +53,7 @@ public class YhBtLogController {
|
|
|
private final YhBtLogMapper yhBtLogMapper;
|
|
|
|
|
|
private final YhKhjbxxService yhKhjbxxService;
|
|
|
+ private final YhKhjbxxMapper yhKhjbxxMapper;
|
|
|
|
|
|
private final YyQfmxMapper yyQfmxMapper;
|
|
|
|
|
@@ -104,10 +107,14 @@ public class YhBtLogController {
|
|
|
daBtLog.setBh(GuidGenerator.getGuid().substring(0, 8));
|
|
|
if (yhBtLogService.save(daBtLog)) {
|
|
|
|
|
|
- YhKhjbxx daCustomer = new YhKhjbxx();
|
|
|
- daCustomer.setYhbh(daBtLog.getYhbh());
|
|
|
- daCustomer.setYhzt(YhztEnum.报停用户);
|
|
|
- if (yhKhjbxxService.updateById(daCustomer)) {
|
|
|
+ Yhkhjbxx2 yhKhjbxx2=yhKhjbxxMapper.selectYhDa(daBtLog.getYhbh());
|
|
|
+ YhKhjbxx yhKhjbxx = new YhKhjbxx();
|
|
|
+ yhKhjbxx.setYhbh(daBtLog.getYhbh());
|
|
|
+ yhKhjbxx.setYhzt(YhztEnum.报停用户);
|
|
|
+ yhKhjbxx.setSsgs(String.valueOf(yhKhjbxx2.getSsgs()));
|
|
|
+ yhKhjbxx.setSscbb(String.valueOf(yhKhjbxx2.getSscbb()));
|
|
|
+ yhKhjbxx.setSscbpq(String.valueOf(yhKhjbxx2.getSscbpq()));
|
|
|
+ if (yhKhjbxxService.updateById(yhKhjbxx)) {
|
|
|
rest.setCode(1);
|
|
|
rest.setMessage("操作成功");
|
|
|
} else {
|