<?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>
|