|
|
@@ -92,36 +92,6 @@ public interface LawyerUserMapper extends BaseMapper<LawyerUser> {
|
|
|
Integer updateLawyerUser(LawyerUser user);
|
|
|
|
|
|
|
|
|
-// @Select("<script>" +
|
|
|
-// "SELECT " +
|
|
|
-// "user.id, " +
|
|
|
-// "user.phone, " +
|
|
|
-// "user.`name`, " +
|
|
|
-// "user.firm_id, " +
|
|
|
-// "user.head_img, " +
|
|
|
-// "user.personal_introduction, " +
|
|
|
-// "user.order_receiving_status, " +
|
|
|
-// "user.practice_start_date, " +
|
|
|
-// "firm.firm_name, " +
|
|
|
-// "firm.payment_account, " +
|
|
|
-// "GROUP_CONCAT(area.problem_scenario_id SEPARATOR ',') AS problem_scenario_ids, " +
|
|
|
-// "GROUP_CONCAT(a.name SEPARATOR ',') AS scenarioNames, " +
|
|
|
-// "(SELECT GROUP_CONCAT(`name` SEPARATOR ',') FROM lawyer_legal_problem_scenario WHERE level = 1) AS FirstLevelScenario, " +
|
|
|
-// "b.expertise_area_info " +
|
|
|
-// "FROM `lawyer_user` user " +
|
|
|
-// "LEFT JOIN law_firm firm ON firm.id = user.firm_id " +
|
|
|
-// "LEFT JOIN lawyer_service_area area ON area.lawyer_user_id = user.id " +
|
|
|
-// "LEFT JOIN lawyer_legal_problem_scenario a ON a.id = area.problem_scenario_id " +
|
|
|
-// "LEFT JOIN lawyer_expertise_area b ON b.id = user.specialty_fields " +
|
|
|
-// "WHERE user.id = #{id} " +
|
|
|
-// "GROUP BY " +
|
|
|
-// "user.id, user.phone, user.`name`, user.firm_id, user.head_img, " +
|
|
|
-// "user.personal_introduction, user.order_receiving_status, user.practice_start_date, " +
|
|
|
-// "firm.firm_name, firm.payment_account, b.expertise_area_info " +
|
|
|
-// "LIMIT 1 " +
|
|
|
-// "</script>")
|
|
|
-//LawyerUserVo selectInfo(@Param("lawyerId") Integer lawyerId);
|
|
|
-
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"SELECT " +
|
|
|
@@ -136,9 +106,12 @@ Integer updateLawyerUser(LawyerUser user);
|
|
|
"user.address , " +
|
|
|
"firm.firm_name AS firmName, " +
|
|
|
"firm.payment_account AS paymentNum, " +
|
|
|
- "GROUP_CONCAT(area.problem_scenario_id SEPARATOR ',') AS problem_scenario_ids, " +
|
|
|
+ "GROUP_CONCAT(area.problem_scenario_id SEPARATOR ',') AS problemScenarioId, " +
|
|
|
"GROUP_CONCAT(a.name SEPARATOR ',') AS scenarioNames, " +
|
|
|
- "(SELECT GROUP_CONCAT(`name` SEPARATOR ',') FROM lawyer_legal_problem_scenario WHERE level = 1) AS firstLevelScenario, " +
|
|
|
+ "(SELECT GROUP_CONCAT(`id` SEPARATOR ',') FROM lawyer_legal_problem_scenario WHERE level = 1) " +
|
|
|
+ "AS firstLevelScenarioId, " +
|
|
|
+ "(SELECT GROUP_CONCAT(`name` SEPARATOR ',') FROM lawyer_legal_problem_scenario WHERE level = 1) " +
|
|
|
+ "AS firstLevelScenario, " +
|
|
|
"b.expertise_area_info AS areaInfo " +
|
|
|
"FROM " +
|
|
|
"lawyer_user user " +
|
|
|
@@ -147,7 +120,12 @@ Integer updateLawyerUser(LawyerUser user);
|
|
|
"LEFT JOIN lawyer_legal_problem_scenario a ON a.id = area.problem_scenario_id " +
|
|
|
"LEFT JOIN lawyer_expertise_area b ON b.id = user.specialty_fields " +
|
|
|
"<where>" +
|
|
|
- "<if test='lawyerId != null'>user.id = #{lawyerId}</if>" +
|
|
|
+ "<if test='lawyerId != null'>user.id = #{lawyerId} AND </if>" +
|
|
|
+ "firm.delete_flag = 0 AND " +
|
|
|
+ "user.delete_flag = 0 AND " +
|
|
|
+ "area.delete_flag = 0 AND " +
|
|
|
+ "a.delete_flag = 0 AND " +
|
|
|
+ "b.delete_flag = 0" +
|
|
|
"</where>" +
|
|
|
"GROUP BY " +
|
|
|
"user.id, user.phone, user.`name`, user.firm_id, user.head_img, " +
|