|
|
@ -12,7 +12,8 @@ |
|
|
|
longitude AS longitude, |
|
|
|
latitude AS latitude, |
|
|
|
PROJECT_CREATE_TIME AS projectCreateTime, |
|
|
|
CUSTOMER_ID AS customerId |
|
|
|
CUSTOMER_ID AS customerId, |
|
|
|
ALL_CATEGORY_NAME as categoryName |
|
|
|
FROM |
|
|
|
screen_project_data |
|
|
|
WHERE |
|
|
@ -30,26 +31,23 @@ |
|
|
|
<if test="ids == null and agencyId != null"> |
|
|
|
and org_id = #{agencyId} |
|
|
|
</if> |
|
|
|
|
|
|
|
<choose> |
|
|
|
<when test='level != null and "1" == level'> |
|
|
|
and PROJECT_STATUS_CODE ='pending' |
|
|
|
</when> |
|
|
|
<when test='level != null and "2" == level'> |
|
|
|
and PROJECT_STATUS_CODE ='pending' |
|
|
|
</when> |
|
|
|
<when test='level != null and "3" == level'> |
|
|
|
and PROJECT_STATUS_CODE !='pending' |
|
|
|
and DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(PROJECT_CREATE_TIME) |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
and PROJECT_STATUS_CODE ='pending' |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
<if test='level != null and "1" == level'> |
|
|
|
and PROJECT_STATUS_CODE ='pending' |
|
|
|
</if> |
|
|
|
<if test='level != null and "2" == level'> |
|
|
|
and PROJECT_STATUS_CODE ='pending' |
|
|
|
</if> |
|
|
|
<if test='level != null and "3" == level'> |
|
|
|
and PROJECT_STATUS_CODE !='pending' |
|
|
|
and DATE_SUB(CURDATE(), INTERVAL 30 DAY) <= date(PROJECT_CREATE_TIME) |
|
|
|
</if> |
|
|
|
order by PROJECT_CREATE_TIME desc |
|
|
|
<if test='level != null and "3" == level'> |
|
|
|
LIMIT #{pageSize} |
|
|
|
</if> |
|
|
|
<if test='level != null and "all" == level'> |
|
|
|
LIMIT #{pageSize} |
|
|
|
</if> |
|
|
|
</select> |
|
|
|
<select id="selectIdsByAreaCode" resultType="java.lang.String"> |
|
|
|
select agency_id as id from screen_customer_agency where del_flag = '0' and area_code like concat(#{areaCode},'%') |
|
|
|