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