tms3.10修改

This commit is contained in:
赵辉
2026-03-10 23:08:27 +08:00
parent 285816055e
commit eabbec3cc1
13 changed files with 72 additions and 3 deletions
@@ -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);
}
@@ -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);
}
@@ -41,6 +41,9 @@
SELECT a.* FROM sys_depart_interface_info a WHERE
a.interface_type = 'networkFreight' and a.sys_org_code = #{sysOrgCode}
</select>
<select id="selectOrgNameById" resultType="java.lang.String">
select organization_name from NGWL_TEST_PRODUCT.SYS_ORGANIZATION where organization_id = #{organizationId}
</select>
<sql id="common_where">
<if test="sysDepartInterfaceInfoDo.topOrganizationId !=null">
and a.top_organization_id = #{sysDepartInterfaceInfoDo.topOrganizationId}