yang_shj
11 months ago
11 changed files with 215 additions and 8 deletions
@ -0,0 +1,23 @@
|
||||
package com.hnac.hzims.ticket.standardTicket.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Data |
||||
public class CensParamVo { |
||||
|
||||
@ApiModelProperty("机构Id") |
||||
private Long deptId; |
||||
|
||||
@ApiModelProperty("开始时间 : yyyy-MM-dd HH:mm:ss") |
||||
private String startTime; |
||||
|
||||
@ApiModelProperty("结束时间: yyyy-MM-dd HH:mm:ss") |
||||
private String endTime; |
||||
|
||||
@ApiModelProperty("状态 : 0-未完成 1-完成") |
||||
private Integer state; |
||||
} |
@ -0,0 +1,26 @@
|
||||
package com.hnac.hzims.ticket.standardTicket.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Data |
||||
public class CensVo { |
||||
|
||||
@ApiModelProperty("机构ID") |
||||
private Long deptId; |
||||
|
||||
@ApiModelProperty("机构名称") |
||||
private String deptName; |
||||
|
||||
@ApiModelProperty("工作票数量") |
||||
private Integer workCount; |
||||
|
||||
@ApiModelProperty("操作票数量") |
||||
private Integer operateCount; |
||||
|
||||
@ApiModelProperty("工作任务数量") |
||||
private Integer workTaskCount; |
||||
} |
@ -0,0 +1,17 @@
|
||||
package com.hnac.hzims.ticket.standardTicket.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Data |
||||
public class CensYearParamVo { |
||||
|
||||
@ApiModelProperty("机构Id") |
||||
private Long deptId; |
||||
|
||||
@ApiModelProperty("年度 : yyyy") |
||||
private String year; |
||||
} |
@ -0,0 +1,25 @@
|
||||
package com.hnac.hzims.ticket.standardTicket.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Data |
||||
public class CensYearVo { |
||||
|
||||
@ApiModelProperty("机构ID") |
||||
private Long deptId; |
||||
|
||||
@ApiModelProperty("机构名称") |
||||
private String deptName; |
||||
|
||||
@ApiModelProperty("月份") |
||||
private Integer mon; |
||||
|
||||
@ApiModelProperty("统计数量") |
||||
private List<CensVo> censs; |
||||
} |
@ -0,0 +1,41 @@
|
||||
package com.hnac.hzims.ticket.twoTicket.controller; |
||||
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensParamVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensYearParamVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensYearVo; |
||||
import com.hnac.hzims.ticket.twoTicket.service.CensService; |
||||
import com.hnac.hzims.ticket.workTicket.vo.WorkTicketInfoVO; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
|
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@RestController |
||||
@RequiredArgsConstructor |
||||
@RequestMapping("/bill") |
||||
public class CensController { |
||||
|
||||
private final CensService censService; |
||||
|
||||
@PostMapping("/cens") |
||||
@ApiOperation("两票统计") |
||||
@ApiOperationSupport(order = 1) |
||||
public R<List<CensVo>> cens(@RequestBody CensParamVo param) { |
||||
return R.data(censService.cens(param)); |
||||
} |
||||
|
||||
@PostMapping("/censYear") |
||||
@ApiOperation("两票统计") |
||||
@ApiOperationSupport(order = 1) |
||||
public R<List<CensYearVo>> censYear(@RequestBody CensYearParamVo param) { |
||||
return R.data(censService.censYear(param)); |
||||
} |
||||
} |
@ -0,0 +1,18 @@
|
||||
package com.hnac.hzims.ticket.twoTicket.service; |
||||
|
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensParamVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensYearParamVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensYearVo; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
public interface CensService { |
||||
|
||||
List<CensVo> cens(CensParamVo param); |
||||
|
||||
List<CensYearVo> censYear(CensYearParamVo param); |
||||
} |
@ -0,0 +1,33 @@
|
||||
package com.hnac.hzims.ticket.twoTicket.service.impl; |
||||
|
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensParamVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensYearParamVo; |
||||
import com.hnac.hzims.ticket.standardTicket.vo.CensYearVo; |
||||
import com.hnac.hzims.ticket.twoTicket.service.CensService; |
||||
import lombok.RequiredArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
|
||||
/** |
||||
* @author ysj |
||||
*/ |
||||
@Slf4j |
||||
@Service |
||||
@RequiredArgsConstructor |
||||
public class CensServiceImpl implements CensService { |
||||
|
||||
@Override |
||||
public List<CensVo> cens(CensParamVo param) { |
||||
return null; |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<CensYearVo> censYear(CensYearParamVo param) { |
||||
return null; |
||||
} |
||||
} |
Loading…
Reference in new issue