Commit fc4e1e60 authored by zhangyingbin's avatar zhangyingbin

修改 监察任务分析列表,应建/已建数据统计 接口

parent f2627d07
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.tzs.api.mapper.IdxUjerMapper"> <mapper namespace="com.yeejoin.amos.boot.module.tzs.api.mapper.IdxUjerMapper">
<select id="getPage" resultType="com.yeejoin.amos.boot.module.tzs.flc.api.dto.IdxUjerDto"> <select id="getPage" resultType="com.yeejoin.amos.boot.module.tzs.flc.api.dto.IdxUjerDto">
SELECT SELECT a.* FROM (
SELECT
a.`BUSINESS_NAME` as businessName, a.`BUSINESS_NAME` as businessName,
a.`CREDIT_CODE` as creditCode, a.`CREDIT_CODE` as creditCode,
a.`BUSINESS_TYPE` as businessType, a.`BUSINESS_TYPE` as businessType,
...@@ -10,12 +11,14 @@ ...@@ -10,12 +11,14 @@
a.`CONTACTS` as contacts, a.`CONTACTS` as contacts,
a.`CONTACT_NUMBER` as contactNumber, a.`CONTACT_NUMBER` as contactNumber,
a.`COMPANYID` as companyId, a.`COMPANYID` as companyId,
IF(b.SEQUENCE_NBR is null, '未建', '已建') as bizType IF(b.SEQUENCE_NBR is null, '未建', '已建') as bizType,
b.SEQUENCE_NBR
FROM idx_biz_odgu a FROM idx_biz_odgu a
LEFT JOIN idx_biz_ujer b on a.BUSINESS_NAME = b.BUSINESS_NAME LEFT JOIN idx_biz_ujer b on a.BUSINESS_NAME = b.BUSINESS_NAME
) AS a
<where> <where>
<if test="ids !=null and ids.size()>0"> <if test="ids !=null and ids.size()>0">
AND a.COMPANYID in AND a.companyId in
<foreach collection="ids" item="item" index="index" open="(" close=")" separator=","> <foreach collection="ids" item="item" index="index" open="(" close=")" separator=",">
#{item} #{item}
</foreach> </foreach>
...@@ -24,9 +27,10 @@ ...@@ -24,9 +27,10 @@
<!-- AND b.SEQUENCE_NBR is null--> <!-- AND b.SEQUENCE_NBR is null-->
<!-- </if>--> <!-- </if>-->
<if test="bizType=='yijian'"> <if test="bizType=='yijian'">
AND b.SEQUENCE_NBR is not null AND a.SEQUENCE_NBR is not null
</if> </if>
</where> </where>
GROUP BY a.businessName
</select> </select>
<select id="getCompanyInfo" resultType="java.util.Map"> <select id="getCompanyInfo" resultType="java.util.Map">
......
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