南歧nc65对接

This commit is contained in:
hjx
2025-12-05 18:21:36 +08:00
parent 73a2d7f1c9
commit 7efbe3d404
49 changed files with 2117 additions and 44 deletions
@@ -32,6 +32,7 @@ import com.mhd.user.domain.roleAggregate.service.RoleDomainService;
import com.mhd.user.domain.userAggregate.entity.UserRoleEntity;
import com.mhd.user.domain.userAggregate.entity.UserShipperEntity;
import com.mhd.user.domain.userAggregate.event.ShipperEventPublisher;
import com.mhd.user.domain.userAggregate.repository.po.UserDriverPo;
import com.mhd.user.domain.userAggregate.repository.todo.*;
import com.mhd.user.domain.userAggregate.service.*;
import com.mhd.user.infrastructure.feign.ProductServiceFeign;
@@ -1022,4 +1023,9 @@ public class UserShipperApplicationService {
public SettlementInfoQueryVo getSettlementInfoByUserId(Long userId) {
return userShipperDomainService.getSettlementInfoByUserId(userId);
}
public UserShipperPo getShipperSummaryData(Long userId) {
return userShipperDomainService.getShipperSummaryData(userId);
}
}
@@ -58,4 +58,6 @@ public interface UserShipperRepositoryInterface extends IService<UserShipperEnti
SettlementInfoQueryVo getAuthorizedAmountByShipperId(Long shipperId);
SettlementInfoQueryVo getSettlementInfoByUserId(Long userId);
public UserShipperPo getShipperSummaryData(Long userId);
}
@@ -26,4 +26,6 @@ public interface UserShipperMapper extends BaseMapper<UserShipperEntity> {
List<UserShipperEntity> getChooseShipper(@Param("userIdList") List<Long> userIdList);
List<UserShipperEntity> selectBySealId(@Param("userShipperEntity") UserShipperEntity userShipperEntity);
public UserShipperPo getShipperSummaryData(Long userId);
}
@@ -161,4 +161,9 @@ public class UserShipperRepositoryImpl extends ServiceImpl<UserShipperMapper, Us
BeanUtils.copyProperties(entity, queryVo);
return queryVo;
}
@Override
public UserShipperPo getShipperSummaryData(Long userId) {
return shipperMapper.getShipperSummaryData(userId);
}
}
@@ -223,4 +223,8 @@ public class UserShipperDomainService {
public SettlementInfoQueryVo getSettlementInfoByUserId(Long userId) {
return userShipperRepositoryInterface.getSettlementInfoByUserId(userId);
}
public UserShipperPo getShipperSummaryData(Long userId) {
return userShipperRepositoryInterface.getShipperSummaryData(userId);
}
}
@@ -199,4 +199,10 @@ public class UserShipperAPI extends BaseController {
SettlementInfoQueryVo infoQueryVo = userShipperApplicationService.getSettlementInfoByUserId(userId);
return R.ok(infoQueryVo);
}
@ApiOperation("查询委托方汇总数据")
@GetMapping("/getShipperSummaryData/{userId}")
public AjaxResult<?> getShipperSummaryData(@PathVariable Long userId) {
return AjaxResult.success(userShipperApplicationService.getShipperSummaryData(userId));
}
}