|
@@ -78,8 +78,15 @@ public class CmMallOrganizeService extends CrudService<CmMallOrganizeDao, CmMall
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly = false)
|
|
|
- public void setStatus(String status, String id) {
|
|
|
+ public void setStatus(String status, String id, Integer userId) {
|
|
|
+ // 协销上下线状态
|
|
|
organizeDao.setStatus(status, id);
|
|
|
+ // 用户协销状态
|
|
|
+ if ("90".equals(status)) {
|
|
|
+ organizeDao.setUserServiceStatus(Integer.parseInt(status), Integer.parseInt(id), userId, 1, 4);
|
|
|
+ } else {
|
|
|
+ organizeDao.setUserServiceStatus(Integer.parseInt(status), Integer.parseInt(id), userId, 0, 1);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly = false)
|
|
@@ -90,20 +97,20 @@ public class CmMallOrganizeService extends CrudService<CmMallOrganizeDao, CmMall
|
|
|
}
|
|
|
if (null != operaId) {
|
|
|
// 删除采购员
|
|
|
- organizeDao.delService(operaId);
|
|
|
- List<Integer> collect = new ArrayList<>();
|
|
|
+ organizeDao.updateService(operaId);
|
|
|
+ /*List<Integer> collect = new ArrayList<>();
|
|
|
collect.add(operaId);
|
|
|
List<NewCmClub> clubList = organizeDao.getClubNameList(collect);
|
|
|
// 更改采购员名下机构 用户采购员信息
|
|
|
clubList.forEach(c -> {
|
|
|
organizeDao.updateClub(1342, c.getClubID());
|
|
|
organizeDao.updateUser(1342, c.getUserID());
|
|
|
- });
|
|
|
+ });*/
|
|
|
}
|
|
|
- if (null != userId) {
|
|
|
+ /*if (null != userId) {
|
|
|
// 删除用户
|
|
|
organizeDao.delUser(userId);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
}
|