This commit is contained in:
parent
a0f3649173
commit
3888e72842
|
|
@ -221,7 +221,7 @@ public class SelectServiceImpl implements SelectService {
|
|||
ProjectTreeBuild treeBuild = new ProjectTreeBuild(list);
|
||||
// 原查询结果转换树形结构
|
||||
groupList = treeBuild.buildTree();
|
||||
// 获取已授权班组,进行数据拼接
|
||||
// 获取班组,进行数据拼接
|
||||
List<ProjectTreeNode> newList = mapper.getTeamList(bean);
|
||||
if (CollectionUtils.isNotEmpty(newList)) {
|
||||
groupList.addAll(newList);
|
||||
|
|
|
|||
|
|
@ -83,10 +83,10 @@ public class UseMaintenanceWarningBean extends BaseEntity {
|
|||
private Long projectId;
|
||||
|
||||
/**
|
||||
* 超期天数
|
||||
* 临检天数
|
||||
*/
|
||||
@ApiModelProperty(value = "超期时长(天)")
|
||||
@Excel(name = "超期时长(天)")
|
||||
@ApiModelProperty(value = "临检天数")
|
||||
@Excel(name = "临检天数")
|
||||
private Long overDays;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
|
|
@ -97,4 +97,10 @@ public class UseMaintenanceWarningBean extends BaseEntity {
|
|||
|
||||
@ApiModelProperty(value = "关键字")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "三级类型id")
|
||||
private Long thirdTypeId;
|
||||
|
||||
@ApiModelProperty(value = "类型id")
|
||||
private Long typeId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
bu.unit_name as unitName,
|
||||
bp.pro_name as projectName,
|
||||
bai.agreement_code as agreementCode,
|
||||
DATEDIFF(CURDATE(), mm.next_check_time) AS overDays
|
||||
DATEDIFF(mm.next_check_time, CURDATE()) AS overDays
|
||||
FROM
|
||||
ma_machine mm
|
||||
LEFT JOIN ma_type mt on mt.type_id=mm.type_id
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
WHERE
|
||||
mm.ma_status='2'
|
||||
and bp.pro_name is not null
|
||||
AND mm.next_check_time < CURDATE()
|
||||
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 MONTH)
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and (mt2.type_name like concat('%', #{keyWord}, '%') or
|
||||
mt.type_name like concat('%', #{keyWord}, '%') or
|
||||
|
|
@ -42,6 +42,12 @@
|
|||
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||
AND DATE_FORMAT( mm.next_check_time, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime}
|
||||
</if>
|
||||
<if test="typeId != null">
|
||||
AND mt.type_id = #{typeId}
|
||||
</if>
|
||||
<if test="thirdTypeId != null">
|
||||
AND mt2.type_id = #{thirdTypeId}
|
||||
</if>
|
||||
ORDER BY mm.next_check_time ASC
|
||||
</select>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue