feat: 报表
This commit is contained in:
@@ -31,14 +31,12 @@ public class DasQualityInspectionController {
|
|||||||
|
|
||||||
@GetMapping
|
@GetMapping
|
||||||
@Log("查询质检记录")
|
@Log("查询质检记录")
|
||||||
|
|
||||||
public ResponseEntity<Object> query(@RequestParam Map whereJson, PageQuery page) {
|
public ResponseEntity<Object> query(@RequestParam Map whereJson, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(dasQualityInspectionService.queryAll(whereJson, page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(dasQualityInspectionService.queryAll(whereJson, page)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@Log("新增质检记录")
|
@Log("新增质检记录")
|
||||||
|
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody DasQualityInspection entity) {
|
public ResponseEntity<Object> create(@Validated @RequestBody DasQualityInspection entity) {
|
||||||
dasQualityInspectionService.create(entity);
|
dasQualityInspectionService.create(entity);
|
||||||
return new ResponseEntity<>(HttpStatus.CREATED);
|
return new ResponseEntity<>(HttpStatus.CREATED);
|
||||||
@@ -46,14 +44,12 @@ public class DasQualityInspectionController {
|
|||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@Log("修改质检记录")
|
@Log("修改质检记录")
|
||||||
|
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody DasQualityInspection entity) {
|
public ResponseEntity<Object> update(@Validated @RequestBody DasQualityInspection entity) {
|
||||||
dasQualityInspectionService.update(entity);
|
dasQualityInspectionService.update(entity);
|
||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Log("删除质检记录")
|
@Log("删除质检记录")
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
||||||
dasQualityInspectionService.deleteAll(ids);
|
dasQualityInspectionService.deleteAll(ids);
|
||||||
|
|||||||
@@ -80,4 +80,6 @@ public class MdBaseBrickInfo implements Serializable {
|
|||||||
|
|
||||||
private String workorder_code;
|
private String workorder_code;
|
||||||
|
|
||||||
|
private String record_time;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package org.nl.wms.database.brick.service.impl;
|
package org.nl.wms.database.brick.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
import cn.hutool.core.util.IdUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
@@ -43,6 +44,7 @@ public class MdBaseBrickInfoServiceImpl extends ServiceImpl<MdBaseBrickInfoMappe
|
|||||||
@Override
|
@Override
|
||||||
public IPage<MdBaseBrickInfo> queryAll(Map whereJson, PageQuery page) {
|
public IPage<MdBaseBrickInfo> queryAll(Map whereJson, PageQuery page) {
|
||||||
LambdaQueryWrapper<MdBaseBrickInfo> lam = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<MdBaseBrickInfo> lam = new LambdaQueryWrapper<>();
|
||||||
|
lam.orderByDesc(MdBaseBrickInfo::getRecord_time);
|
||||||
IPage<MdBaseBrickInfo> pages = new Page<>(page.getPage() + 1, page.getSize());
|
IPage<MdBaseBrickInfo> pages = new Page<>(page.getPage() + 1, page.getSize());
|
||||||
mdBaseBrickInfoMapper.selectPage(pages, lam);
|
mdBaseBrickInfoMapper.selectPage(pages, lam);
|
||||||
return pages;
|
return pages;
|
||||||
@@ -124,6 +126,7 @@ public class MdBaseBrickInfoServiceImpl extends ServiceImpl<MdBaseBrickInfoMappe
|
|||||||
brickInfo.setFlatness(dto.getFlatness());
|
brickInfo.setFlatness(dto.getFlatness());
|
||||||
brickInfo.setUnqualified_qty(dto.getUnqualified_qty());
|
brickInfo.setUnqualified_qty(dto.getUnqualified_qty());
|
||||||
brickInfo.setIs_group(false);
|
brickInfo.setIs_group(false);
|
||||||
|
brickInfo.setRecord_time(DateUtil.now());
|
||||||
return brickInfo;
|
return brickInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -953,7 +953,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
? schBasePoint.getPoint_status()
|
? schBasePoint.getPoint_status()
|
||||||
: PointStatusEnum.EMPTY_POINT.getCode();
|
: PointStatusEnum.EMPTY_POINT.getCode();
|
||||||
if ((pointStatus.equals(PointStatusEnum.FULL_POINT.getCode())
|
if ((pointStatus.equals(PointStatusEnum.FULL_POINT.getCode())
|
||||||
&& move.equals(PointStatusEnum.EMPTY_VEHICLE.getCode())) || (pointStatus.equals(move))) {
|
&& move.equals(PointStatusEnum.EMPTY_VEHICLE.getCode()))
|
||||||
|
|| (pointStatus.equals(move))) {
|
||||||
return BaseResponse.responseOk(actionRequest.getRequestNo());
|
return BaseResponse.responseOk(actionRequest.getRequestNo());
|
||||||
}
|
}
|
||||||
// 载具类型不为空,并且不是0的情况,lmsVehicleTypeShift:转成lms的载具类型
|
// 载具类型不为空,并且不是0的情况,lmsVehicleTypeShift:转成lms的载具类型
|
||||||
@@ -969,6 +970,8 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
}
|
}
|
||||||
PointUtils.setUpdateByAcs(schBasePoint);
|
PointUtils.setUpdateByAcs(schBasePoint);
|
||||||
pointService.updateById(schBasePoint);
|
pointService.updateById(schBasePoint);
|
||||||
|
// hint: 特殊处理
|
||||||
|
specialOperation(schBasePoint);
|
||||||
log.info("点位" + schBasePoint.getPoint_code() + "更新之后:{}", schBasePoint);
|
log.info("点位" + schBasePoint.getPoint_code() + "更新之后:{}", schBasePoint);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
@@ -979,6 +982,23 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
return BaseResponse.responseOk(actionRequest.getRequestNo());
|
return BaseResponse.responseOk(actionRequest.getRequestNo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 特殊处理 此处直接针对入窑口02有货解绑入窑口01
|
||||||
|
* @param schBasePoint /
|
||||||
|
*/
|
||||||
|
private void specialOperation(SchBasePoint schBasePoint) {
|
||||||
|
if ( ObjectUtil.isNotEmpty(schBasePoint)
|
||||||
|
&& "RYK02".equals(schBasePoint.getPoint_code())
|
||||||
|
&& PointStatusEnum.EMPTY_VEHICLE.getCode().equals(schBasePoint.getPoint_status())) {
|
||||||
|
// 解锁入窑口01
|
||||||
|
SchBasePoint endPointObj = new SchBasePoint();
|
||||||
|
endPointObj.setIng_task_code("");
|
||||||
|
PointUtils.setUpdateByAcs(endPointObj);
|
||||||
|
pointService.update(endPointObj, new LambdaQueryWrapper<SchBasePoint>()
|
||||||
|
.eq(SchBasePoint::getPoint_code, "RYK01"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BaseResponse applyOneCloth(JSONObject param) {
|
public BaseResponse applyOneCloth(JSONObject param) {
|
||||||
// mark: 上传mes数据
|
// mark: 上传mes数据
|
||||||
|
|||||||
@@ -52,4 +52,6 @@ public class PdmBdProductionProcessTracking implements Serializable {
|
|||||||
private String half_material_code;
|
private String half_material_code;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String raw_material_code;
|
private String raw_material_code;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String material_qty;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
vg.vehicle_code,
|
vg.vehicle_code,
|
||||||
p.point_name,
|
p.point_name,
|
||||||
vg.pcsn,
|
vg.pcsn,
|
||||||
|
vg.material_qty,
|
||||||
w.point_code AS device_code,
|
w.point_code AS device_code,
|
||||||
m.material_code,
|
m.material_code,
|
||||||
m.material_name,
|
m.material_name,
|
||||||
@@ -29,7 +30,9 @@
|
|||||||
<if test="query.begin_time != null">
|
<if test="query.begin_time != null">
|
||||||
AND pt.record_time <![CDATA[>=]]> #{query.begin_time}
|
AND pt.record_time <![CDATA[>=]]> #{query.begin_time}
|
||||||
</if>
|
</if>
|
||||||
|
AND pt.buss_move_id IS NOT NULL
|
||||||
|
AND vg.group_id IS NOT NULL
|
||||||
</where>
|
</where>
|
||||||
ORDER BY pt.buss_move_id, pt.record_time
|
ORDER BY pt.buss_move_id DESC, pt.record_time
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -39,28 +39,24 @@ public class ReportController {
|
|||||||
|
|
||||||
@GetMapping("/inventoryAlert")
|
@GetMapping("/inventoryAlert")
|
||||||
@Log("库存物料提示记录表")
|
@Log("库存物料提示记录表")
|
||||||
|
|
||||||
public ResponseEntity<Object> inventoryAlert(JSONObject json, PageQuery page) {
|
public ResponseEntity<Object> inventoryAlert(JSONObject json, PageQuery page) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/intoKilnReport")
|
@GetMapping("/intoKilnReport")
|
||||||
@Log("入窑记录报表")
|
@Log("入窑记录报表")
|
||||||
|
|
||||||
public ResponseEntity<Object> intoKilnReport(Map json, PageQuery page) {
|
public ResponseEntity<Object> intoKilnReport(Map json, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(reportService.intoKilnReport(json, page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(reportService.intoKilnReport(json, page)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/outKilnReport")
|
@GetMapping("/outKilnReport")
|
||||||
@Log("出窑窑记录报表")
|
@Log("出窑窑记录报表")
|
||||||
|
|
||||||
public ResponseEntity<Object> outKilnReport(Map json, PageQuery page) {
|
public ResponseEntity<Object> outKilnReport(Map json, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(reportService.outKilnReport(json, page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(reportService.outKilnReport(json, page)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/inKilnReport")
|
@GetMapping("/inKilnReport")
|
||||||
@Log("窑内物料实时报表")
|
@Log("窑内物料实时报表")
|
||||||
|
|
||||||
public ResponseEntity<Object> inKilnReport(Map json, PageQuery page) {
|
public ResponseEntity<Object> inKilnReport(Map json, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(reportService.inKilnReport(json, page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(reportService.inKilnReport(json, page)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,13 +12,43 @@ import org.nl.wms.report.service.dao.vo.MaterialTimeoutVo;
|
|||||||
* @Date: 2023/7/21
|
* @Date: 2023/7/21
|
||||||
*/
|
*/
|
||||||
public interface ReportMapper {
|
public interface ReportMapper {
|
||||||
|
/**
|
||||||
|
* 入窑记录
|
||||||
|
* @param pages /
|
||||||
|
* @param query /
|
||||||
|
* @return /
|
||||||
|
*/
|
||||||
IPage<IOKilnReportVo> intoKilnReportByPage(IPage<IOKilnReportVo> pages, JSONObject query);
|
IPage<IOKilnReportVo> intoKilnReportByPage(IPage<IOKilnReportVo> pages, JSONObject query);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出窑记录
|
||||||
|
* @param pages /
|
||||||
|
* @param object /
|
||||||
|
* @return /
|
||||||
|
*/
|
||||||
IPage<IOKilnReportVo> outKilnReportByPage(IPage<IOKilnReportVo> pages, JSONObject object);
|
IPage<IOKilnReportVo> outKilnReportByPage(IPage<IOKilnReportVo> pages, JSONObject object);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 窑内数据
|
||||||
|
* @param pages /
|
||||||
|
* @param object /
|
||||||
|
* @return /
|
||||||
|
*/
|
||||||
IPage<IOKilnReportVo> inKilnReport(IPage<IOKilnReportVo> pages, JSONObject object);
|
IPage<IOKilnReportVo> inKilnReport(IPage<IOKilnReportVo> pages, JSONObject object);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 物料警告
|
||||||
|
* @param pages /
|
||||||
|
* @param object /
|
||||||
|
* @return /
|
||||||
|
*/
|
||||||
IPage<MaterialTimeoutVo> inventoryMaterialTimeoutWarning(IPage<MaterialTimeoutVo> pages, JSONObject object);
|
IPage<MaterialTimeoutVo> inventoryMaterialTimeoutWarning(IPage<MaterialTimeoutVo> pages, JSONObject object);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 滚筒线报表
|
||||||
|
* @param pages /
|
||||||
|
* @param blurry /
|
||||||
|
* @return /
|
||||||
|
*/
|
||||||
IPage<InsideDrumLineVo> insideDrumLineReport(IPage<InsideDrumLineVo> pages, String blurry);
|
IPage<InsideDrumLineVo> insideDrumLineReport(IPage<InsideDrumLineVo> pages, String blurry);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
FROM `sch_base_vehiclematerialgroup` vg
|
FROM `sch_base_vehiclematerialgroup` vg
|
||||||
LEFT JOIN md_base_material m ON m.material_id = vg.material_id
|
LEFT JOIN md_base_material m ON m.material_id = vg.material_id
|
||||||
WHERE vg.into_kiln_time IS NOT NULL
|
WHERE vg.into_kiln_time IS NOT NULL
|
||||||
AND vg.group_bind_material_status = '2'
|
ORDER BY vg.into_kiln_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="outKilnReportByPage" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo">
|
<select id="outKilnReportByPage" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo">
|
||||||
SELECT vg.into_kiln_time,
|
SELECT vg.into_kiln_time,
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
LEFT JOIN md_base_material m ON m.material_id = vg.material_id
|
LEFT JOIN md_base_material m ON m.material_id = vg.material_id
|
||||||
WHERE vg.into_kiln_time IS NOT NULL
|
WHERE vg.into_kiln_time IS NOT NULL
|
||||||
AND vg.out_kiln_time IS NOT NULL
|
AND vg.out_kiln_time IS NOT NULL
|
||||||
AND vg.group_bind_material_status = '2'
|
ORDER BY vg.out_kiln_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="inKilnReport" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo">
|
<select id="inKilnReport" resultType="org.nl.wms.report.service.dao.vo.IOKilnReportVo">
|
||||||
SELECT vg.into_kiln_time,
|
SELECT vg.into_kiln_time,
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
WHERE vg.into_kiln_time IS NOT NULL
|
WHERE vg.into_kiln_time IS NOT NULL
|
||||||
AND vg.out_kiln_time IS NULL
|
AND vg.out_kiln_time IS NULL
|
||||||
AND vg.group_bind_material_status = '2'
|
AND vg.group_bind_material_status = '2'
|
||||||
|
ORDER BY vg.into_kiln_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="inventoryMaterialTimeoutWarning"
|
<select id="inventoryMaterialTimeoutWarning"
|
||||||
resultType="org.nl.wms.report.service.dao.vo.MaterialTimeoutVo">
|
resultType="org.nl.wms.report.service.dao.vo.MaterialTimeoutVo">
|
||||||
@@ -48,7 +49,7 @@
|
|||||||
p.region_name,
|
p.region_name,
|
||||||
ma.material_code,
|
ma.material_code,
|
||||||
ma.material_name,
|
ma.material_name,
|
||||||
vg.instorage_time
|
vg.update_time
|
||||||
FROM `sch_base_point` p
|
FROM `sch_base_point` p
|
||||||
LEFT JOIN sch_base_vehiclematerialgroup vg ON vg.vehicle_code = p.vehicle_code
|
LEFT JOIN sch_base_vehiclematerialgroup vg ON vg.vehicle_code = p.vehicle_code
|
||||||
AND vg.vehicle_type = p.vehicle_type AND vg.group_bind_material_status = '2'
|
AND vg.vehicle_type = p.vehicle_type AND vg.group_bind_material_status = '2'
|
||||||
@@ -56,12 +57,14 @@
|
|||||||
WHERE p.region_code = 'GTPHC'
|
WHERE p.region_code = 'GTPHC'
|
||||||
AND p.point_type = '2'
|
AND p.point_type = '2'
|
||||||
AND p.point_status = '3'
|
AND p.point_status = '3'
|
||||||
AND vg.instorage_time <![CDATA[<=]]> DATE_SUB(NOW(), INTERVAL 30 DAY)
|
AND vg.update_time <![CDATA[<=]]> DATE_SUB(NOW(), INTERVAL 30 DAY)
|
||||||
|
ORDER BY p.point_code
|
||||||
</select>
|
</select>
|
||||||
<select id="insideDrumLineReport" resultType="org.nl.wms.report.service.dao.vo.InsideDrumLineVo">
|
<select id="insideDrumLineReport" resultType="org.nl.wms.report.service.dao.vo.InsideDrumLineVo">
|
||||||
SELECT vg.vehicle_code,
|
SELECT vg.vehicle_code,
|
||||||
vg.pcsn,
|
vg.pcsn,
|
||||||
vg.material_qty,
|
vg.material_qty,
|
||||||
|
vg.instorage_time,
|
||||||
m.material_code,
|
m.material_code,
|
||||||
m.material_name
|
m.material_name
|
||||||
FROM `sch_base_vehiclematerialgroup` vg
|
FROM `sch_base_vehiclematerialgroup` vg
|
||||||
@@ -71,6 +74,6 @@
|
|||||||
<if test="blurry != null">
|
<if test="blurry != null">
|
||||||
AND m.material_code LIKE '%${blurry}%'
|
AND m.material_code LIKE '%${blurry}%'
|
||||||
</if>
|
</if>
|
||||||
ORDER BY vg.update_time DESC
|
ORDER BY vg.instorage_time DESC
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -14,4 +14,5 @@ public class InsideDrumLineVo {
|
|||||||
private String material_qty;
|
private String material_qty;
|
||||||
private String material_code;
|
private String material_code;
|
||||||
private String material_name;
|
private String material_name;
|
||||||
|
private String instorage_time;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,5 +14,5 @@ public class MaterialTimeoutVo {
|
|||||||
private String region_name;
|
private String region_name;
|
||||||
private String material_code;
|
private String material_code;
|
||||||
private String material_name;
|
private String material_name;
|
||||||
private String instorage_time;
|
private String update_time;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ public class SchBasePointServiceImpl extends ServiceImpl<SchBasePointMapper, Sch
|
|||||||
}
|
}
|
||||||
entity.setVehicle_type("");
|
entity.setVehicle_type("");
|
||||||
entity.setVehicle_code("");
|
entity.setVehicle_code("");
|
||||||
entity.setVehicle_qty(0);
|
|
||||||
}
|
}
|
||||||
pointMapper.updateById(entity);
|
pointMapper.updateById(entity);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,8 +69,7 @@ public class HCSSXMLTask extends AbstractTask {
|
|||||||
task.setRemark("入窑口未找到所需点位!");
|
task.setRemark("入窑口未找到所需点位!");
|
||||||
taskService.updateById(task);
|
taskService.updateById(task);
|
||||||
// 消息通知
|
// 消息通知
|
||||||
noticeService.createNotice(task.getTask_code() + " - " + task.getRemark(),
|
noticeService.createNotice(task.getRemark(), task.getConfig_code() + task.getTask_code(),
|
||||||
task.getConfig_code() + task.getTask_code(),
|
|
||||||
NoticeTypeEnum.WARN.getCode());
|
NoticeTypeEnum.WARN.getCode());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -140,10 +139,7 @@ public class HCSSXMLTask extends AbstractTask {
|
|||||||
String endPoint = taskObj.getPoint_code2();
|
String endPoint = taskObj.getPoint_code2();
|
||||||
SchBasePoint endPointObj = pointService.selectByIdLock(endPoint);
|
SchBasePoint endPointObj = pointService.selectByIdLock(endPoint);
|
||||||
if (ObjectUtil.isNotEmpty(endPointObj)) {
|
if (ObjectUtil.isNotEmpty(endPointObj)) {
|
||||||
// 终点解锁
|
// update: 终点解锁 - 解锁由入窑口02上报有货修改
|
||||||
endPointObj.setIng_task_code("");
|
|
||||||
PointUtils.setUpdateByType(endPointObj, taskFinishedType);
|
|
||||||
pointService.updateById(endPointObj);
|
|
||||||
}
|
}
|
||||||
// 任务完成
|
// 任务完成
|
||||||
taskObj.setTask_status(TaskStatus.FINISHED.getCode());
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode());
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
`sch_base_point` p
|
`sch_base_point` p
|
||||||
LEFT JOIN sch_base_point p2 ON p2.point_code = p.parent_point_code
|
LEFT JOIN sch_base_point p2 ON p2.point_code = p.parent_point_code
|
||||||
WHERE p.point_type = '1'
|
WHERE p.point_type = '1'
|
||||||
|
AND p.point_status = '1'
|
||||||
AND p2.point_status = '1'
|
AND p2.point_status = '1'
|
||||||
AND p2.is_used = true
|
AND p2.is_used = true
|
||||||
AND (p.ing_task_code = '' OR p.ing_task_code IS NULL)
|
AND (p.ing_task_code = '' OR p.ing_task_code IS NULL)
|
||||||
|
|||||||
@@ -319,13 +319,13 @@ public class YZSLTask extends AbstractTask {
|
|||||||
bdWorkorder.setReal_qty(NumberUtil.add(realQty, materialQty));
|
bdWorkorder.setReal_qty(NumberUtil.add(realQty, materialQty));
|
||||||
TaskUtils.setWorkOrderUpdateByType(bdWorkorder, taskFinishedType);
|
TaskUtils.setWorkOrderUpdateByType(bdWorkorder, taskFinishedType);
|
||||||
workorderService.updateById(bdWorkorder);
|
workorderService.updateById(bdWorkorder);
|
||||||
// 终点解锁
|
// 终点解锁 - 工单不加急
|
||||||
endPointObj.setIng_task_code("");
|
|
||||||
PointUtils.setUpdateByType(endPointObj, taskFinishedType);
|
|
||||||
if (!bdWorkorder.getIs_urgent()) {
|
if (!bdWorkorder.getIs_urgent()) {
|
||||||
|
endPointObj.setIng_task_code("");
|
||||||
|
PointUtils.setUpdateByType(endPointObj, taskFinishedType);
|
||||||
PointUtils.clearPointAndRetainNum(endPointObj);
|
PointUtils.clearPointAndRetainNum(endPointObj);
|
||||||
|
pointService.updateById(endPointObj);
|
||||||
}
|
}
|
||||||
pointService.updateById(endPointObj);
|
|
||||||
}
|
}
|
||||||
// 任务完成
|
// 任务完成
|
||||||
taskObj.setTask_status(TaskStatus.FINISHED.getCode());
|
taskObj.setTask_status(TaskStatus.FINISHED.getCode());
|
||||||
|
|||||||
@@ -27,7 +27,10 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author: lyd
|
* @Author: lyd
|
||||||
@@ -173,4 +176,14 @@ public class test {
|
|||||||
System.out.println(proOrder.getWorkorder_code() + " - " + proOrder.getWorkorder_status());
|
System.out.println(proOrder.getWorkorder_code() + " - " + proOrder.getWorkorder_status());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testVariableParameter() {
|
||||||
|
this.test01("www", "eee");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void test01(String... ags) {
|
||||||
|
List<String> collect = Arrays.stream(ags).collect(Collectors.toList());
|
||||||
|
System.out.println(collect);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,6 +129,7 @@
|
|||||||
{{ scope.row.is_group ? '已组盘' : '未组盘'}}
|
{{ scope.row.is_group ? '已组盘' : '未组盘'}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="record_time" label="记录时间" :min-width="flexWidth('record_time',crud.data,'组盘标识')" />
|
||||||
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<udOperation
|
<udOperation
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
<el-table-column prop="material_code" label="产品编码" :min-width="flexWidth('material_code',crud.data,'拆垛工位')" />
|
<el-table-column prop="material_code" label="产品编码" :min-width="flexWidth('material_code',crud.data,'拆垛工位')" />
|
||||||
<el-table-column prop="material_name" label="产品名称" :min-width="flexWidth('material_name',crud.data,'分拣工单')" />
|
<el-table-column prop="material_name" label="产品名称" :min-width="flexWidth('material_name',crud.data,'分拣工单')" />
|
||||||
<el-table-column prop="material_qty" label="产品数量" :min-width="flexWidth('material_qty',crud.data,'分拣工单')" />
|
<el-table-column prop="material_qty" label="产品数量" :min-width="flexWidth('material_qty',crud.data,'分拣工单')" />
|
||||||
|
<el-table-column prop="instorage_time" label="进入时间" :min-width="flexWidth('instorage_time',crud.data,'分拣工单')" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<el-table-column prop="region_name" label="区域名称" :min-width="flexWidth('region_name',crud.data,'托盘号')" />
|
<el-table-column prop="region_name" label="区域名称" :min-width="flexWidth('region_name',crud.data,'托盘号')" />
|
||||||
<el-table-column prop="material_code" label="产品编码" :min-width="flexWidth('material_code',crud.data,'拆垛工位')" />
|
<el-table-column prop="material_code" label="产品编码" :min-width="flexWidth('material_code',crud.data,'拆垛工位')" />
|
||||||
<el-table-column prop="material_name" label="产品名称" :min-width="flexWidth('material_name',crud.data,'分拣工单')" />
|
<el-table-column prop="material_name" label="产品名称" :min-width="flexWidth('material_name',crud.data,'分拣工单')" />
|
||||||
<el-table-column prop="instorage_time" label="入库时间" :min-width="flexWidth('instorage_time',crud.data,'分拣工单')" />
|
<el-table-column prop="update_time" label="入库时间" :min-width="flexWidth('update_time',crud.data,'分拣工单')" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
<el-table-column prop="record_time" label="记录时间" :min-width="flexWidth('record_time',crud.data,'记录时间')"/>
|
<el-table-column prop="record_time" label="记录时间" :min-width="flexWidth('record_time',crud.data,'记录时间')"/>
|
||||||
<el-table-column prop="device_code" label="压机号" :min-width="flexWidth('device_code',crud.data,'记录时间')"/>
|
<el-table-column prop="device_code" label="压机号" :min-width="flexWidth('device_code',crud.data,'记录时间')"/>
|
||||||
<el-table-column prop="material_code" label="产品编码" :min-width="flexWidth('material_code',crud.data,'记录时间')"/>
|
<el-table-column prop="material_code" label="产品编码" :min-width="flexWidth('material_code',crud.data,'记录时间')"/>
|
||||||
|
<el-table-column prop="material_qty" label="砖块数量" :min-width="flexWidth('material_qty',crud.data,'记录时间')"/>
|
||||||
<el-table-column prop="pcsn" label="批次" :min-width="flexWidth('pcsn',crud.data,'批次')"/>
|
<el-table-column prop="pcsn" label="批次" :min-width="flexWidth('pcsn',crud.data,'批次')"/>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
|
|||||||
Reference in New Issue
Block a user