Merge branch 'feature/mall_product' into test
commit
29608d4f69
|
@ -150,6 +150,7 @@ public class PromoterController {
|
||||||
@GetMapping("/all-export-excel")
|
@GetMapping("/all-export-excel")
|
||||||
@Operation(summary = "导出所有推广员 Excel")
|
@Operation(summary = "导出所有推广员 Excel")
|
||||||
@OperateLog(type = EXPORT)
|
@OperateLog(type = EXPORT)
|
||||||
|
@TenantIgnore
|
||||||
public void allExportExcel(@Valid PromoterPageReqVO pageVO,
|
public void allExportExcel(@Valid PromoterPageReqVO pageVO,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
PageResult<PromoterRespVO> pageResult = promoterService.getPromoterPage(pageVO);
|
PageResult<PromoterRespVO> pageResult = promoterService.getPromoterPage(pageVO);
|
||||||
|
|
|
@ -149,6 +149,7 @@ public class DeptServiceImpl implements DeptService {
|
||||||
});
|
});
|
||||||
deptMapper.updateBatch(deptDOS, deptDOS.size());
|
deptMapper.updateBatch(deptDOS, deptDOS.size());
|
||||||
deptDO.setName(reqVO.getName());
|
deptDO.setName(reqVO.getName());
|
||||||
|
deptDO.setParentOrganizationName(reqVO.getName());
|
||||||
deptMapper.updateById(deptDO);
|
deptMapper.updateById(deptDO);
|
||||||
// 发送刷新消息
|
// 发送刷新消息
|
||||||
deptProducer.sendDeptRefreshMessage();
|
deptProducer.sendDeptRefreshMessage();
|
||||||
|
|
|
@ -170,15 +170,6 @@ public class TenantServiceImpl implements TenantService {
|
||||||
if (ObjectUtil.notEqual(tenant.getPackageId(), updateReqVO.getPackageId())) {
|
if (ObjectUtil.notEqual(tenant.getPackageId(), updateReqVO.getPackageId())) {
|
||||||
updateTenantRoleMenu(tenant.getId(), tenantPackage.getMenuIds());
|
updateTenantRoleMenu(tenant.getId(), tenantPackage.getMenuIds());
|
||||||
}
|
}
|
||||||
// 同步修改部门信息
|
|
||||||
DeptUpdateReqVO reqVO = new DeptUpdateReqVO();
|
|
||||||
DeptDO dept = deptService.getDept(updateObj.getId());
|
|
||||||
if (null != dept) {
|
|
||||||
reqVO.setName(updateObj.getName());
|
|
||||||
reqVO.setId(dept.getId());
|
|
||||||
deptService.updateDept(reqVO);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue