fix bug
parent
d7651344a4
commit
d8e181aaf0
|
|
@ -12,11 +12,8 @@ import org.qinan.safetyeval.client.dto.BasePageQuery;
|
|||
@EqualsAndHashCode(callSuper = true)
|
||||
public class EvalProjectProgressPageQuery extends BasePageQuery {
|
||||
|
||||
@ApiModelProperty("项目名称")
|
||||
private String projectName;
|
||||
|
||||
@ApiModelProperty("客户名称")
|
||||
private String customerName;
|
||||
@ApiModelProperty("关键字(项目名称/客户名称)")
|
||||
private String keyword;
|
||||
|
||||
@ApiModelProperty("项目进度状态:NORMAL正常 NEAR临期 DELAY延期")
|
||||
private String progressStatus;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
typeHandler="org.qinan.safetyeval.infrastructure.handler.ProjectNodeListTypeHandler"/>
|
||||
</resultMap>
|
||||
|
||||
<select id="selectProgressPage"
|
||||
<select id="selectProgressPage"
|
||||
resultMap="EvalProjectProgressCOMap">
|
||||
SELECT
|
||||
p.id,
|
||||
|
|
@ -26,11 +26,9 @@
|
|||
AND c.delete_enum = 'false'
|
||||
WHERE p.delete_enum = 'false'
|
||||
AND p.org_id = #{query.orgId}
|
||||
<if test="query.projectName != null and query.projectName != ''">
|
||||
AND p.project_name LIKE CONCAT('%', #{query.projectName}, '%')
|
||||
</if>
|
||||
<if test="query.customerName != null and query.customerName != ''">
|
||||
AND c.customer_name LIKE CONCAT('%', #{query.customerName}, '%')
|
||||
<if test="query.keyword != null and query.keyword != ''">
|
||||
AND (p.project_name LIKE CONCAT('%', #{query.keyword}, '%')
|
||||
OR c.customer_name LIKE CONCAT('%', #{query.keyword}, '%'))
|
||||
</if>
|
||||
<if test="query.progressStatus != null and query.progressStatus == 'DELAY'">
|
||||
AND p.plan_end_date < CURDATE()
|
||||
|
|
|
|||
Loading…
Reference in New Issue