|
|
@ -70,6 +70,7 @@ import com.elink.esua.epdc.modules.interfacelog.entity.InterfaceLogEntity; |
|
|
|
import com.elink.esua.epdc.modules.interfacelog.service.InterfaceLogService; |
|
|
|
import com.elink.esua.epdc.modules.issue.service.IssueService; |
|
|
|
import com.elink.esua.epdc.modules.item.dao.ItemDao; |
|
|
|
import com.elink.esua.epdc.modules.item.dao.ItemGridPlatformDao; |
|
|
|
import com.elink.esua.epdc.modules.item.entity.*; |
|
|
|
import com.elink.esua.epdc.modules.item.service.*; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
@ -136,6 +137,9 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
@Autowired |
|
|
|
private InterfaceLogService interfaceLogService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ItemGridPlatformDao itemGridPlatformDao; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<ItemDTO> page(Map<String, Object> params) { |
|
|
|
IPage<ItemEntity> page = baseDao.selectPage( |
|
|
@ -601,6 +605,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
// 发送菜单消息-待处理项目-吹哨部门
|
|
|
|
this.sendWhistlingDeptItemHandleMenuNotice(deptIds, null); |
|
|
|
} else if (ItemHandleCategoryEnum.HANDLE_REPORT.getValue() == dto.getHandleCategory()) { |
|
|
|
boolean reportFlag = this.checkReport(dto.getId()); |
|
|
|
if (reportFlag) { |
|
|
|
return new Result().error("当前项目已上报网格化平台"); |
|
|
|
} |
|
|
|
handleProcessEntity.setState(dto.getHandleCategory()); |
|
|
|
informationFormDTO.setTitle(EventsNoticeConstant.NOTICE_REPORT); |
|
|
|
GridDto gridDto = null; |
|
|
@ -741,6 +749,23 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param id 项目表主键 |
|
|
|
* @return boolean |
|
|
|
* @Author yinzuomei |
|
|
|
* @Description 校验项目是否已经上报网格化平台 |
|
|
|
* @Date 2019/12/27 10:52 |
|
|
|
**/ |
|
|
|
private boolean checkReport(String id) { |
|
|
|
QueryWrapper<ItemGridPlatformEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq("REFERENCE_ID", id); |
|
|
|
List<ItemGridPlatformEntity> list = itemGridPlatformDao.selectList(wrapper); |
|
|
|
if (list != null && list.size() > 0) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 项目流转校验 |
|
|
|
* |
|
|
|