zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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" >
<!-- Table:epc_cost_type_{rule} -->
<mapper namespace="com.changhong.epc.tenant.mapper.tenant.norm.TenantOrgMapper">
 
    <delete id="deleteAll" >
        delete from epc_tenant_org_{rule}
    </delete>
 
    <select id="selectOccCount"  resultType="java.lang.Integer">
          select count(*) from epc_parent_budget_org_{rule}
          WHERE
          c_id = #{org.cId}
          AND org_code = #{org.orgCode}
          AND parent_org_code = #{org.parentOrgCode}
          AND data_start = 0
    </select>
 
</mapper>