Merge branch 'platform-agent'
commit
ef191ebea1
@ -0,0 +1,20 @@
|
||||
package com.baiye.modules.agent.entity.query;
|
||||
|
||||
import com.baiye.annotation.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wjt
|
||||
* @date 2023/4/23
|
||||
*/
|
||||
@Data
|
||||
public class ResourceChannelQuery {
|
||||
@ApiModelProperty(value = "客户名称")
|
||||
@Query(type = Query.Type.INNER_LIKE)
|
||||
private String channelName;
|
||||
|
||||
@ApiModelProperty(value = "父id")
|
||||
@Query(propName = "parentId", type = Query.Type.IS_NULL)
|
||||
private Boolean parentId;
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.baiye.modules.agent.entity.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wjt
|
||||
* @date 2023/4/23
|
||||
*/
|
||||
@Data
|
||||
public class CustomReportVo {
|
||||
|
||||
/**
|
||||
* 当前代理商总购买
|
||||
*/
|
||||
private Integer totalNum = 0;
|
||||
/**
|
||||
* 当前代理商可分配资源
|
||||
*/
|
||||
private Integer surplusNum = 0;
|
||||
/**
|
||||
* 当前代理商历史分配
|
||||
*/
|
||||
private Integer assignNum = 0;
|
||||
/**
|
||||
* 渠道商数
|
||||
*/
|
||||
private Integer channelNum = 0;
|
||||
/**
|
||||
* 渠道商总配量
|
||||
*/
|
||||
private Integer channelTotalNum = 0;
|
||||
/**
|
||||
* 渠道商剩余可分配
|
||||
*/
|
||||
private Integer channelSurplusNum = 0;
|
||||
/**
|
||||
* 直客数
|
||||
*/
|
||||
private Integer customNum = 0;
|
||||
/**
|
||||
* 直客总配量
|
||||
*/
|
||||
private Integer customTotalNum = 0;
|
||||
/**
|
||||
* 直客剩余可分配
|
||||
*/
|
||||
private Integer customSurplusNum = 0;
|
||||
|
||||
public CustomReportVo addCustomReportVo(Integer totalNum, Integer surplusNum, Integer assignNum, Integer channelNum, Integer channelTotalNum, Integer channelSurplusNum, Integer customNum, Integer customTotalNum, Integer customSurplusNum) {
|
||||
this.setTotalNum(totalNum);
|
||||
this.setSurplusNum(surplusNum);
|
||||
this.setAssignNum(assignNum);
|
||||
this.setChannelNum(channelNum);
|
||||
this.setChannelTotalNum(channelTotalNum);
|
||||
this.setChannelSurplusNum(channelSurplusNum);
|
||||
this.setCustomNum(customNum);
|
||||
this.setCustomTotalNum(customTotalNum);
|
||||
this.setCustomSurplusNum(customSurplusNum);
|
||||
return this;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.baiye.util;
|
||||
|
||||
import java.text.DecimalFormat;
|
||||
|
||||
/**
|
||||
* @author wjt
|
||||
* @date 2023/4/24
|
||||
*/
|
||||
public class NumUtil {
|
||||
|
||||
public static String getFourNum(Integer num) {
|
||||
DecimalFormat decimalFormat = new DecimalFormat("0000");
|
||||
return decimalFormat.format(num);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue