对比新文件 |
| | |
| | | <?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="org.jeecg.modules.dnc.mapper.ProductInfoMapper"> |
| | | <select id="getByUserPerms" resultType="org.jeecg.modules.dnc.entity.ProductInfo" parameterType="String"> |
| | | select p.product_id |
| | | , p.product_no |
| | | , p.product_model |
| | | , p.product_name |
| | | , p.product_status |
| | | , p.CREATE_TIME |
| | | , p.UPDATE_TIME |
| | | , p.create_by |
| | | , p.update_by |
| | | , (select sys_user.realname from sys_user where p.create_by=sys_user.username) as createName |
| | | , (select sys_user.realname from sys_user where p.update_by=sys_user.username) as updateName |
| | | from nc_product_info p |
| | | inner join |
| | | (select business_id,business_type from nc_permission_stream_new where delete_flag = 0 and user_id=#{userId}) s |
| | | on p.product_id = s.business_id and s.business_type='1' |
| | | where p.delete_flag = 0 |
| | | order by p.create_time asc |
| | | </select> |
| | | </mapper> |