| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.domain.vo.CodingRulerVO; |
| | | import com.ycl.domain.form.CodingRulerForm; |
| | | import com.ycl.domain.query.CodingRulerQuery; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | */ |
| | | IPage getPage(IPage page, @Param("query") CodingRulerQuery query); |
| | | |
| | | List<CodingRulerVO> getStartRuler(); |
| | | |
| | | } |
| | |
| | | <result column="status" property="status"/> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getStartRuler" resultMap="BaseResultMap"> |
| | | select |
| | | TCR.project_code_type, |
| | | TCR.interval_type, |
| | | TCR.left_symbol, |
| | | TCR.left_value, |
| | | TCR.right_symbol, |
| | | TCR.right_value, |
| | | TCR.id, |
| | | TCR.status |
| | | FROM |
| | | t_coding_ruler TCR |
| | | WHERE |
| | | TCR.status = 1 AND TCR.deleted = 0; |
| | | </select> |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | | SELECT |
| | |
| | | @Getter |
| | | public enum CodingRulerCodeTypeEnum { |
| | | RED("red", "红码"), |
| | | GREEN("green","绿码"); |
| | | YELLOW("yellow","黄码"); |
| | | |
| | | @EnumValue |
| | | @JsonValue |
| | |
| | | @ApiModelProperty("任务状态green/red/yellow") |
| | | private String status; |
| | | |
| | | /** 任务状态0进行中1结束 */ |
| | | @ApiModelProperty("超时任务数") |
| | | private Long taskOvertimeNum; |
| | | |
| | | |
| | | /** 任务超时状态 */ |
| | | @ApiModelProperty("任务超时状态") |
| | | private String overtimeStatus; |
| | |
| | | void updateBatch(@Param("list") List<ProcessCoding> list); |
| | | |
| | | List<ProcessCoding> findByTaskId(@Param("taskId") String taskId); |
| | | |
| | | /** |
| | | * 查询出每个流程实例id中超时的任务数,流程实例id |
| | | * @return |
| | | */ |
| | | List<ProcessCodingVO> countProjectOverTimeNum(); |
| | | } |
| | |
| | | <result column="status" property="status" /> |
| | | <result column="overtime_status" property="overtimeStatus" /> |
| | | </resultMap> |
| | | <resultMap id="projectProcessTaskOverNum" type="com.ycl.domain.vo.ProcessCodingVO"> |
| | | <id column="id" property="id"/> |
| | | <result column="task_overtime_num" property="taskOvertimeNum"/> |
| | | <result column="process_ins_id" property="processInsId"/> |
| | | </resultMap> |
| | | |
| | | <select id="countProjectOverTimeNum" resultMap="projectProcessTaskOverNum"> |
| | | select TPC.id, |
| | | TPC.process_ins_id, |
| | | COUNT(TPC.overtime_status) as task_overtime_num |
| | | FROM t_process_coding TPC |
| | | where |
| | | TPC.overtime_status = 'overtime' |
| | | GROUP BY TPC.process_ins_id |
| | | </select> |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |