Commit 4e42a5ea by guojuxing

实付配置调整:如果传值为null,则不变化

parent e9c151c5
......@@ -56,8 +56,8 @@ public interface DataConfigApiService {
* @Description:

* @author guojuxing
* @param enterpriseId
* @param memberBusiness 会员业务 1:开启 0:关闭
* @param performanceCount
业绩统计 1:开启 0:关闭
* @param memberBusiness 会员业务 1:开启 0:关闭 null则不变化会员业务
* @param performanceCount
业绩统计 1:开启 0:关闭 null则不变化业绩统计配置
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


*/
ServiceResponse<Void> configActuallyPaid(Integer enterpriseId, Integer memberBusiness, Integer performanceCount);
......
......@@ -106,33 +106,32 @@ public class DataConfigApiServiceImpl implements DataConfigApiService {
@Override
public ServiceResponse<Void> configActuallyPaid(Integer enterpriseId, Integer memberBusiness, Integer performanceCount) {
if (memberBusiness == null) {
memberBusiness = 0;
List<DataActuallyPaidConfigDTO> list = new ArrayList<>(5);
if (memberBusiness != null) {
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(1)
.setConfigStatus(memberBusiness));
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(2)
.setConfigStatus(memberBusiness));
}
if (performanceCount == null) {
performanceCount = 0;
if (performanceCount != null) {
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(3)
.setConfigStatus(performanceCount));
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(4)
.setConfigStatus(performanceCount));
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(5)
.setConfigStatus(performanceCount));
}
List<DataActuallyPaidConfigDTO> list = new ArrayList<>(5);
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(1)
.setConfigStatus(memberBusiness));
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(2)
.setConfigStatus(memberBusiness));
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(3)
.setConfigStatus(performanceCount));
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(4)
.setConfigStatus(performanceCount));
list.add(new DataActuallyPaidConfigDTO()
.setEnterpriseId(enterpriseId)
.setClassify(5)
.setConfigStatus(performanceCount));
return configActuallyPaid(list);
}
......
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