|
|
@ -22,6 +22,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
@ -41,7 +42,6 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
@ -188,7 +188,8 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao |
|
|
|
//1:查询当前机关是否存在所属下级机关,存在下级的不能删除
|
|
|
|
List<SubListResultDTO> agencyList = baseDao.selectSubAgencyById(formDTO.getAgencyId()); |
|
|
|
if (null != agencyList && agencyList.size() > NumConstant.ZERO) { |
|
|
|
result.setMsg(CustomerAgencyConstant.NOT_DEL_AGENCY); |
|
|
|
result.setCode(EpmetErrorCode.NOT_DEL_AGENCY.getCode()); |
|
|
|
result.setMsg(EpmetErrorCode.NOT_DEL_AGENCY.getMsg()); |
|
|
|
return result; |
|
|
|
} |
|
|
|
//2:删除当前机关组织(逻辑删)
|
|
|
|