提交 aa8e40a9 authored 作者: huyufan's avatar huyufan

Merge remote-tracking branch 'origin/v5.7_break_contract_reverse_20231020' into…

Merge remote-tracking branch 'origin/v5.7_break_contract_reverse_20231020' into v5.7_break_contract_reverse_20231020
...@@ -136,6 +136,8 @@ public class OrderChildDaoImpl extends BaseDaoImpl<OrderChildMapper, OrderChild, ...@@ -136,6 +136,8 @@ public class OrderChildDaoImpl extends BaseDaoImpl<OrderChildMapper, OrderChild,
return update(lUdWrapper() return update(lUdWrapper()
.eq(OrderChild::getId, item.getId()) .eq(OrderChild::getId, item.getId())
.set(OrderChild::getCancelRemark, item.getCancelRemark()) .set(OrderChild::getCancelRemark, item.getCancelRemark())
.set(OrderChild::getCancelType, item.getCancelType())
.set(OrderChild::getCancelDetail, item.getCancelDetail())
.set(OrderChild::getCancelTime, item.getCancelTime()) .set(OrderChild::getCancelTime, item.getCancelTime())
.set(OrderChild::getFinishTime, item.getFinishTime()) .set(OrderChild::getFinishTime, item.getFinishTime())
.set(OrderChild::getStatus, item.getStatus()) .set(OrderChild::getStatus, item.getStatus())
......
...@@ -1071,7 +1071,6 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -1071,7 +1071,6 @@ public class OrderChildServiceImpl implements OrderChildService {
orderChild.getTruckNo()).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND); orderChild.getTruckNo()).orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
} }
orderChild.setCancelRemark(param.getRemark());
orderChild.setCancelTime(LocalDateTime.now()); orderChild.setCancelTime(LocalDateTime.now());
orderChild.setFinishTime(orderChild.getCancelTime()); orderChild.setFinishTime(orderChild.getCancelTime());
orderChild.setStatus(OrderChildEnum.Status.DRIVER_CANCEL.getCode()); orderChild.setStatus(OrderChildEnum.Status.DRIVER_CANCEL.getCode());
...@@ -1445,7 +1444,7 @@ public class OrderChildServiceImpl implements OrderChildService { ...@@ -1445,7 +1444,7 @@ public class OrderChildServiceImpl implements OrderChildService {
} }
if (orderChild.getLoadNet() != null) {return orderChild.getLoadNet();} if (orderChild.getLoadNet() != null) {return orderChild.getLoadNet();}
return orderChild.getTruckLoad(); return orderChild.getWeight();
} }
/** /**
......
...@@ -6,12 +6,15 @@ import com.clx.performance.dao.OrderGoodsLogDao; ...@@ -6,12 +6,15 @@ import com.clx.performance.dao.OrderGoodsLogDao;
import com.clx.performance.model.OrderGoodsLog; import com.clx.performance.model.OrderGoodsLog;
import com.clx.performance.param.pc.OrderGoodsLogParam; import com.clx.performance.param.pc.OrderGoodsLogParam;
import com.clx.performance.service.OrderGoodsLogService; import com.clx.performance.service.OrderGoodsLogService;
import com.clx.performance.struct.OrderGoodsLogStruct;
import com.clx.performance.vo.pc.OrderGoodsLogVO; import com.clx.performance.vo.pc.OrderGoodsLogVO;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/** /**
* @author kavin * @author kavin
* Date 2023-10-26 * Date 2023-10-26
...@@ -24,6 +27,8 @@ public class OrderGoodsLogServiceImpl implements OrderGoodsLogService { ...@@ -24,6 +27,8 @@ public class OrderGoodsLogServiceImpl implements OrderGoodsLogService {
OrderGoodsLogDao orderGoodsLogDao; OrderGoodsLogDao orderGoodsLogDao;
OrderGoodsLogStruct orderGoodsLogStruct;
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@Override @Override
public void saveLog(String orderGoodsNo, Long userNo, String userName, String type, String remark) { public void saveLog(String orderGoodsNo, Long userNo, String userName, String type, String remark) {
...@@ -34,7 +39,12 @@ public class OrderGoodsLogServiceImpl implements OrderGoodsLogService { ...@@ -34,7 +39,12 @@ public class OrderGoodsLogServiceImpl implements OrderGoodsLogService {
@Override @Override
public IPage<OrderGoodsLogVO> pageOrderGoodsLog(OrderGoodsLogParam param) { public IPage<OrderGoodsLogVO> pageOrderGoodsLog(OrderGoodsLogParam param) {
Page<OrderGoodsLog> page = orderGoodsLogDao.pageOrderGoodsLog(Page.of(param.getPage(), param.getPageSize()),param.getOrderGoodsNo()); Page<OrderGoodsLog> page = orderGoodsLogDao.pageOrderGoodsLog(Page.of(param.getPage(), param.getPageSize()),param.getOrderGoodsNo());
return null; List<OrderGoodsLogVO> orderGoodsLogVOS = orderGoodsLogStruct.covertList(page.getRecords());
Page<OrderGoodsLogVO> result = new Page<>();
result.setTotal(page.getTotal());
result.setPages(page.getPages());
result.setRecords(orderGoodsLogVOS);
return result;
} }
} }
package com.clx.performance.struct;
import com.clx.performance.model.OrderGoodsLog;
import com.clx.performance.vo.pc.OrderGoodsLogVO;
import com.msl.common.utils.DateStructUtil;
import com.msl.common.utils.DateUtils;
import org.mapstruct.Mapper;
import java.util.List;
@Mapper(componentModel = "spring", uses = DateStructUtil.class, imports = {DateUtils.class})
public interface OrderGoodsLogStruct {
List<OrderGoodsLogVO> covertList(List<OrderGoodsLog> list);
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论