|
|
@@ -59,6 +59,7 @@ public interface LawyerUserMapper extends BaseMapper<LawyerUser> {
|
|
|
"<if test='certificateImage != null'>certificate_image = #{certificateImage},</if>" +
|
|
|
"<if test='idCardFrontImage != null'>id_card_front_image = #{idCardFrontImage},</if>" +
|
|
|
"<if test='idCardBackImage != null'>id_card_back_image = #{idCardBackImage},</if>" +
|
|
|
+ "<if test='businessLicenseImage != null'>business_license_image = #{businessLicenseImage},</if>" +
|
|
|
"<if test='serviceScore != null'>service_score = #{serviceScore},</if>" +
|
|
|
"<if test='serviceCount != null'>service_count = #{serviceCount},</if>" +
|
|
|
"<if test='goodReviewCount != null'>good_review_count = #{goodReviewCount},</if>" +
|
|
|
@@ -107,6 +108,7 @@ Integer updateLawyerUser(LawyerUser user);
|
|
|
"user.charge_time, " +
|
|
|
"user.time_num, " +
|
|
|
"user.certificate_image, " +
|
|
|
+ "user.business_license_image, " +
|
|
|
"firm.firm_name AS firmName, " +
|
|
|
"firmTwo.payment_account AS paymentNum, " +
|
|
|
"firmTwo.address AS address, " +
|
|
|
@@ -115,16 +117,13 @@ Integer updateLawyerUser(LawyerUser user);
|
|
|
"(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 " +
|
|
|
"FROM lawyer_user user " +
|
|
|
- "LEFT JOIN law_firm firm ON firm.id = user.firm_id " +
|
|
|
+ "LEFT JOIN law_firm firm ON firm.id = user.firm_id AND firm.delete_flag = 0 " +
|
|
|
"LEFT JOIN law_firm_payment firmTwo ON firmTwo.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_service_area area ON area.lawyer_user_id = user.id AND area.delete_flag = 0 AND area.status = 1 " +
|
|
|
+ "LEFT JOIN lawyer_legal_problem_scenario a ON a.id = area.problem_scenario_id AND a.delete_flag = 0 " +
|
|
|
"<where>" +
|
|
|
"<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" +
|
|
|
+ "user.delete_flag = 0" +
|
|
|
"</where>" +
|
|
|
"GROUP BY " +
|
|
|
"user.id" +
|