dev
parent
719134447d
commit
522233db35
|
|
@ -10,7 +10,6 @@ import com.njzscloud.supervisory.biz.pojo.result.SearchCompanyResult;
|
|||
import com.njzscloud.supervisory.money.mapper.MoneyBillMapper;
|
||||
import com.njzscloud.supervisory.money.pojo.entity.MoneyBillEntity;
|
||||
import com.njzscloud.supervisory.money.pojo.result.MoneyBillResult;
|
||||
import com.njzscloud.supervisory.order.service.OrderInfoService;
|
||||
import com.njzscloud.supervisory.order.utils.FileUtil;
|
||||
import com.njzscloud.supervisory.sys.auth.mapper.AuthMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
|
@ -40,8 +39,6 @@ public class MoneyBillService extends ServiceImpl<MoneyBillMapper, MoneyBillEnti
|
|||
|
||||
private final AuthMapper authMapper;
|
||||
|
||||
private final OrderInfoService orderInfoService;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
|
|
@ -76,11 +73,11 @@ public class MoneyBillService extends ServiceImpl<MoneyBillMapper, MoneyBillEnti
|
|||
*/
|
||||
public PageResult<MoneyBillEntity> paging(PageParam pageParam, MoneyBillEntity moneyBillEntity) {
|
||||
Page<MoneyBillEntity> page = new Page<>(pageParam.getCurrent(), pageParam.getSize());
|
||||
List<Long> stationIds = orderInfoService.getStationIds();
|
||||
if (!stationIds.isEmpty()) {
|
||||
moneyBillEntity.setStationId(null);
|
||||
}
|
||||
IPage<MoneyBillEntity> result = baseMapper.selectMoneyBillWithNames(page, moneyBillEntity, stationIds);
|
||||
// List<Long> stationIds = orderInfoService.getStationIds();
|
||||
// if (!stationIds.isEmpty()) {
|
||||
// moneyBillEntity.setStationId(null);
|
||||
// }
|
||||
IPage<MoneyBillEntity> result = baseMapper.selectMoneyBillWithNames(page, moneyBillEntity, null);
|
||||
return PageResult.of(result);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -549,4 +549,9 @@ public class OrderPagingResult {
|
|||
* 派车方式:项目-->project 平台-->platform 自选-->optional
|
||||
*/
|
||||
private CarWay carWay;
|
||||
|
||||
/**
|
||||
* 区审批人角色名称
|
||||
*/
|
||||
private String roleName;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -240,10 +240,10 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
|||
Long goodsId = orderPagingSearchParam.getGoodsId();
|
||||
Page<OrderPagingResult> page = pageParam.toPage();
|
||||
Long stationId = orderPagingSearchParam.getStationId();
|
||||
List<Long> stationIds = this.getStationIds();
|
||||
if (!stationIds.isEmpty()) {
|
||||
stationId = null;
|
||||
}
|
||||
// List<Long> stationIds = this.getStationIds();
|
||||
// if (!stationIds.isEmpty()) {
|
||||
// stationId = null;
|
||||
// }
|
||||
String area = orderPagingSearchParam.getArea();
|
||||
OrderCategory orderCategory = orderPagingSearchParam.getOrderCategory();
|
||||
String transCompanyName = orderPagingSearchParam.getTransCompanyName();
|
||||
|
|
@ -254,7 +254,7 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
|||
LocalDateTime endOutTime = orderPagingSearchParam.getEndOutTime();
|
||||
QueryWrapper<OrderPagingResult> ew = Wrappers.<OrderPagingResult>query()
|
||||
.eq(stationId != null && stationId > 0, "a.station_id", stationId)
|
||||
.in(!stationIds.isEmpty(), "a.station_id", stationIds)
|
||||
// .in(!stationIds.isEmpty(), "a.station_id", stationIds)
|
||||
.like(StrUtil.isNotBlank(sn), "a.sn", sn)
|
||||
.like(StrUtil.isNotBlank(licensePlate), "e.license_plate", licensePlate)
|
||||
.like(StrUtil.isNotBlank(nickname), "a.contacts", nickname)
|
||||
|
|
@ -1897,7 +1897,17 @@ public class OrderInfoService extends ServiceImpl<OrderInfoMapper, OrderInfoEnti
|
|||
}
|
||||
|
||||
public OrderPagingResult obtainWeighBill(Long orderId) {
|
||||
return baseMapper.obtainWeighBill(orderId);
|
||||
OrderPagingResult result = baseMapper.obtainWeighBill(orderId);
|
||||
BizAuditConfigEntity bizAuditConfigEntity = bizAuditConfigService.getOne(Wrappers.lambdaQuery(BizAuditConfigEntity.class)
|
||||
.eq(BizAuditConfigEntity::getArea, result.getArea()));
|
||||
if (null != bizAuditConfigEntity && !Strings.isNullOrEmpty(bizAuditConfigEntity.getAreaRole())) {
|
||||
RoleEntity roleEntity = roleService.getOne(Wrappers.lambdaQuery(RoleEntity.class).eq(
|
||||
RoleEntity::getRoleCode, bizAuditConfigEntity.getAreaRole()));
|
||||
if (null != roleEntity && null != roleEntity.getId()) {
|
||||
result.setRoleName(roleEntity.getRoleName());
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public TrainBillResult trainBill(Long orderId) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue