查询委托方去除组织条件;
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
+2
-2
@@ -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>
|
||||
Reference in New Issue
Block a user