Commit aa5e3cc2 by wqc

接口修改

parent 52ce9420
......@@ -66,7 +66,7 @@
</select>
<select id="getAreaIssueStats" resultType="com.zq.portal.vo.StatsVo">
SELECT UNIT_ID 'code',UNIT_NAME 'name', APPLY_TYPE_ID 'type', GRANT_YEAR 'year', COUNT_PEOPLE 'num', SUM_MONEY
SELECT LEFT(UNIT_ID, #{size}) 'code',UNIT_NAME 'name', APPLY_TYPE_ID 'type', GRANT_YEAR 'year', COUNT_PEOPLE 'num', SUM_MONEY
'amount'
FROM `statics_grant`
WHERE DATE_FORMAT(create_time, '%Y-%m-%d') = (SELECT DATE_FORMAT(create_time, '%Y-%m-%d') FROM statics_grant
......@@ -77,7 +77,7 @@
<if test="type != null">
AND APPLY_TYPE_ID = #{type}
</if>
GROUP BY UNIT_ID
GROUP BY LEFT(UNIT_ID, #{size})
</select>
<select id="getYearIssueStats" resultType="com.zq.portal.vo.StatsVo">
......
......@@ -215,7 +215,7 @@
AND p.pmonth &lt;= DATE_FORMAT( NOW(), '%Y%m%d' )
AND p.vp_state = 4
AND p.pay_state = 2
AND CHAR_LENGTH (LEFT ( a.area_code, #{size} )) = #{size}
AND CHAR_LENGTH (LEFT ( p.unit_id, #{size} )) = #{size}
<if test="subAreaCode != null and subAreaCode != ''">
AND p.unit_id LIKE CONCAT(#{subAreaCode}, '%')
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment