| | |
| | | <?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.lxzn.nc.dao.ProductDepartmentMapper"> |
| | | <select id="getDepartPermsByProductId" resultType="Department" parameterType="String"> |
| | | <select id="getDepartPermsByProductId" resultType="com.lxzn.framework.domain.ucenter.Department" parameterType="String"> |
| | | select u.depart_id |
| | | , u.depart_name |
| | | , u.depart_code |
| | |
| | | on u.depart_id=p.depart_id |
| | | </select> |
| | | |
| | | <select id="getDepartNonPermsByProductId" resultType="Department" parameterType="String"> |
| | | <select id="getDepartNonPermsByProductId" resultType="com.lxzn.framework.domain.ucenter.Department" parameterType="String"> |
| | | select u.depart_id |
| | | , u.depart_name |
| | | , u.depart_code |
| | |
| | | from sys_department u |
| | | where u.depart_id not in (select depart_id from nc_product_department where product_id=#{productId}) |
| | | </select> |
| | | </mapper> |
| | | </mapper> |