From 4f6873364388b811c5f9e66b79653dc958047b4a Mon Sep 17 00:00:00 2001 From: wangzhijiang <12345678> Date: Mon, 30 May 2022 10:40:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95-update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/ProjectLawsInventoryEO.java | 22 +++++++++---------- .../ProjectLawsInventoryEOServiceImpl.java | 5 ++++- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectLawsInventoryEO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectLawsInventoryEO.java index ac837c378..806a61ea8 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectLawsInventoryEO.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectLawsInventoryEO.java @@ -121,7 +121,7 @@ public class ProjectLawsInventoryEO implements Serializable { @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "新车型实施日期") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private Date xin1Che1Xing2Shi2Shi1Ri4Qi1; @TableField(exist = false) private String xin1Che1Xing2Shi2Shi1Ri4Qi1String; @@ -131,7 +131,7 @@ public class ProjectLawsInventoryEO implements Serializable { @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "在产车实施日期") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private Date implementTime; @TableField(exist = false) private String implementTimeString; @@ -218,7 +218,7 @@ public class ProjectLawsInventoryEO implements Serializable { private String designInitiator; /**设计符合性确认-发起人id*/ - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) @ApiModelProperty(value = "设计符合性确认-发起人id") private String designInitiatorId; @@ -234,7 +234,7 @@ public class ProjectLawsInventoryEO implements Serializable { /**设计符合性确认-责任人id*/ @ApiModelProperty(value = "设计符合性确认-责任人id") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private String designDutyId; /**设计符合性确认-责任人名称*/ @@ -247,7 +247,7 @@ public class ProjectLawsInventoryEO implements Serializable { @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "设计符合性确认-截止时间") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private Date designDueDate; @TableField(exist = false) private String designDueDateString; @@ -280,7 +280,7 @@ public class ProjectLawsInventoryEO implements Serializable { /**prehomo确认-发起人id*/ @ApiModelProperty(value = "prehomo确认-发起人id") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private String prehomoInitiatorId; /**prehomo确认-发起人名称*/ @@ -295,7 +295,7 @@ public class ProjectLawsInventoryEO implements Serializable { /**prehomo确认-责任人id*/ @ApiModelProperty(value = "prehomo确认-责任人id") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private String prehomoDutyId; /**prehomo确认-责任人名称*/ @@ -308,7 +308,7 @@ public class ProjectLawsInventoryEO implements Serializable { @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "prehomo确认-截止时间") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private Date prehomoDueDate; @TableField(exist = false) private String prehomoDueDateString; @@ -341,7 +341,7 @@ public class ProjectLawsInventoryEO implements Serializable { /**验证符合性确认-发起人id*/ @ApiModelProperty(value = "验证符合性确认-发起人id") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private String verifyInitiatorId; /**验证符合性确认-发起人名称*/ @@ -356,7 +356,7 @@ public class ProjectLawsInventoryEO implements Serializable { /**验证符合性确认-责任人id*/ @ApiModelProperty(value = "验证符合性确认-责任人id") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private String verifyDutyId; /**验证符合性确认-责任人名称*/ @@ -369,7 +369,7 @@ public class ProjectLawsInventoryEO implements Serializable { @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") @DateTimeFormat(pattern="yyyy-MM-dd") @ApiModelProperty(value = "验证符合性确认-截止时间") - @TableField(updateStrategy = FieldStrategy.IGNORED) + //@TableField(updateStrategy = FieldStrategy.IGNORED) private Date verifyDueDate; @TableField(exist = false) private String verifyDueDateString; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index bc0fbc85b..854d105c9 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -1386,7 +1386,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl lawsInventoryUpdateWrapper = new QueryWrapper<>(); + lawsInventoryUpdateWrapper.lambda().eq(ProjectLawsInventoryEO::getId,projectLawsInventoryEO.getId()); + this.baseMapper.update(projectLawsInventoryEO,lawsInventoryUpdateWrapper); } if(StringUtils.equals(operatorType,OperatorTypeEnum.ADD.getValue())){