Commit add8e452 authored by huyuchen's avatar huyuchen

派单优化修改

parent da837317
......@@ -119,4 +119,12 @@ public class TDispatchReduceVo extends RowIndex implements Serializable {
@ExcelProperty("是否是失败项重新派单" )
private String isAgainFlag;
/**
* 重新派单的ID
*/
@ExcelAttribute(name = "重新派单的ID")
@Schema(description = "重新派单的ID" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("重新派单的ID" )
private String isAgainId;
}
......@@ -2725,7 +2725,9 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
dispatch.setOrderId(orderId);
dispatch.setApplyNo(getApplyCode());
if (CommonConstants.ZERO_STRING.equals(excel.getIsAgainFlag())) {
dispatch.setAgainDispatchCode(dispatch.getApplyNo());
TDispatchInfo dispatchInfo = baseMapper.selectById(excel.getIsAgainId());
dispatchInfo.setAgainDispatchCode(dispatch.getApplyNo());
baseMapper.updateById(dispatchInfo);
}
dispatch.setStatus(CommonConstants.ONE_STRING);
baseMapper.insert(dispatch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment