tms3.10修改
This commit is contained in:
+2
@@ -61,4 +61,6 @@ public interface SysDepartInterfaceInfoMapper extends BaseMapper<SysDepartInterf
|
||||
int saveOrUpdate(@Param(value = "sysDepartInterfaceInfoVO") SysDepartInterfaceInfoPo sysDepartInterfaceInfoPo);
|
||||
@Select("SELECT * FROM sys_depart_interface_info WHERE interface_type_key = #{isAllowedTon} ")
|
||||
SysDepartInterfaceInfo queryListByInter(@Param("isAllowedTon") String isAllowedTon);
|
||||
|
||||
String selectOrgNameById(Long organizationId);
|
||||
}
|
||||
|
||||
Vendored
+10
@@ -4,6 +4,8 @@ import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.linke.thirdParty.application.server.SysDepartInterfaceInfoApplicationService;
|
||||
import com.linke.thirdParty.domain.departInterfaceInfo.repository.facade.ISysDepartInterfaceInfoInterface;
|
||||
import com.linke.thirdParty.domain.departInterfaceInfo.repository.mapper.SysDepartInterfaceInfoMapper;
|
||||
import com.mhd.common.core.constant.CacheConstants;
|
||||
import com.mhd.common.core.domain.entity.OrgProductConfig;
|
||||
import com.mhd.common.core.domain.po.thirdparty.SysDepartInterfaceInfoPo;
|
||||
@@ -35,6 +37,8 @@ public class SysDepartInterfaceInfoApi extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private SysDepartInterfaceInfoApplicationService sysDepartInterfaceInfoApplicationService;
|
||||
@Autowired
|
||||
private SysDepartInterfaceInfoMapper sysDepartInterfaceInfoMapper;
|
||||
|
||||
/**
|
||||
* 分页列表查询(根据一级组织查询)
|
||||
@@ -48,6 +52,12 @@ public class SysDepartInterfaceInfoApi extends BaseController
|
||||
BeanUtils.copyProperties(sysDepartInterfaceInfoDTO,sysDepartInterfaceInfoDo);
|
||||
startPage();
|
||||
List<SysDepartInterfaceInfoPo> list = sysDepartInterfaceInfoApplicationService.queryList(sysDepartInterfaceInfoDo);
|
||||
for (SysDepartInterfaceInfoPo sysDepartInterfaceInfo : list) {
|
||||
String s = sysDepartInterfaceInfoMapper.selectOrgNameById(sysDepartInterfaceInfo.getOrganizationId());
|
||||
if(StrUtil.isNotBlank(s))
|
||||
sysDepartInterfaceInfo.setOrganizationName(s);
|
||||
|
||||
}
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user