lyh
2025-01-16 700ac5685214d37f128b3ad3dfda59e80381b9f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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
        from nc_product_info p
        inner join
        (select distinct product_id from nc_permission_stream where delete_flag = 0 and user_id=#{userId}) s
        on p.product_id = s.product_id
        where p.delete_flag = 0
        order by p.create_time asc
    </select>
</mapper>