Commit 1a85025c by 墨竹

fix:优化好友列表sql、导购code不校验

parent e6d46b98
...@@ -419,7 +419,7 @@ ...@@ -419,7 +419,7 @@
<select id="listByWxEnterpriseIdAndWxUserIdAndStatus" resultMap="BaseResultMap"> <select id="listByWxEnterpriseIdAndWxUserIdAndStatus" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from tab_haoban_external_clerk_related from tab_haoban_external_clerk_related force index (staff_id)
where staff_id = #{staffId,jdbcType=VARCHAR} where staff_id = #{staffId,jdbcType=VARCHAR}
and wx_enterprise_id = #{wxEnterpriseId} and wx_enterprise_id = #{wxEnterpriseId}
and status_flag in and status_flag in
......
...@@ -281,9 +281,9 @@ public class ClerkController extends WebBaseController { ...@@ -281,9 +281,9 @@ public class ClerkController extends WebBaseController {
return resultResponse(HaoBanErrCode.ERR_10012); return resultResponse(HaoBanErrCode.ERR_10012);
} }
// 导购code校验-字母和数字 // 导购code校验-字母和数字
if (!clerkCode.matches("[a-zA-Z0-9]+")) { //if (!clerkCode.matches("[a-zA-Z0-9]+")) {
return resultResponse(HaoBanErrCode.ERR_10023); // return resultResponse(HaoBanErrCode.ERR_10023);
} //}
if (version == null) { if (version == null) {
StaffDTO staff = staffApiService.selectByNationcodeAndPhoneNumber(wxEnterpriseId, nationcode, phoneNumber); StaffDTO staff = staffApiService.selectByNationcodeAndPhoneNumber(wxEnterpriseId, nationcode, phoneNumber);
if (staff != null) { if (staff != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment