mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
新增排单-打包查询-工序加工bug修改
This commit is contained in:
+2
@@ -8,6 +8,8 @@ import java.math.BigDecimal;
|
||||
@Data
|
||||
public class PlateResList {
|
||||
|
||||
@Schema(description = "板材id")
|
||||
private Long plateId;
|
||||
@Schema(description = "生产单id")
|
||||
private Long orderId;
|
||||
@Schema(description = "房间id")
|
||||
|
||||
+1
-1
@@ -321,7 +321,7 @@ public class PlanServiceImpl implements PlanService {
|
||||
queryWrapperX
|
||||
.eq("a.organ_id",getUserOrganId())
|
||||
.eq("a.status",OrderStatusEnum.NO_SORT.getStatus())
|
||||
.likeIfPresent("a.id", "%"+pageReqVO.getOrderId()+"%")
|
||||
.likeIfPresent("a.id", pageReqVO.getOrderId() != null ? pageReqVO.getOrderId().toString() : null)
|
||||
.isNull("opi.item_id")
|
||||
.eqIfPresent("a.customer", pageReqVO.getConsignee())
|
||||
.eqIfPresent("a.custom_order_no", pageReqVO.getDefaultId())
|
||||
|
||||
+2
-2
@@ -29,7 +29,7 @@
|
||||
|
||||
<select id="selectPlateByPlanId"
|
||||
resultType="com.cf.imes.module.executor.controller.admin.plan.vo.PlateResList">
|
||||
select distinct a.order_id, a.plate_no , a.name as plateName,a.is_special_shaped,a.is_sculpt,a.area,a.seal_left,a.seal_right,a.seal_up,a.seal_down, e.material, e.color, a.width, a.height, a.thickness, b.room_id, b.body_id
|
||||
select distinct a.id as plateId,a.order_id, a.plate_no , a.name as plateName,a.is_special_shaped,a.is_sculpt,a.area,a.seal_left,a.seal_right,a.seal_up,a.seal_down, e.material, e.color, a.width, a.height, a.thickness, b.room_id, b.body_id
|
||||
from order_plate a
|
||||
LEFT JOIN order_item b ON a.id = b.plate_id AND a.order_id = b.order_id and a.organ_id = b.organ_id
|
||||
LEFT JOIN order_goods e ON e.id = a.goods_id AND e.order_id = a.order_id and e.organ_id = a.organ_id
|
||||
@@ -295,7 +295,7 @@
|
||||
parameterType="java.lang.Long">
|
||||
|
||||
|
||||
select distinct a.order_id, a.plate_no , a.name as plateName,a.is_special_shaped,a.is_sculpt,a.area,a.seal_left,a.seal_right,a.seal_up,a.seal_down, e.material, e.color, a.width, a.height, a.thickness, b.room_id, b.body_id
|
||||
select distinct a.id as plateId,a.order_id, a.plate_no , a.name as plateName,a.is_special_shaped,a.is_sculpt,a.area,a.seal_left,a.seal_right,a.seal_up,a.seal_down, e.material, e.color, a.width, a.height, a.thickness, b.room_id, b.body_id
|
||||
from order_plate a
|
||||
LEFT JOIN order_item b ON a.id = b.plate_id AND a.order_id = b.order_id and a.organ_id = b.organ_id
|
||||
LEFT JOIN order_goods e ON e.id = a.goods_id AND e.order_id = a.order_id and e.organ_id = a.organ_id
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ public class PackController {
|
||||
|
||||
@GetMapping("/getOrderPlateList")
|
||||
@Operation(summary = "查询多个生产单对应的板材信息")
|
||||
@PreAuthorize("@ss.hasPermission('manage:pack-palte:query')")
|
||||
@PreAuthorize("@ss.hasPermission('manage:pack:create')")
|
||||
public CommonResult<List<PlateDetailsRespVO>> getOrdersPlateList(@Valid @RequestParam List<Long> orderIds) {
|
||||
|
||||
return success(packService.getOrdersPlateList(orderIds));
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ public class PackageDetailsReqVO extends PageParam {
|
||||
|
||||
|
||||
@Schema(description = "包裹状态")
|
||||
private Long packStatus;
|
||||
private Boolean packStatus;
|
||||
|
||||
|
||||
@Schema(description = "包裹编号")
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ public interface ProcessStepItemMapper extends BaseMapperX<OrderProcessStepItemN
|
||||
void updateStatus(@Param("id") Long id);
|
||||
|
||||
|
||||
ProcessStepStatus selectStatusById(@Param("id") Long id,@Param("name") String name, @Param("organId") Long organId);
|
||||
ProcessStepStatus selectStatusById(@Param("id") Long id,@Param("name") String name, @Param("organId") Long organId, @Param("goodsId")Long goodsId);
|
||||
|
||||
|
||||
void updateStemStatus(@Param("processStepId") Long processStepId,@Param("name") String name);
|
||||
|
||||
+4
-1
@@ -2,6 +2,7 @@ package com.cf.imes.module.manage.service.process;
|
||||
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.log.Log;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
||||
@@ -120,7 +121,8 @@ public class ProductionProcessServiceImpl implements ProductionProcessService {
|
||||
String nickname = getLoginUser().getNickname();
|
||||
|
||||
// 根据工序步骤 id 查询当前生产单步骤和明细的生产状态
|
||||
ProcessStepStatus processStepStatuses = processStepItemMapper.selectStatusById(reqVo.getProcessStepId(),reqVo.getName(),getUserOrganId());
|
||||
ProcessStepStatus processStepStatuses = processStepItemMapper.selectStatusById(reqVo.getProcessStepId(),reqVo.getName(),getUserOrganId(),
|
||||
reqVo.getGoodsId() != null ? reqVo.getGoodsId():null);
|
||||
|
||||
|
||||
// 判断生产明细表的状态查询后是否为空
|
||||
@@ -174,6 +176,7 @@ public class ProductionProcessServiceImpl implements ProductionProcessService {
|
||||
processStepMapper.updateStatusById(reqVo.getProcessStepId(),salary);
|
||||
|
||||
}
|
||||
return;
|
||||
|
||||
}
|
||||
try {
|
||||
|
||||
+2
-2
@@ -126,7 +126,7 @@
|
||||
</if>
|
||||
|
||||
<if test="reqVO.plateNo !=null ">
|
||||
and op.plate_no = #{reqVO.plateNo}
|
||||
and op.plate_no like concat('%', #{reqVO.plateNo},'%')
|
||||
</if>
|
||||
|
||||
<if test="reqVO.packStatus !=null ">
|
||||
@@ -134,7 +134,7 @@
|
||||
</if>
|
||||
|
||||
<if test="reqVO.packageNo !=null and reqVO.packageNo != '' ">
|
||||
and opn.package_no= #{reqVO.packageNo}
|
||||
and opn.package_no like concat('%', #{reqVO.packageNo},'%')
|
||||
</if>
|
||||
|
||||
and opn.organ_id = #{organId}
|
||||
|
||||
+4
-1
@@ -64,7 +64,10 @@
|
||||
ops.type as type
|
||||
from order_process_step_item opsi
|
||||
join order_process_step ops on opsi.process_step_id = ops.id and opsi.organ_id = ops.organ_id
|
||||
where opsi.process_step_id = #{id} and opsi.name = #{name} and opsi.organ_id = #{organId};
|
||||
where opsi.process_step_id = #{id} and opsi.name = #{name} and opsi.organ_id = #{organId}
|
||||
<if test="goodsId != null">
|
||||
and opsi.body_id = #{goodsId}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user