Commit 4dfad34f by guojuxing

查询无效的记录,用于判断是否修改过配置,如果修改过,不允许再次edit

parent 9b584f87
......@@ -29,6 +29,15 @@ public class DataActuallyPaidConfig implements Serializable{
*/
private Integer performanceCount;
/**
* 是否已经配置过会员业务
*/
private boolean hasConfigMemberBusiness;
/**
* 是否已经配置过业绩统计
*/
private boolean hasConfigPerformanceCount;
public Integer getEnterpriseId() {
return enterpriseId;
}
......@@ -55,4 +64,22 @@ public class DataActuallyPaidConfig implements Serializable{
this.performanceCount = performanceCount;
return this;
}
public boolean isHasConfigMemberBusiness() {
return hasConfigMemberBusiness;
}
public DataActuallyPaidConfig setHasConfigMemberBusiness(boolean hasConfigMemberBusiness) {
this.hasConfigMemberBusiness = hasConfigMemberBusiness;
return this;
}
public boolean isHasConfigPerformanceCount() {
return hasConfigPerformanceCount;
}
public DataActuallyPaidConfig setHasConfigPerformanceCount(boolean hasConfigPerformanceCount) {
this.hasConfigPerformanceCount = hasConfigPerformanceCount;
return this;
}
}
......@@ -170,7 +170,9 @@ public class DataConfigApiServiceImpl implements DataConfigApiService {
return ServiceResponse.success(new DataActuallyPaidConfig()
.setEnterpriseId(enterpriseId)
.setMemberBusiness(memberBusiness)
.setPerformanceCount(performanceCount));
.setPerformanceCount(performanceCount)
.setHasConfigMemberBusiness(dataActuallyPaidConfigService.count(enterpriseId, 1) > 0)
.setHasConfigPerformanceCount(dataActuallyPaidConfigService.count(enterpriseId, 3) > 0));
}
return ServiceResponse.success(new DataActuallyPaidConfig().setEnterpriseId(enterpriseId).setMemberBusiness(0).setPerformanceCount(0));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment