Commit 976ad70b authored by xulihui's avatar xulihui

修改所有的企业id比较时转换异常问题

parent 42cfe44a
...@@ -603,10 +603,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -603,10 +603,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!--查询用户统计信息--> <!--查询用户统计信息-->
<select id="userStatistics" resultType="com.zehong.system.domain.TDetectorUserCount"> <select id="userStatistics" resultType="com.zehong.system.domain.TDetectorUserCount">
SELECT SELECT
(select count(user_id) from t_detector_user where is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as totalNumberUsers, (select count(user_id) from t_detector_user where is_del='0' <if test="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as totalNumberUsers,
(select count(user_id) from t_detector_user where user_type=1 and is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as residentUsers, (select count(user_id) from t_detector_user where user_type=1 and is_del='0' <if test="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as residentUsers,
(select count(user_id) from t_detector_user where user_type=2 and is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as businessUser, (select count(user_id) from t_detector_user where user_type=2 and is_del='0' <if test="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as businessUser,
(select count(user_id) from t_detector_user where user_type=3 and is_del='0' <if test="id != -2"> and beyond_enterprise_id = #{id}</if>)as industrialUsers (select count(user_id) from t_detector_user where user_type=3 and is_del='0' <if test="id != '-2'"> and beyond_enterprise_id = #{id}</if>)as industrialUsers
FROM `t_detector_user` limit 0,1 FROM `t_detector_user` limit 0,1
</select> </select>
......
...@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getReadReceiveList" resultMap="TEventReceiveResult"> <select id="getReadReceiveList" resultMap="TEventReceiveResult">
<include refid="selectTEventReceiveVo"/> <include refid="selectTEventReceiveVo"/>
<where> <where>
<if test="enterpriseId != null and enterpriseId != -2"> and enterprise_id = #{enterpriseId}</if> <if test="enterpriseId != null and enterpriseId != '-2'"> and enterprise_id = #{enterpriseId}</if>
</where> </where>
</select> </select>
<select id="selectTEventReceiveList" parameterType="TEventReceive" resultMap="TEventReceiveResult"> <select id="selectTEventReceiveList" parameterType="TEventReceive" resultMap="TEventReceiveResult">
......
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