Commit 3891599d by fudahua

门店分组绑定校验

parent 1204e2f0
......@@ -99,5 +99,10 @@ public interface TabHaobanStaffClerkRelationMapper {
*/
List<TabHaobanStaffClerkRelation> listBindByStoreIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("storeIds") Set<String> storeIds);
/**
* 删除绑定根据门店
*
* @param storeIds
*/
void delByStoreIds(@Param("storeIds") Set<String> storeIds);
}
\ No newline at end of file
......@@ -104,9 +104,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
if (CollectionUtils.isEmpty(needUnbind)) {
logger.info("没有门店绑定了需要解绑的:{}", wxEnterpriseId);
}
needUnbind.forEach(tab -> {
tab.setStatusFlag(0);
});
//清除绑定
mapper.delByStoreIds(storeIds);
......
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