Browse Source
			
			
			
			
				
		# Conflicts: # app.irbs/src/main/resources/liquibase/data/irbs/SYS_DICTIONARY.csvmain
				 23 changed files with 413 additions and 83 deletions
			
			
		| 
 | 
| @ -0,0 +1,66 @@ | |||
| package irbs.cust.rating.jpa.support; | |||
| 
 | |||
| import org.springframework.jdbc.core.RowMapper; | |||
| 
 | |||
| import java.math.BigDecimal; | |||
| import java.sql.ResultSet; | |||
| import java.sql.SQLException; | |||
| 
 | |||
| /** | |||
|  * 首页统计面板wrapper | |||
|  */ | |||
| public class HomeTotalWrapper { | |||
| 
 | |||
|     private Integer waitTask;       // 待办任务数量
 | |||
|     private Integer completeTask;   // 已办任务数量
 | |||
|     private Integer endTask;        // 办结任务数量
 | |||
|     private BigDecimal ratingUpdate;   // 评级更新完成率
 | |||
| 
 | |||
|     public static RowMapper<HomeTotalWrapper> getRowMapper() { | |||
|         return new HomeTotalWrapperRowMapper(); | |||
|     } | |||
| 
 | |||
|     public static class HomeTotalWrapperRowMapper implements RowMapper<HomeTotalWrapper> { | |||
|         @Override | |||
|         public HomeTotalWrapper mapRow(ResultSet rs, int rowNum) throws SQLException { | |||
|             HomeTotalWrapper wrapper = new HomeTotalWrapper(); | |||
|             wrapper.setWaitTask(rs.getInt("WAIT_TASK")); | |||
|             wrapper.setCompleteTask(rs.getInt("COMPLETE_TASK")); | |||
|             wrapper.setEndTask(rs.getInt("END_TASK")); | |||
|             wrapper.setRatingUpdate(rs.getBigDecimal("RATING_UPDATE")); | |||
|             return wrapper; | |||
|         } | |||
|     } | |||
| 
 | |||
|     public Integer getWaitTask() { | |||
|         return waitTask; | |||
|     } | |||
| 
 | |||
|     public void setWaitTask(Integer waitTask) { | |||
|         this.waitTask = waitTask; | |||
|     } | |||
| 
 | |||
|     public Integer getCompleteTask() { | |||
|         return completeTask; | |||
|     } | |||
| 
 | |||
|     public void setCompleteTask(Integer completeTask) { | |||
|         this.completeTask = completeTask; | |||
|     } | |||
| 
 | |||
|     public Integer getEndTask() { | |||
|         return endTask; | |||
|     } | |||
| 
 | |||
|     public void setEndTask(Integer endTask) { | |||
|         this.endTask = endTask; | |||
|     } | |||
| 
 | |||
|     public BigDecimal getRatingUpdate() { | |||
|         return ratingUpdate; | |||
|     } | |||
| 
 | |||
|     public void setRatingUpdate(BigDecimal ratingUpdate) { | |||
|         this.ratingUpdate = ratingUpdate; | |||
|     } | |||
| } | |||
| @ -1,27 +1,31 @@ | |||
| package irbs.deptRating.controller; | |||
| 
 | |||
| import io.sc.platform.mvc.controller.support.RestCrudController; | |||
| import io.sc.platform.orm.service.support.QueryParameter; | |||
| import irbs.deptRating.jpa.entity.AppDebtRating; | |||
| import irbs.deptRating.jpa.repository.AppDebtRatingRepository; | |||
| import irbs.deptRating.jpa.vo.AppDebtRatingVo; | |||
| import irbs.deptRating.service.AppDebtRatingService; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.data.domain.Page; | |||
| import org.springframework.stereotype.Controller; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.ResponseBody; | |||
| 
 | |||
| 
 | |||
| @Controller | |||
| @RequestMapping("/api/irbs/appDebtRating") | |||
| public class AppDebtRatingController { | |||
| 	@Autowired | |||
| 	private AppDebtRatingService appDebtRatingService; | |||
| public class AppDebtRatingController extends RestCrudController<AppDebtRatingVo, AppDebtRating, String, AppDebtRatingRepository, AppDebtRatingService>  { | |||
| 
 | |||
| 	/** | |||
| 	 * @债项评级管理 | |||
| 	 * @return | |||
| 	 */ | |||
| 	@GetMapping("queryPage") | |||
| 	@ResponseBody | |||
| 	public Page<AppDebtRating> queryPage(QueryParameter queryParameter) throws Exception{ | |||
| 		Page<AppDebtRating> page = appDebtRatingService.findAll(queryParameter); | |||
| 		Page<AppDebtRating> page = service.findAll(queryParameter); | |||
| 		return page; | |||
| 	} | |||
| } | |||
|  | |||
					Loading…
					
					
				
		Reference in new issue