no message

main
HUOJIN\92525 2026-02-09 22:27:51 +08:00
parent 332c585e35
commit ce902cbf72
6 changed files with 35 additions and 19 deletions

View File

@ -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++) {

View File

@ -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 &gt;= CONCAT(#{agvTask.createTime_begin}, ' 00:00:00')
</if>
<if test="agvTask.createTime_end != null">
AND agv.create_time &lt;= CONCAT(#{agvTask.createTime_end}, ' 23:59:59')
</if> </if>
</where> </where>
order by agv.id order by agv.id

View File

@ -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;
/** /**
* *
*/ */

View File

@ -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>

View File

@ -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();
} }

View File

@ -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;
/** /**
* *
*/ */