You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.2 KiB
22 lines
1.2 KiB
<?xml version="1.0" encoding="UTF-8" ?> |
|
<!DOCTYPE mapper |
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
<mapper namespace="com.biutag.supervision.mapper.BusinessPoliceMapper"> |
|
|
|
<select id="queryPage" resultType="com.biutag.supervision.pojo.model.BusinessPoliceModel"> |
|
select police_name, emp_no, depart_name, group_name, |
|
SUM(CASE WHEN business_type = 1 THEN number ELSE 0 END) AS jiechujing110, |
|
SUM(CASE WHEN business_type = 2 THEN number ELSE 0 END) AS jiechujing122, |
|
SUM(CASE WHEN business_type = 3 THEN number ELSE 0 END) AS shenfenzhengyewu, |
|
SUM(CASE WHEN business_type = 4 THEN number ELSE 0 END) AS zhifabanan, |
|
SUM(CASE WHEN business_type = 5 THEN number ELSE 0 END) AS hukouyewu, |
|
SUM(CASE WHEN business_type = 6 THEN number ELSE 0 END) AS churujingyewu, |
|
SUM(CASE WHEN business_type = 7 THEN number ELSE 0 END) AS cheliangshangpai, |
|
SUM(CASE WHEN business_type = 8 THEN number ELSE 0 END) AS jiashirenkaoshi |
|
from business_police |
|
${ew.getCustomSqlSegment} |
|
</select> |
|
|
|
|
|
</mapper> |