8 changed files with 220 additions and 32 deletions
			
			
		@ -0,0 +1,26 @@ | 
				
			|||
package com.epmet.dataaggre.dto.datastats.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 基础数据-组织各种数据汇总-接口返参 | 
				
			|||
 * @Auth sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class BaseStatsDataResultDTO implements Serializable { | 
				
			|||
    private static final long serialVersionUID = -771436069527114021L; | 
				
			|||
 | 
				
			|||
    private Integer topicTotal; | 
				
			|||
    private Integer topicIncr; | 
				
			|||
    private Integer issueTotal; | 
				
			|||
    private Integer issueIncr; | 
				
			|||
    private Integer projectTotal; | 
				
			|||
    private Integer projectIncr; | 
				
			|||
    private Integer closedProjectTotal; | 
				
			|||
    private Integer closedProjectIncr; | 
				
			|||
 | 
				
			|||
 | 
				
			|||
 | 
				
			|||
} | 
				
			|||
@ -0,0 +1,19 @@ | 
				
			|||
package com.epmet.dataaggre.dto.datastats.result; | 
				
			|||
 | 
				
			|||
import lombok.Data; | 
				
			|||
 | 
				
			|||
import java.io.Serializable; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * @Description 基础数据-组织各种数据汇总-接口返参 | 
				
			|||
 * @Auth sun | 
				
			|||
 */ | 
				
			|||
@Data | 
				
			|||
public class TotalAndIncrResultDTO implements Serializable { | 
				
			|||
 | 
				
			|||
    private static final long serialVersionUID = -6624315950853255235L; | 
				
			|||
    private Integer total; | 
				
			|||
    private Integer incr; | 
				
			|||
    private Integer total2; | 
				
			|||
    private Integer incr2; | 
				
			|||
} | 
				
			|||
@ -0,0 +1,41 @@ | 
				
			|||
package com.epmet.dataaggre.controller.pub; | 
				
			|||
 | 
				
			|||
import com.epmet.commons.tools.utils.Result; | 
				
			|||
import com.epmet.commons.tools.validator.ValidatorUtils; | 
				
			|||
import com.epmet.dataaggre.dto.app.form.AppFootBarFormDTO; | 
				
			|||
import com.epmet.dataaggre.dto.datastats.form.AgenctBasicDataFormDTO; | 
				
			|||
import com.epmet.dataaggre.dto.datastats.result.BaseStatsDataResultDTO; | 
				
			|||
import com.epmet.dataaggre.service.datastats.DataStatsService; | 
				
			|||
import org.springframework.beans.factory.annotation.Autowired; | 
				
			|||
import org.springframework.web.bind.annotation.PostMapping; | 
				
			|||
import org.springframework.web.bind.annotation.RequestBody; | 
				
			|||
import org.springframework.web.bind.annotation.RequestMapping; | 
				
			|||
import org.springframework.web.bind.annotation.RestController; | 
				
			|||
 | 
				
			|||
/** | 
				
			|||
 * 小程序相关配置,可以放在这,目前只放了footbar | 
				
			|||
 * | 
				
			|||
 * @author yinzuomei@elink-cn.com | 
				
			|||
 * @date 2021/7/27 18:36 | 
				
			|||
 */ | 
				
			|||
@RestController | 
				
			|||
@RequestMapping("pub") | 
				
			|||
public class PubController { | 
				
			|||
    @Autowired | 
				
			|||
    private DataStatsService dataStatsService; | 
				
			|||
 | 
				
			|||
    /** | 
				
			|||
     * 查询 话题 议题 项目数 | 
				
			|||
     * | 
				
			|||
     * @param formDTO | 
				
			|||
     * @return com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO | 
				
			|||
     * @author yinzuomei | 
				
			|||
     * @date 2021/7/27 18:59 | 
				
			|||
     */ | 
				
			|||
    @PostMapping("baseDataAgg") | 
				
			|||
    public Result<BaseStatsDataResultDTO> getBaseStatsData(@RequestBody AgenctBasicDataFormDTO formDTO){ | 
				
			|||
        ValidatorUtils.validateEntity(formDTO,AppFootBarFormDTO.AddUserInternalGroup.class); | 
				
			|||
        BaseStatsDataResultDTO resultDTO=dataStatsService.getBaseStatsData(formDTO); | 
				
			|||
        return new Result<BaseStatsDataResultDTO>().ok(resultDTO); | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue