yxk-20260508-修复党委会主子表新增的时候del_flag字段没有默认设置为0的bug
This commit is contained in:
+6
@@ -103,6 +103,9 @@ public class BgPartymatterController extends JeecgController<BgPartymatter, IBgP
|
||||
@RequiresPermissions("bgpartymatter:bg_partymatter:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody BgPartymatter bgPartymatter) {
|
||||
if (oConvertUtils.isEmpty(bgPartymatter.getDelFlag())) {
|
||||
bgPartymatter.setDelFlag("0");
|
||||
}
|
||||
bgPartymatterService.save(bgPartymatter);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
@@ -218,6 +221,9 @@ public class BgPartymatterController extends JeecgController<BgPartymatter, IBgP
|
||||
@Operation(summary="党委会反馈表-添加")
|
||||
@PostMapping(value = "/addBgPartymatterFeedback")
|
||||
public Result<String> addBgPartymatterFeedback(@RequestBody BgPartymatterFeedback bgPartymatterFeedback) {
|
||||
if (oConvertUtils.isEmpty(bgPartymatterFeedback.getDelFlag())) {
|
||||
bgPartymatterFeedback.setDelFlag("0");
|
||||
}
|
||||
bgPartymatterFeedbackService.save(bgPartymatterFeedback);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
+2
-2
@@ -131,8 +131,8 @@ public class BgPartymatter implements Serializable {
|
||||
/**删除标识*/
|
||||
@Excel(name = "删除标识", width = 15)
|
||||
@Schema(description = "删除标识")
|
||||
@TableLogic
|
||||
private java.lang.String delFlag;
|
||||
@TableLogic(value = "0", delval = "1")
|
||||
private java.lang.String delFlag = "0";
|
||||
/**是否需要重复督办*/
|
||||
@Excel(name = "是否需要重复督办", width = 15)
|
||||
@Schema(description = "是否需要重复督办")
|
||||
|
||||
+2
-2
@@ -85,8 +85,8 @@ public class BgPartymatterFeedback implements Serializable {
|
||||
/**删除标识*/
|
||||
@Excel(name = "删除标识", width = 15)
|
||||
@Schema(description = "删除标识")
|
||||
@TableLogic
|
||||
private java.lang.String delFlag;
|
||||
@TableLogic(value = "0", delval = "1")
|
||||
private java.lang.String delFlag = "0";
|
||||
/**外键*/
|
||||
@Schema(description = "外键")
|
||||
private java.lang.String mainId;
|
||||
|
||||
Reference in New Issue
Block a user