| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author xfei |
| | |
| | | if (StrUtil.isEmpty(areaId)){ |
| | | return ResultUtil.error("缺少参数"); |
| | | } |
| | | List result = iSubsidyPersonStaticsService.getMonthAddOut(areaId,type); |
| | | return ResultUtil.data(result); |
| | | List<Map<String,Object>> result = iSubsidyPersonStaticsService.getMonthAddOut(areaId,type); |
| | | StatisVO vo = new StatisVO(); |
| | | result.forEach(e->{ |
| | | String month = (String) e.get("month"); |
| | | int mAdd = Integer.parseInt(String.valueOf(e.get("mAdd"))); |
| | | int mOut = Integer.parseInt(String.valueOf(e.get("mOut"))); |
| | | int checkNum = Integer.parseInt(String.valueOf(e.get("checkNum"))); |
| | | int totalNum = Integer.parseInt(String.valueOf(e.get("totalNum"))); |
| | | vo.month.add(0,month.split("-")[1]); |
| | | vo.mAdd.add(0,mAdd); |
| | | vo.mOut.add(0,mOut); |
| | | vo.checkNum.add(0,checkNum); |
| | | vo.totalNum.add(0,totalNum); |
| | | }); |
| | | return ResultUtil.data(vo); |
| | | |
| | | } |
| | | @Data |
| | | class StatisVO{ |
| | | //月份 |
| | | List month = new ArrayList(); |
| | | //月新增 |
| | | List mAdd = new ArrayList(); |
| | | //月退出 |
| | | List mOut = new ArrayList(); |
| | | //月复核数 |
| | | List checkNum = new ArrayList(); |
| | | //月复核数 |
| | | List totalNum = new ArrayList(); |
| | | |
| | | } |
| | | |