Commit b0c508eb by 墨竹

fix:门店绑定审核判断bug修改

parent b22df708
...@@ -142,7 +142,8 @@ public class AuditApiServiceImpl implements AuditApiService { ...@@ -142,7 +142,8 @@ public class AuditApiServiceImpl implements AuditApiService {
tab.setAuditStatus(5); tab.setAuditStatus(5);
String reason = "该成员在该门店下已经绑定过一个导购了"; String reason = "该成员在该门店下已经绑定过一个导购了";
if (clerkDTO != null) { if (clerkDTO != null) {
if (clerkDTO.getClerkType() == 2) { Integer clerkType = clerkDTO.getClerkType();
if (clerkType == 2) {
reason = "该成员在该商户下已经绑定过一个区经了"; reason = "该成员在该商户下已经绑定过一个区经了";
} }
} }
......
...@@ -160,8 +160,11 @@ ...@@ -160,8 +160,11 @@
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from tab_haoban_staff_clerk_relation from tab_haoban_staff_clerk_relation
where status_flag=1 where status_flag=1
and store_id = #{storeId,jdbcType=VARCHAR}
and staff_id = #{staffId,jdbcType=VARCHAR} and staff_id = #{staffId,jdbcType=VARCHAR}
<if test="null != storeId and storeId != ''">
and store_id = #{storeId}
</if>
order by update_time desc limit 1
</select> </select>
......
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