| | |
| | | SELECT DISTINCT |
| | | mix.id, |
| | | mix.tree_code 'code', |
| | | mix.name, |
| | | mix.tree_name 'name', |
| | | mix.parent_id, |
| | | mix.tree_type AS 'type', |
| | | mix.extend |
| | | mix.extend, |
| | | mix.create_time |
| | | FROM |
| | | nc_product_mix mix -- 连接权限表,筛选部门相关记录 |
| | | LEFT JOIN nc_permission_stream_new nps_depart ON mix.id = nps_depart.business_id |
| | |
| | | AND nps_user.delete_flag = '0' |
| | | WHERE |
| | | nps_depart.business_id IS NOT NULL |
| | | AND nps_user.business_id IS NOT NULL; |
| | | AND nps_user.business_id IS NOT NULL |
| | | order by mix.tree_type, mix.create_time asc |
| | | </select> |
| | | <select id="loadProductMixAll" resultType="org.jeecg.modules.dnc.entity.ProductMix"> |
| | | SELECT DISTINCT |
| | | mix.id, |
| | | mix.tree_code 'code', |
| | | mix.name, |
| | | mix.parent_id, |
| | | mix.tree_type AS 'type', |
| | | mix.extend |
| | | FROM |
| | | nc_product_mix mix -- 连接权限表,筛选部门相关记录 |
| | | LEFT JOIN nc_permission_stream_new nps_user ON mix.id = nps_user.business_id |
| | | AND nps_user.user_id = #{userId} |
| | | AND nps_user.delete_flag = '0' |
| | | WHERE |
| | | nps_user.business_id IS NOT NULL; |
| | | SELECT DISTINCT mix.id, |
| | | mix.tree_code 'code', |
| | | mix.tree_name 'name', |
| | | mix.parent_id, |
| | | mix.tree_type AS 'type', |
| | | mix.extend, |
| | | mix.create_time |
| | | FROM nc_product_mix mix -- 连接权限表,筛选部门相关记录 |
| | | LEFT JOIN nc_permission_stream_new nps_user ON mix.id = nps_user.business_id |
| | | AND nps_user.user_id = #{userId} |
| | | AND nps_user.delete_flag = '0' |
| | | WHERE nps_user.business_id IS NOT NULL |
| | | order by mix.tree_type, mix.create_time asc |
| | | </select> |
| | | </mapper> |