no message
parent
332c585e35
commit
ce902cbf72
|
|
@ -208,7 +208,7 @@ public class AgvTaskController extends JeecgController<AgvTask, IAgvTaskService>
|
||||||
entityList.add(new ExcelExportEntity("顶升时间", "顶升时间", 20));
|
entityList.add(new ExcelExportEntity("顶升时间", "顶升时间", 20));
|
||||||
entityList.add(new ExcelExportEntity("顶升耗时", "顶升耗时", 20));
|
entityList.add(new ExcelExportEntity("顶升耗时", "顶升耗时", 20));
|
||||||
|
|
||||||
Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(null, "TES任务信息"), entityList, dataList);
|
Workbook workbook = ExcelExportUtil.exportExcel(new ExportParams(null, "数据"), entityList, dataList);
|
||||||
/* // 自动调整列宽
|
/* // 自动调整列宽
|
||||||
Sheet sheet = workbook.getSheetAt(0);
|
Sheet sheet = workbook.getSheetAt(0);
|
||||||
for (int i = 0; i < entityList.size(); i++) {
|
for (int i = 0; i < entityList.size(); i++) {
|
||||||
|
|
|
||||||
|
|
@ -35,16 +35,13 @@
|
||||||
AND agv.id = #{agvTask.id}
|
AND agv.id = #{agvTask.id}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="agvTask.carrierCode != null">
|
<if test="agvTask.carrierCode != null and agvTask.carrierCode != ''">
|
||||||
AND agv.carrier_code = #{agvTask.carrierCode}
|
AND agv.carrier_code = #{agvTask.carrierCode}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="agvTask.status_MultiString != null and agvTask.status_MultiString != ''">
|
<if test="agvTask.status_MultiString != null and agvTask.status_MultiString != ''">
|
||||||
AND agv.status IN
|
AND agv.status IN
|
||||||
<foreach collection="agvTask.status_MultiString.split(',')"
|
<foreach collection="agvTask.status_MultiString.split(',')" item="status" open="(" separator=","
|
||||||
item="status"
|
|
||||||
open="("
|
|
||||||
separator=","
|
|
||||||
close=")">
|
close=")">
|
||||||
#{status}
|
#{status}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
@ -52,16 +49,16 @@
|
||||||
|
|
||||||
<if test="agvTask.type_MultiString != null and agvTask.type_MultiString != ''">
|
<if test="agvTask.type_MultiString != null and agvTask.type_MultiString != ''">
|
||||||
AND agv.type IN
|
AND agv.type IN
|
||||||
<foreach collection="agvTask.type_MultiString.split(',')"
|
<foreach collection="agvTask.type_MultiString.split(',')" item="type" open="(" separator=","
|
||||||
item="type"
|
|
||||||
open="("
|
|
||||||
separator=","
|
|
||||||
close=")">
|
close=")">
|
||||||
#{type}
|
#{type}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="agvTask.createTime != null">
|
<if test="agvTask.createTime_begin != null">
|
||||||
AND agv.create_time >= #{agvTask.createTime}
|
AND agv.create_time >= CONCAT(#{agvTask.createTime_begin}, ' 00:00:00')
|
||||||
|
</if>
|
||||||
|
<if test="agvTask.createTime_end != null">
|
||||||
|
AND agv.create_time <= CONCAT(#{agvTask.createTime_end}, ' 23:59:59')
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by agv.id
|
order by agv.id
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,14 @@ public class Pick implements Serializable {
|
||||||
@Schema(description = "订单状态")
|
@Schema(description = "订单状态")
|
||||||
@Dict(dicCode = "pick_status")
|
@Dict(dicCode = "pick_status")
|
||||||
private java.lang.Integer status;
|
private java.lang.Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优先级
|
||||||
|
* 0:普通 1:加急 2:紧急
|
||||||
|
*/
|
||||||
|
@Schema(description = "优先级")
|
||||||
|
private java.lang.Integer priority;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 需求数量
|
* 需求数量
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,8 @@
|
||||||
JOIN data_pick_detail pd ON pd.pick_id=p.id
|
JOIN data_pick_detail pd ON pd.pick_id=p.id
|
||||||
WHERE p.`status` in (1,2,4)
|
WHERE p.`status` in (1,2,4)
|
||||||
AND pd.order_qty-pd.allocated_qty>0
|
AND pd.order_qty-pd.allocated_qty>0
|
||||||
ORDER BY p.id,pd.id
|
ORDER BY
|
||||||
|
p.priority DESC,
|
||||||
|
p.id, pd.id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ public class PickDetailServiceImpl extends ServiceImpl<PickDetailMapper, PickDet
|
||||||
.customerCode(outboundRequest.getCustomerCode())
|
.customerCode(outboundRequest.getCustomerCode())
|
||||||
.orderType(outboundRequest.getType())
|
.orderType(outboundRequest.getType())
|
||||||
.status(PickStatusEnum.CREATED.getValue())
|
.status(PickStatusEnum.CREATED.getValue())
|
||||||
|
.priority(0)
|
||||||
.orderDate(new Date())
|
.orderDate(new Date())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,14 @@ public class PickPage {
|
||||||
@Excel(name = "订单状态", width = 15)
|
@Excel(name = "订单状态", width = 15)
|
||||||
@Schema(description = "订单状态")
|
@Schema(description = "订单状态")
|
||||||
private java.lang.Integer status;
|
private java.lang.Integer status;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优先级
|
||||||
|
* 0:普通 1:加急 2:紧急
|
||||||
|
*/
|
||||||
|
@Schema(description = "优先级")
|
||||||
|
private java.lang.Integer priority;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 需求数量
|
* 需求数量
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue