查询委托方去除组织条件;

This commit is contained in:
王奎兴
2026-08-25 10:41:58 +08:00
parent f5f792d3f8
commit 1916152775
3 changed files with 4 additions and 4 deletions
@@ -45,5 +45,5 @@ public interface BillManageMapper extends BaseMapper<BillManage>
String getOrgCodeNc(@Param("organizationId") Long organizationId);
Long getShipperId(@Param("userId") Long userId, @Param("organizationId") Long organizationId);
Long getShipperId(@Param("userId") Long userId);
}
@@ -269,7 +269,7 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
throw new ServiceException("结算对象未找到!");
}
Long settlementEntityId = settlementCustomers.getSettlementEntityId();
Long shipperId = billManageMapper.getShipperId(settlementEntityId, organizationId);
Long shipperId = billManageMapper.getShipperId(settlementEntityId);
if (shipperId==null||shipperId==0){
throw new ServiceException("结算对象未找到!");
}
@@ -940,7 +940,7 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
throw new ServiceException("结算对象未找到!");
}
Long settlementEntityId = settlementCustomers.getSettlementEntityId();
Long shipperId = billManageMapper.getShipperId(settlementEntityId, organizationId);
Long shipperId = billManageMapper.getShipperId(settlementEntityId);
if (shipperId==null||shipperId==0){
throw new ServiceException("结算对象未找到!");
}
@@ -170,7 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="getShipperId" resultType="java.lang.Long">
SELECT SHIPPER_ID FROM NGWL_TEST_USER."USER_SHIPPER" where DEL_FLAG = '1' and user_id = #{userId} and organization_id = #{organizationId} limit 1
SELECT SHIPPER_ID FROM NGWL_TEST_USER."USER_SHIPPER" where DEL_FLAG = '1' and user_id = #{userId} limit 1
</select>
</mapper>