Commit d9f878ca by 徐高华

删除无效关联导购

parent 18a2c40b
......@@ -404,6 +404,8 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
ClerkDTO clerk = this.clerkService.getclerkById(clerkId) ;
if(null != clerk && clerk.getStatus() == 1) {
retList.add(item) ;
}else {
this.mapper.delByClerkId(clerkId);
}
}
return retList ;
......@@ -416,6 +418,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
String clerkId = dto.getClerkId() ;
ClerkDTO clerk = this.clerkService.getclerkById(clerkId) ;
if(null == clerk || clerk.getStatus() != 1) {
this.mapper.delByClerkId(clerkId);
dto = null ;
}
return dto ;
......
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