|
@@ -18,6 +18,7 @@ import org.springframework.jms.core.JmsMessagingTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
@@ -181,6 +182,7 @@ public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> impleme
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public RestResponse<?> updateByRegionId(Region region) {
|
|
|
Region byId = this.getById(region);
|
|
|
+ region.setUpdateTime(LocalDateTime.now());
|
|
|
//如果区域主管更改了,发推送消息,修改project_user表内的区域主管信息
|
|
|
if (!byId.getUserId().equals(region.getUserId())) {
|
|
|
List<Long> projects = baseMapper.selectProjectIdByRegionDirectorId(byId.getUserId(), byId.getMtCompanyId());
|