This commit is contained in:
sxu 2025-03-19 14:29:06 +08:00
parent c8b12d2a17
commit 4fc252b44f
2 changed files with 61 additions and 61 deletions

View File

@ -1,59 +1,59 @@
//package com.bonus.canteen.core.auth.user.mapper;
//
//import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import com.bonus.canteen.core.auth.role.dto.MgrRoleUserDTO;
//import com.bonus.canteen.core.auth.role.vo.MgrRoleUserVO;
//import com.bonus.canteen.core.auth.user.entity.MgrUser;
//import org.apache.ibatis.annotations.Mapper;
//
//import java.util.List;
//
//@Mapper
//public interface MgrUserMapper extends BaseMapper<MgrUser> {
//// Page<MgrUserPageVO> selectRolePage(Page<MgrUserPageVO> page, @Param("userPageDTO") MgrUserPageDTO userPageDTO);
//
package com.bonus.canteen.core.auth.user.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.auth.role.dto.MgrRoleUserDTO;
import com.bonus.canteen.core.auth.role.vo.MgrRoleUserVO;
import com.bonus.canteen.core.auth.user.entity.MgrUser;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface MgrUserMapper extends BaseMapper<MgrUser> {
// Page<MgrUserPageVO> selectRolePage(Page<MgrUserPageVO> page, @Param("userPageDTO") MgrUserPageDTO userPageDTO);
// List<MgrRoleUserVO> selectAllUserByRoleCode(MgrRoleUserDTO deliveryUserDTO);
// MgrUserDetailVO selectUserInfoByUserId(@Param("userId") Long userId, @Param("delFlag") Integer delFlag);
//
//// MgrUserDetailVO selectUserInfoByUserId(@Param("userId") Long userId, @Param("delFlag") Integer delFlag);
////
//// @Select({"select count(0) from alloc_canteen where cust_id = #{userId};"})
//// int checkCountBasicsDdiningUserId(Long userId);
////
//// @Select({"select count(0) from alloc_stall where cust_id = #{userId};"})
//// int checkBasicsShopstallsUserId(Long userId);
////
//// @Select({"select count(0) from drp_warehouse where user_id = #{userId};"})
//// int checkDrpWarehouse(Long userId);
////
//// @Select({"select user_id, real_name from mgr_user ${ew.customSqlSegment}"})
//// MgrUserIdNameVO selectIdAndRealNameByWrapper(@Param("ew") Wrapper<MgrUser> wrapper);
////
//// @Select({"select dining_id as canteen_id, shopstall_id from basics_shopstalls ${ew.customSqlSegment}"})
//// List<EffCanteenVO> selectShopstallByWrapper(@Param("ew") Wrapper<?> wrapper);
////
//// @Select({"select canteen_id, shopstall_id from mkt_effective_detail ${ew.customSqlSegment}"})
//// List<EffCanteenVO> selectCanteenByWrapper(@Param("ew") Wrapper<?> wrapper);
////
//// @Select({"select 1 from mkt_effective ${ew.customSqlSegment}"})
//// Integer selectExistFromMktEffectiveByWrapper(@Param("ew") Wrapper<?> wrapper);
////
//// List<MgrUserIdNameVO> listUserByIdAndRole(@Param("userId") Long userId, @Param("roleCode") String roleCode, @Param("delFlag") Integer delFlag);
////
//// Long selectUserIdByCustId(@Param("custId") Long custId);
////
//// String selectUserNameIdByCustId(@Param("custId") Long custId);
////
//// Long selectCustIdByUserId(@Param("userId") Long userId);
////
//// List<MgrRoleUserVO> getUserExcludeSupplier(@Param("delFlag") Integer delFlag);
////
//// MgrUser getUserByRoleCode(@Param("roleCode") String roleCode);
////
//// List<MgrUser> queryByRoles(@Param("roles") List<Long> roles);
////
//// List<MgrRoleUserVO> queryMgrUserIdListByCustIdList(@Param("custIdList") List<Long> custIdList);
////
//// List<MgrRoleUserVO> queryCanteenManagerMgrUserList(@Param("caneenIdList") List<Long> caneenIdList);
////
//// MgrUser getUserByRoleCodeExcludeUserName(@Param("roleCode") String roleCode, @Param("excludeUserName") String excludeUserName);
//}
// @Select({"select count(0) from alloc_canteen where cust_id = #{userId};"})
// int checkCountBasicsDdiningUserId(Long userId);
//
// @Select({"select count(0) from alloc_stall where cust_id = #{userId};"})
// int checkBasicsShopstallsUserId(Long userId);
//
// @Select({"select count(0) from drp_warehouse where user_id = #{userId};"})
// int checkDrpWarehouse(Long userId);
//
// @Select({"select user_id, real_name from mgr_user ${ew.customSqlSegment}"})
// MgrUserIdNameVO selectIdAndRealNameByWrapper(@Param("ew") Wrapper<MgrUser> wrapper);
//
// @Select({"select dining_id as canteen_id, shopstall_id from basics_shopstalls ${ew.customSqlSegment}"})
// List<EffCanteenVO> selectShopstallByWrapper(@Param("ew") Wrapper<?> wrapper);
//
// @Select({"select canteen_id, shopstall_id from mkt_effective_detail ${ew.customSqlSegment}"})
// List<EffCanteenVO> selectCanteenByWrapper(@Param("ew") Wrapper<?> wrapper);
//
// @Select({"select 1 from mkt_effective ${ew.customSqlSegment}"})
// Integer selectExistFromMktEffectiveByWrapper(@Param("ew") Wrapper<?> wrapper);
//
// List<MgrUserIdNameVO> listUserByIdAndRole(@Param("userId") Long userId, @Param("roleCode") String roleCode, @Param("delFlag") Integer delFlag);
//
// Long selectUserIdByCustId(@Param("custId") Long custId);
//
// String selectUserNameIdByCustId(@Param("custId") Long custId);
//
// Long selectCustIdByUserId(@Param("userId") Long userId);
//
// List<MgrRoleUserVO> getUserExcludeSupplier(@Param("delFlag") Integer delFlag);
//
// MgrUser getUserByRoleCode(@Param("roleCode") String roleCode);
//
// List<MgrUser> queryByRoles(@Param("roles") List<Long> roles);
//
// List<MgrRoleUserVO> queryMgrUserIdListByCustIdList(@Param("custIdList") List<Long> custIdList);
//
// List<MgrRoleUserVO> queryCanteenManagerMgrUserList(@Param("caneenIdList") List<Long> caneenIdList);
//
// MgrUser getUserByRoleCodeExcludeUserName(@Param("roleCode") String roleCode, @Param("excludeUserName") String excludeUserName);
}

View File

@ -1,6 +1,6 @@
<!--<?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.bonus.canteen.core.auth.user.mapper.MgrUserMapper">-->
<?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.bonus.canteen.core.auth.user.mapper.MgrUserMapper">
<!--&lt;!&ndash; <resultMap id="mgrUserMap" type="net.xnzn.core.auth.user.entity.MgrUser">&ndash;&gt;-->
<!--&lt;!&ndash; <id property="id" column="id"/>&ndash;&gt;-->
<!--&lt;!&ndash; <result property="userId" column="user_id"/>&ndash;&gt;-->
@ -246,7 +246,7 @@
<!--&lt;!&ndash; AND t3.role_code = #{roleCode}&ndash;&gt;-->
<!--&lt;!&ndash; AND t1.username != #{excludeUserName}&ndash;&gt;-->
<!--&lt;!&ndash; </select>&ndash;&gt;-->
<!--</mapper>-->
</mapper>