企业管理修改

This commit is contained in:
梁琦涛
2021-10-12 17:24:49 +08:00
parent 7eef3dd300
commit e9c6f5c0f3
2 changed files with 4 additions and 7 deletions
@@ -229,6 +229,9 @@ public class PayCompanyManagementServiceImpl extends ServiceImpl<PayCompanyManag
throw new JeroBootException("企业不存在!");
}
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
if(!sysUser.getRoleCode().contains(RoleCommon.CWRY)){
throw new JeroBootException("非财务人员不可操作!");
}
LambdaUpdateWrapper<PayCompanyManagement> updatePayCompanyManagement = new LambdaUpdateWrapper<>();
updatePayCompanyManagement.eq(PayCompanyManagement::getId,id);
updatePayCompanyManagement.set(PayCompanyManagement::getStatus, PayCompanyManagementCommon.STATUS1);
@@ -41,6 +41,7 @@ public class PayCommonProject implements Serializable {
/**来款项目*/
@Excel(name = "来款项目", width = 20,orderNum = "0")
@ApiModelProperty(value = "来款项目")
@Size(max = 50,message = "来款项目长度不能大于50个字符")
private String chargeProject;
/**来款用途(字典表)*/
@ApiModelProperty(value = "来款用途")
@@ -55,7 +56,6 @@ public class PayCommonProject implements Serializable {
/**负责人id*/
@ApiModelProperty(value = "负责人id")
@NotEmpty(message = "负责人id不能为空!")
@Size(max = 32,message = "来款项目长度不能大于32个字符")
private String principalId;
/**负责人名称*/
@Excel(name = "项目负责人", width = 15,orderNum = "2")
@@ -64,11 +64,9 @@ public class PayCommonProject implements Serializable {
/**来款企业id*/
@ApiModelProperty(value = "来款企业id")
@NotEmpty(message = "来款企业id不能为空!")
@Size(max = 32,message = "来款企业id长度不能大于32个字符")
private String chargeCompanyId;
/**临时来款企业id*/
@ApiModelProperty(value = "临时来款企业id")
@Size(max = 32,message = "临时来款企业id长度不能大于32个字符")
private String chargeCompanyTemporaryId;
/**临时来款企业*/
@Excel(name = "来款单位", width = 15,orderNum = "3")
@@ -77,11 +75,9 @@ public class PayCommonProject implements Serializable {
/**联系人id*/
@ApiModelProperty(value = "联系人id")
@NotEmpty(message = "联系人id不能为空!")
@Size(max = 32,message = "来款企业id长度不能大于32个字符")
private String contactsId;
/**临时联系人id*/
@ApiModelProperty(value = "临时联系人id")
@Size(max = 32,message = "临时联系人id长度不能大于32个字符")
private String contactsTemporaryId;
/**临时联系人名称*/
@ApiModelProperty(value = "临时联系人名称")
@@ -102,11 +98,9 @@ public class PayCommonProject implements Serializable {
/**邮寄联系人id*/
@ApiModelProperty(value = "邮寄联系人id")
@NotEmpty(message = "邮寄联系人id不能为空!")
@Size(max = 32,message = "邮寄联系人id长度不能大于32个字符")
private String mailContactsId;
/**临时邮寄联系人id*/
@ApiModelProperty(value = "临时邮寄联系人id")
@Size(max = 32,message = "临时邮寄联系人id长度不能大于32个字符")
private String mailContactsTemporaryId;
/**临时邮寄联系人名称*/
@ApiModelProperty(value = "临时邮寄联系人名称")