diff --git a/hzims-service-api/basic-api/src/main/java/com/hnac/hzims/basic/entity/PersonManagemetEntity.java b/hzims-service-api/basic-api/src/main/java/com/hnac/hzims/basic/entity/PersonManagemetEntity.java index 7dec2fa..44bb68f 100644 --- a/hzims-service-api/basic-api/src/main/java/com/hnac/hzims/basic/entity/PersonManagemetEntity.java +++ b/hzims-service-api/basic-api/src/main/java/com/hnac/hzims/basic/entity/PersonManagemetEntity.java @@ -9,6 +9,8 @@ import lombok.EqualsAndHashCode; import org.springblade.core.mp.support.QueryField; import org.springblade.core.tenant.mp.TenantEntity; +import java.io.Serializable; + /** * 实体类 @@ -18,9 +20,7 @@ import org.springblade.core.tenant.mp.TenantEntity; @TableName("hzims_person_managemet") @EqualsAndHashCode(callSuper = true) @ApiModel(value = "人员管理表", description = "人员管理表") -public class PersonManagemetEntity extends TenantEntity { - - private static final long serialVersionUID = 1L; +public class PersonManagemetEntity extends TenantEntity implements Serializable { /** * 用户ID diff --git a/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/controller/PresonManagementController.java b/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/controller/PresonManagementController.java index c68768d..4c6f7ff 100644 --- a/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/controller/PresonManagementController.java +++ b/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/controller/PresonManagementController.java @@ -61,12 +61,8 @@ public class PresonManagementController extends BladeController { @PostMapping ("/submit") @ApiOperationSupport(order = 1) @ApiOperation(value = "增加", notes = "传入imsDutyClass") - public R submit(@RequestBody PersonManagemetVo personManagemetVo) { - Boolean submit = iImsPresonManagementService.submit(personManagemetVo); - if (submit){ - return R.success("保存成功"); - } - return R.fail("保存失败"); + public R submit(@RequestBody PersonManagemetVo personManagemetVo) throws IllegalAccessException { + return iImsPresonManagementService.submit(personManagemetVo); } /** diff --git a/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/mapper/PersonManagemetMapper.xml b/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/mapper/PersonManagemetMapper.xml index ca4e02d..e4c173b 100644 --- a/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/mapper/PersonManagemetMapper.xml +++ b/hzims-service/hzims-basic/src/main/java/com/hnac/hzims/basic/mapper/PersonManagemetMapper.xml @@ -19,7 +19,7 @@ - + @@ -27,8 +27,8 @@