26 changed files with 220 additions and 1721 deletions
@ -1,200 +0,0 @@ |
|||
package org.nl.b_lms.sch.point.dao; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.io.Serializable; |
|||
|
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.baomidou.mybatisplus.extension.activerecord.Model; |
|||
|
|||
|
|||
/** |
|||
* {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)实体类 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2024-02-27 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("st_ivt_hotpointivt") |
|||
public class StIvtHotpointivt extends Model<StIvtHotpointivt> { |
|||
|
|||
private static final long serialVersionUID = -7739291296662381393L; |
|||
//@TableId(value = "id", type = IdType.NONE)
|
|||
|
|||
|
|||
/** |
|||
* 库存记录标识 |
|||
*/ |
|||
@TableId(value = "ivt_id", type = IdType.NONE) |
|||
private Long ivt_id; |
|||
|
|||
|
|||
/** |
|||
* 点位编码 |
|||
*/ |
|||
private String point_code; |
|||
|
|||
|
|||
/** |
|||
* 点位状态 |
|||
*/ |
|||
private String point_status; |
|||
|
|||
|
|||
/** |
|||
* 母卷号 |
|||
*/ |
|||
private String container_name; |
|||
|
|||
|
|||
/** |
|||
* 母卷工单标识 |
|||
*/ |
|||
private String workorder_id; |
|||
|
|||
|
|||
/** |
|||
* 母卷轴编码 |
|||
*/ |
|||
private String full_vehicle_code; |
|||
|
|||
|
|||
/** |
|||
* 批次 |
|||
*/ |
|||
private String pcsn; |
|||
|
|||
|
|||
/** |
|||
* 库存数 |
|||
*/ |
|||
private BigDecimal ivt_qty; |
|||
|
|||
|
|||
/** |
|||
* 计量单位标识 |
|||
*/ |
|||
private Long qty_unit_id; |
|||
|
|||
|
|||
/** |
|||
* 入库时间 |
|||
*/ |
|||
private String instorage_time; |
|||
|
|||
|
|||
/** |
|||
* 生产区域 |
|||
*/ |
|||
private String product_area; |
|||
|
|||
|
|||
/** |
|||
* 温度 |
|||
*/ |
|||
private BigDecimal temperature; |
|||
|
|||
|
|||
/** |
|||
* 组别 |
|||
*/ |
|||
private String group_name; |
|||
|
|||
|
|||
/** |
|||
* 位置 |
|||
*/ |
|||
private String point_location; |
|||
|
|||
|
|||
/** |
|||
* 顺序号 |
|||
*/ |
|||
private BigDecimal sort_seq; |
|||
|
|||
|
|||
/** |
|||
* 是否启用 |
|||
*/ |
|||
private String is_used; |
|||
|
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private Long create_id; |
|||
|
|||
|
|||
/** |
|||
* 创建人姓名 |
|||
*/ |
|||
private String create_name; |
|||
|
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String create_time; |
|||
|
|||
|
|||
/** |
|||
* 修改人 |
|||
*/ |
|||
private Long update_optid; |
|||
|
|||
|
|||
/** |
|||
* 修改人姓名 |
|||
*/ |
|||
private String update_optname; |
|||
|
|||
|
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private String update_time; |
|||
|
|||
|
|||
/** |
|||
* 规划 |
|||
*/ |
|||
private String plan; |
|||
|
|||
|
|||
/** |
|||
* 外部编码 |
|||
*/ |
|||
private String ext_code; |
|||
|
|||
|
|||
/** |
|||
* 倒计时 |
|||
*/ |
|||
private String last_time; |
|||
|
|||
|
|||
/** |
|||
* 获取主键值 |
|||
* |
|||
* @return 主键值 |
|||
*/ |
|||
@Override |
|||
protected Serializable pkVal() { |
|||
return this.ivt_id; |
|||
} |
|||
|
|||
} |
|||
|
|||
|
|||
|
@ -1,15 +0,0 @@ |
|||
package org.nl.b_lms.sch.point.dao.mapper; |
|||
|
|||
import org.nl.b_lms.sch.point.dao.StIvtHotpointivt; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
|
|||
/** |
|||
* {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)数据持久层 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2024-01-24 |
|||
*/ |
|||
public interface StIvtHotpointivtMapper extends BaseMapper<StIvtHotpointivt> { |
|||
|
|||
|
|||
} |
@ -1,131 +0,0 @@ |
|||
package org.nl.b_lms.sch.point.dto; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.io.Serializable; |
|||
|
|||
import lombok.*; |
|||
import lombok.Data; |
|||
import lombok.Builder; |
|||
|
|||
|
|||
/** |
|||
* {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)数据传输类 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2024-02-27 |
|||
*/ |
|||
@Data |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class StIvtHotpointivtDto implements Serializable { |
|||
|
|||
/** |
|||
* 库存记录标识 |
|||
*/ |
|||
private Long ivt_id; |
|||
/** |
|||
* 点位编码 |
|||
*/ |
|||
private String point_code; |
|||
/** |
|||
* 点位状态 |
|||
*/ |
|||
private String point_status; |
|||
/** |
|||
* 母卷号 |
|||
*/ |
|||
private String container_name; |
|||
/** |
|||
* 母卷工单标识 |
|||
*/ |
|||
private String workorder_id; |
|||
/** |
|||
* 母卷轴编码 |
|||
*/ |
|||
private String full_vehicle_code; |
|||
/** |
|||
* 批次 |
|||
*/ |
|||
private String pcsn; |
|||
/** |
|||
* 库存数 |
|||
*/ |
|||
private BigDecimal ivt_qty; |
|||
/** |
|||
* 计量单位标识 |
|||
*/ |
|||
private Long qty_unit_id; |
|||
/** |
|||
* 入库时间 |
|||
*/ |
|||
private String instorage_time; |
|||
/** |
|||
* 生产区域 |
|||
*/ |
|||
private String product_area; |
|||
/** |
|||
* 温度 |
|||
*/ |
|||
private BigDecimal temperature; |
|||
/** |
|||
* 组别 |
|||
*/ |
|||
private String group_name; |
|||
/** |
|||
* 位置 |
|||
*/ |
|||
private String point_location; |
|||
/** |
|||
* 顺序号 |
|||
*/ |
|||
private BigDecimal sort_seq; |
|||
/** |
|||
* 是否启用 |
|||
*/ |
|||
private String is_used; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private Long create_id; |
|||
/** |
|||
* 创建人姓名 |
|||
*/ |
|||
private String create_name; |
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private String create_time; |
|||
/** |
|||
* 修改人 |
|||
*/ |
|||
private Long update_optid; |
|||
/** |
|||
* 修改人姓名 |
|||
*/ |
|||
private String update_optname; |
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private String update_time; |
|||
/** |
|||
* 规划 |
|||
*/ |
|||
private String plan; |
|||
/** |
|||
* 外部编码 |
|||
*/ |
|||
private String ext_code; |
|||
/** |
|||
* 倒计时 |
|||
*/ |
|||
private String last_time; |
|||
|
|||
} |
|||
|
|||
|
|||
|
@ -1,129 +0,0 @@ |
|||
package org.nl.b_lms.sch.point.dto; |
|||
|
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
import lombok.Data; |
|||
import lombok.*; |
|||
import lombok.EqualsAndHashCode; |
|||
import org.nl.common.domain.query.BaseQuery; |
|||
import org.nl.b_lms.sch.point.dao.StIvtHotpointivt; |
|||
import org.nl.b_lms.sch.point.dto.StIvtHotpointivtVO; |
|||
|
|||
/** |
|||
* {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)查询参数类 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2024-02-27 |
|||
*/ |
|||
@Data |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
@EqualsAndHashCode(callSuper = true) |
|||
public class StIvtHotpointivtVO extends BaseQuery<StIvtHotpointivt> { |
|||
/** |
|||
* 库存记录标识 |
|||
*/ |
|||
private Long ivt_id; |
|||
/** |
|||
* 点位编码 |
|||
*/ |
|||
private String point_code; |
|||
/** |
|||
* 点位状态 |
|||
*/ |
|||
private String point_status; |
|||
/** |
|||
* 母卷号 |
|||
*/ |
|||
private String container_name; |
|||
/** |
|||
* 母卷工单标识 |
|||
*/ |
|||
private String workorder_id; |
|||
/** |
|||
* 母卷轴编码 |
|||
*/ |
|||
private String full_vehicle_code; |
|||
/** |
|||
* 批次 |
|||
*/ |
|||
private String pcsn; |
|||
/** |
|||
* 库存数 |
|||
*/ |
|||
private BigDecimal ivt_qty; |
|||
/** |
|||
* 计量单位标识 |
|||
*/ |
|||
private Long qty_unit_id; |
|||
/** |
|||
* 入库时间 |
|||
*/ |
|||
private String instorage_time; |
|||
/** |
|||
* 生产区域 |
|||
*/ |
|||
private String product_area; |
|||
/** |
|||
* 温度 |
|||
*/ |
|||
private BigDecimal temperature; |
|||
/** |
|||
* 组别 |
|||
*/ |
|||
private String group_name; |
|||
/** |
|||
* 位置 |
|||
*/ |
|||
private String point_location; |
|||
/** |
|||
* 顺序号 |
|||
*/ |
|||
private BigDecimal sort_seq; |
|||
/** |
|||
* 是否启用 |
|||
*/ |
|||
private String is_used; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private Long create_id; |
|||
/** |
|||
* 创建人姓名 |
|||
*/ |
|||
private String create_name; |
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private String create_time; |
|||
/** |
|||
* 修改人 |
|||
*/ |
|||
private Long update_optid; |
|||
/** |
|||
* 修改人姓名 |
|||
*/ |
|||
private String update_optname; |
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private String update_time; |
|||
/** |
|||
* 规划 |
|||
*/ |
|||
private String plan; |
|||
/** |
|||
* 外部编码 |
|||
*/ |
|||
private String ext_code; |
|||
/** |
|||
* 倒计时 |
|||
*/ |
|||
private String last_time; |
|||
} |
@ -1,57 +0,0 @@ |
|||
package org.nl.b_lms.sch.point.service; |
|||
|
|||
import org.nl.b_lms.sch.point.dao.StIvtHotpointivt; |
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
|
|||
import java.util.Map; |
|||
import java.util.Set; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import org.nl.common.domain.query.PageQuery; |
|||
|
|||
|
|||
/** |
|||
* {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)服务接口层 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2024-01-24 |
|||
*/ |
|||
public interface IstIvtHotpointivtService extends IService<StIvtHotpointivt> { |
|||
|
|||
|
|||
/** |
|||
* 查询数据分页 |
|||
* |
|||
* @param whereJson 查询条件 |
|||
* @param pageable 分页参数 |
|||
* @return IPage<StIvtHotpointivt> |
|||
*/ |
|||
IPage<StIvtHotpointivt> queryAll(Map whereJson, PageQuery pageable); |
|||
|
|||
|
|||
/** |
|||
* 创建 |
|||
* |
|||
* @param entity / |
|||
*/ |
|||
void create(StIvtHotpointivt entity); |
|||
|
|||
|
|||
/** |
|||
* 编辑 |
|||
* |
|||
* @param entity / |
|||
*/ |
|||
void update(StIvtHotpointivt entity); |
|||
|
|||
/** |
|||
* 多选删除 |
|||
* |
|||
* @param ids / |
|||
*/ |
|||
void deleteAll(Set<String> ids); |
|||
|
|||
|
|||
} |
|||
|
|||
|
@ -1,105 +0,0 @@ |
|||
package org.nl.b_lms.sch.point.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import org.nl.b_lms.sch.point.dao.StIvtHotpointivt; |
|||
import org.nl.b_lms.sch.point.dao.mapper.StIvtHotpointivtMapper; |
|||
import org.nl.b_lms.sch.point.service.IstIvtHotpointivtService; |
|||
import cn.hutool.core.date.DateUtil; |
|||
import org.nl.common.utils.SecurityUtils; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import org.springframework.stereotype.Service; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import org.nl.common.domain.query.PageQuery; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.Map; |
|||
import java.util.Set; |
|||
|
|||
|
|||
/** |
|||
* {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)服务实现层 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2024-01-24 |
|||
*/ |
|||
@Service("stIvtHotpointivtService") |
|||
public class StIvtHotpointivtServiceImpl extends ServiceImpl<StIvtHotpointivtMapper, StIvtHotpointivt> implements IstIvtHotpointivtService { |
|||
|
|||
|
|||
@Resource |
|||
private StIvtHotpointivtMapper stIvtHotpointivtMapper; |
|||
|
|||
|
|||
/** |
|||
* 查询数据分页 |
|||
* |
|||
* @param whereJson 查询条件 |
|||
* @param page 分页参数 |
|||
*/ |
|||
@Override |
|||
public IPage<StIvtHotpointivt> queryAll(Map whereJson, PageQuery page) { |
|||
return stIvtHotpointivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper<StIvtHotpointivt>() |
|||
.lambda()); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 创建 |
|||
* |
|||
* @param entity 对象实体 |
|||
*/ |
|||
@Override |
|||
public void create(StIvtHotpointivt entity) { |
|||
stIvtHotpointivtMapper.insert(getBasicInfo(entity, true)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 编辑 |
|||
* |
|||
* @param entity 对象实体 |
|||
*/ |
|||
@Override |
|||
public void update(StIvtHotpointivt entity) { |
|||
// StIvtHotpointivt dto = stIvtHotpointivtMapper.selectById(entity.getId);
|
|||
// if (dto == null) {
|
|||
// throw new BadRequestException("不存在该数据!");
|
|||
// }
|
|||
stIvtHotpointivtMapper.updateById(getBasicInfo(entity, false)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 多选删除 |
|||
* |
|||
* @param ids 多个Id主键 |
|||
*/ |
|||
@Override |
|||
public void deleteAll(Set<String> ids) { |
|||
// 物理删除
|
|||
stIvtHotpointivtMapper.deleteBatchIds(ids); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 获取实体基础信息 |
|||
* |
|||
* @param entity 对象实体 |
|||
* @param isCreate 是否创建 |
|||
*/ |
|||
private StIvtHotpointivt getBasicInfo(StIvtHotpointivt entity, boolean isCreate) { |
|||
// if (isCreate) {
|
|||
// entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId()));
|
|||
// entity.setCreate_name(SecurityUtils.getCurrentNickName());
|
|||
// entity.setCreate_time(DateUtil.now());
|
|||
// }
|
|||
// entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId()));
|
|||
// entity.setUpdate_optname(SecurityUtils.getCurrentNickName());
|
|||
// entity.setUpdate_time(DateUtil.now());
|
|||
return entity; |
|||
} |
|||
|
|||
|
|||
} |
|||
|
@ -1,14 +0,0 @@ |
|||
package org.nl.wms.pda.mps.service.mapper; |
|||
|
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
|
|||
/** |
|||
* @Author: lyd |
|||
* @Description: mapper接口 |
|||
* @Date: 2023/5/23 |
|||
*/ |
|||
public interface HotMapper extends BaseMapper<JSONObject> { |
|||
|
|||
void updateHotByObject(JSONObject object); |
|||
} |
@ -1,17 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="org.nl.wms.pda.mps.service.mapper.HotMapper"> |
|||
<update id="updateHotByObject" parameterType="com.alibaba.fastjson.JSONObject"> |
|||
UPDATE st_ivt_hotpointivt |
|||
SET point_status = #{point_status} |
|||
, container_name = #{container_name} |
|||
, workorder_id = #{workorder_id} |
|||
, ivt_qty = #{ivt_qty} |
|||
, instorage_time = #{instorage_time} |
|||
, update_optid = #{update_optid} |
|||
, update_optname = #{update_optname} |
|||
, update_time = #{update_time} |
|||
WHERE point_code = #{point_code} |
|||
</update> |
|||
|
|||
</mapper> |
@ -0,0 +1,9 @@ |
|||
package org.nl.wms.pdm.ivt.hotpoint.service.dao.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import org.nl.wms.pdm.ivt.hotpoint.service.dao.StIvtHotregioniomst; |
|||
|
|||
public interface HotregioniomstMappper extends BaseMapper<StIvtHotregioniomst> { |
|||
|
|||
|
|||
} |
@ -1,138 +0,0 @@ |
|||
package org.nl.wms.pdm.ivt.hotpoint.service.dto; |
|||
|
|||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
@Data |
|||
public class HotPointIvtDto implements Serializable { |
|||
/** 库存记录标识 */ |
|||
/** |
|||
* 防止精度丢失 |
|||
*/ |
|||
@JsonSerialize(using = ToStringSerializer.class) |
|||
private Long ivt_id; |
|||
|
|||
/** |
|||
* 点位编码 |
|||
*/ |
|||
private String point_code; |
|||
|
|||
/** |
|||
* 点位状态 |
|||
*/ |
|||
private String point_status; |
|||
|
|||
/** |
|||
* 母卷号 |
|||
*/ |
|||
private String container_name; |
|||
|
|||
/** |
|||
* 母卷工单标识 |
|||
*/ |
|||
private String workorder_id; |
|||
|
|||
/** |
|||
* 母卷轴编码 |
|||
*/ |
|||
private String full_vehicle_code; |
|||
|
|||
/** |
|||
* 批次 |
|||
*/ |
|||
private String pcsn; |
|||
|
|||
/** |
|||
* 库存数 |
|||
*/ |
|||
private BigDecimal ivt_qty; |
|||
|
|||
/** |
|||
* 计量单位标识 |
|||
*/ |
|||
private Long qty_unit_id; |
|||
|
|||
/** |
|||
* 入库时间 |
|||
*/ |
|||
private String instorage_time; |
|||
|
|||
/** |
|||
* 生产区域 |
|||
*/ |
|||
private String product_area; |
|||
|
|||
/** |
|||
* 温度 |
|||
*/ |
|||
private BigDecimal temperature; |
|||
|
|||
/** |
|||
* 组别 |
|||
*/ |
|||
private String group_name; |
|||
|
|||
/** |
|||
* 位置 |
|||
*/ |
|||
private String point_location; |
|||
|
|||
/** |
|||
* 顺序号 |
|||
*/ |
|||
private BigDecimal sort_seq; |
|||
|
|||
/** |
|||
* 是否启用 |
|||
*/ |
|||
private String is_used; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String create_id; |
|||
|
|||
/** |
|||
* 创建人姓名 |
|||
*/ |
|||
private String create_name; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private String create_time; |
|||
|
|||
/** |
|||
* 修改人 |
|||
*/ |
|||
private String update_optid; |
|||
|
|||
/** |
|||
* 修改人姓名 |
|||
*/ |
|||
private String update_optname; |
|||
|
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private String update_time; |
|||
|
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private String last_time; |
|||
|
|||
/** |
|||
* 是否删除 |
|||
*/ |
|||
private String is_delete; |
|||
} |
@ -1,80 +0,0 @@ |
|||
//package org.nl.wms.pdm.ivt.rest;
|
|||
//
|
|||
//
|
|||
//import com.alibaba.fastjson.JSONObject;
|
|||
//import lombok.RequiredArgsConstructor;
|
|||
//import lombok.extern.slf4j.Slf4j;
|
|||
//import org.nl.modules.logging.annotation.Log;
|
|||
//import org.nl.wms.pdm.ivt.service.HotPointIvtService;
|
|||
//import org.nl.wms.pdm.ivt.service.dto.HotPointIvtDto;
|
|||
//import org.springframework.data.domain.Pageable;
|
|||
//import org.springframework.http.HttpStatus;
|
|||
//import org.springframework.http.ResponseEntity;
|
|||
//import org.springframework.validation.annotation.Validated;
|
|||
//import org.springframework.web.bind.annotation.*;
|
|||
//
|
|||
//import java.util.Map;
|
|||
//
|
|||
///**
|
|||
// * @author lyd
|
|||
// * @date 2022-10-09
|
|||
// **/
|
|||
//@RestController
|
|||
//@RequiredArgsConstructor
|
|||
//
|
|||
//@RequestMapping("/api/hotpointivt")
|
|||
//@Slf4j
|
|||
//public class HotPointIvtController {
|
|||
//
|
|||
// private final HotPointIvtService hotpointivtService;
|
|||
//
|
|||
// @GetMapping
|
|||
// @Log("查询烘烤区点位库存")
|
|||
//
|
|||
// //@SaCheckPermission("@el.check('hotpointivt:list')")
|
|||
// public ResponseEntity<Object> query(@RequestParam Map whereJson, Pageable page) {
|
|||
// return new ResponseEntity<>(hotpointivtService.queryAll(whereJson, page), HttpStatus.OK);
|
|||
// }
|
|||
//
|
|||
// @PostMapping
|
|||
// @Log("新增烘烤区点位库存")
|
|||
//
|
|||
// //@SaCheckPermission("@el.check('hotpointivt:add')")
|
|||
// public ResponseEntity<Object> create(@Validated @RequestBody HotPointIvtDto dto) {
|
|||
// hotpointivtService.create(dto);
|
|||
// return new ResponseEntity<>(HttpStatus.CREATED);
|
|||
// }
|
|||
//
|
|||
// @PutMapping
|
|||
// @Log("修改烘烤区点位库存")
|
|||
//
|
|||
// //@SaCheckPermission("@el.check('hotpointivt:edit')")
|
|||
// public ResponseEntity<Object> update(@Validated @RequestBody HotPointIvtDto dto) {
|
|||
// hotpointivtService.update(dto);
|
|||
// return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
|||
// }
|
|||
//
|
|||
// @Log("删除烘烤区点位库存")
|
|||
//
|
|||
// //@SaCheckPermission("@el.check('hotpointivt:del')")
|
|||
// @DeleteMapping
|
|||
// public ResponseEntity<Object> delete(@RequestBody Long[] ids) {
|
|||
// hotpointivtService.deleteAll(ids);
|
|||
// return new ResponseEntity<>(HttpStatus.OK);
|
|||
// }
|
|||
//
|
|||
// @GetMapping("/taskDtlQuery")
|
|||
// @Log("查询烘烤任务明细")
|
|||
//
|
|||
// public ResponseEntity<Object> taskDtlQuery(@RequestParam Map whereJson, Pageable page) {
|
|||
// return new ResponseEntity<>(hotpointivtService.taskDtlQuery(whereJson, page), HttpStatus.OK);
|
|||
// }
|
|||
//
|
|||
// @PostMapping("/uploadMes")
|
|||
// @Log("手动回传MES")
|
|||
//
|
|||
// public ResponseEntity<Object> uploadMes(@RequestBody JSONObject form) {
|
|||
// hotpointivtService.uploadMes(form);
|
|||
// return new ResponseEntity<>(HttpStatus.OK);
|
|||
// }
|
|||
//}
|
@ -1,83 +0,0 @@ |
|||
//package org.nl.wms.pdm.ivt.service;
|
|||
//
|
|||
//import com.alibaba.fastjson.JSONObject;
|
|||
//import org.nl.wms.pdm.ivt.service.dto.HotPointIvtDto;
|
|||
//import org.springframework.data.domain.Pageable;
|
|||
//
|
|||
//import java.util.List;
|
|||
//import java.util.Map;
|
|||
//
|
|||
///**
|
|||
// * @author lyd
|
|||
// * @description 服务接口
|
|||
// * @date 2022-10-09
|
|||
// **/
|
|||
//public interface HotPointIvtService {
|
|||
//
|
|||
// /**
|
|||
// * 查询数据分页
|
|||
// *
|
|||
// * @param whereJson 条件
|
|||
// * @param page 分页参数
|
|||
// * @return Map<String, Object>
|
|||
// */
|
|||
// Map<String, Object> queryAll(Map whereJson, Pageable page);
|
|||
//
|
|||
// /**
|
|||
// * 查询所有数据不分页
|
|||
// *
|
|||
// * @param whereJson 条件参数
|
|||
// * @return List<HotpointivtDto>
|
|||
// */
|
|||
// List<HotPointIvtDto> queryAll(Map whereJson);
|
|||
//
|
|||
// /**
|
|||
// * 根据ID查询
|
|||
// *
|
|||
// * @param ivt_id ID
|
|||
// * @return Hotpointivt
|
|||
// */
|
|||
// HotPointIvtDto findById(Long ivt_id);
|
|||
//
|
|||
// /**
|
|||
// * 根据编码查询
|
|||
// *
|
|||
// * @param code code
|
|||
// * @return Hotpointivt
|
|||
// */
|
|||
// HotPointIvtDto findByCode(String code);
|
|||
//
|
|||
//
|
|||
// /**
|
|||
// * 创建
|
|||
// *
|
|||
// * @param dto /
|
|||
// */
|
|||
// void create(HotPointIvtDto dto);
|
|||
//
|
|||
// /**
|
|||
// * 编辑
|
|||
// *
|
|||
// * @param dto /
|
|||
// */
|
|||
// void update(HotPointIvtDto dto);
|
|||
//
|
|||
// /**
|
|||
// * 多选删除
|
|||
// *
|
|||
// * @param ids /
|
|||
// */
|
|||
// void deleteAll(Long[] ids);
|
|||
//
|
|||
// /**
|
|||
// * 任务明细分页查询
|
|||
// *
|
|||
// * @param whereJson 条件
|
|||
// * @param page 分页参数
|
|||
// * @return Map<String, Object>
|
|||
// */
|
|||
// Map<String, Object> taskDtlQuery(Map whereJson, Pageable page);
|
|||
//
|
|||
// void uploadMes(JSONObject form);
|
|||
//
|
|||
//}
|
@ -1,134 +0,0 @@ |
|||
//package org.nl.wms.pdm.ivt.service.dto;
|
|||
//
|
|||
//import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|||
//import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|||
//import lombok.Data;
|
|||
//
|
|||
//import java.io.Serializable;
|
|||
//import java.math.BigDecimal;
|
|||
//
|
|||
///**
|
|||
// * @author lyd
|
|||
// * @description /
|
|||
// * @date 2022-10-09
|
|||
// **/
|
|||
//@Data
|
|||
//public class HotPointIvtDto implements Serializable {
|
|||
//
|
|||
// /** 库存记录标识 */
|
|||
// /**
|
|||
// * 防止精度丢失
|
|||
// */
|
|||
// @JsonSerialize(using = ToStringSerializer.class)
|
|||
// private Long ivt_id;
|
|||
//
|
|||
// /**
|
|||
// * 点位编码
|
|||
// */
|
|||
// private String point_code;
|
|||
//
|
|||
// /**
|
|||
// * 点位状态
|
|||
// */
|
|||
// private String point_status;
|
|||
//
|
|||
// /**
|
|||
// * 母卷号
|
|||
// */
|
|||
// private String container_name;
|
|||
//
|
|||
// /**
|
|||
// * 母卷工单标识
|
|||
// */
|
|||
// private String workorder_id;
|
|||
//
|
|||
// /**
|
|||
// * 母卷轴编码
|
|||
// */
|
|||
// private String full_vehicle_code;
|
|||
//
|
|||
// /**
|
|||
// * 批次
|
|||
// */
|
|||
// private String pcsn;
|
|||
//
|
|||
// /**
|
|||
// * 库存数
|
|||
// */
|
|||
// private BigDecimal ivt_qty;
|
|||
//
|
|||
// /**
|
|||
// * 计量单位标识
|
|||
// */
|
|||
// private Long qty_unit_id;
|
|||
//
|
|||
// /**
|
|||
// * 入库时间
|
|||
// */
|
|||
// private String instorage_time;
|
|||
//
|
|||
// /**
|
|||
// * 生产区域
|
|||
// */
|
|||
// private String product_area;
|
|||
//
|
|||
// /**
|
|||
// * 温度
|
|||
// */
|
|||
// private BigDecimal temperature;
|
|||
//
|
|||
// /**
|
|||
// * 组别
|
|||
// */
|
|||
// private String group_name;
|
|||
//
|
|||
// /**
|
|||
// * 位置
|
|||
// */
|
|||
// private String point_location;
|
|||
//
|
|||
// /**
|
|||
// * 顺序号
|
|||
// */
|
|||
// private BigDecimal sort_seq;
|
|||
//
|
|||
// /**
|
|||
// * 是否启用
|
|||
// */
|
|||
// private String is_used;
|
|||
//
|
|||
// /**
|
|||
// * 备注
|
|||
// */
|
|||
// private String remark;
|
|||
//
|
|||
// /**
|
|||
// * 创建人
|
|||
// */
|
|||
// private String create_id;
|
|||
//
|
|||
// /**
|
|||
// * 创建人姓名
|
|||
// */
|
|||
// private String create_name;
|
|||
//
|
|||
// /**
|
|||
// * 创建时间
|
|||
// */
|
|||
// private String create_time;
|
|||
//
|
|||
// /**
|
|||
// * 修改人
|
|||
// */
|
|||
// private String update_optid;
|
|||
//
|
|||
// /**
|
|||
// * 修改人姓名
|
|||
// */
|
|||
// private String update_optname;
|
|||
//
|
|||
// /**
|
|||
// * 修改时间
|
|||
// */
|
|||
// private String update_time;
|
|||
//}
|
@ -1,262 +0,0 @@ |
|||
//package org.nl.wms.pdm.ivt.service.impl;
|
|||
//
|
|||
//
|
|||
//import cn.hutool.core.date.DateUtil;
|
|||
//import cn.hutool.core.map.MapUtil;
|
|||
//import cn.hutool.core.util.IdUtil;
|
|||
//import cn.hutool.core.util.ObjectUtil;
|
|||
//import com.alibaba.fastjson.JSON;
|
|||
//import com.alibaba.fastjson.JSONArray;
|
|||
//import com.alibaba.fastjson.JSONObject;
|
|||
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||
//import lombok.RequiredArgsConstructor;
|
|||
//import lombok.extern.slf4j.Slf4j;
|
|||
//import org.nl.common.utils.SecurityUtils;
|
|||
//import org.nl.modules.common.exception.BadRequestException;
|
|||
//import org.nl.modules.common.utils.RedisUtils;
|
|||
//import org.nl.modules.wql.WQL;
|
|||
//import org.nl.modules.wql.core.bean.WQLObject;
|
|||
//import org.nl.modules.wql.util.SpringContextHolder;
|
|||
//import org.nl.modules.wql.util.WqlUtil;
|
|||
//import org.nl.system.service.param.impl.SysParamServiceImpl;
|
|||
//import org.nl.wms.basedata.master.interfaceback.service.dao.InterfaceBack;
|
|||
//import org.nl.wms.basedata.master.interfaceback.service.dao.mapper.InterfaceBackMapper;
|
|||
//import org.nl.wms.basedata.st.areapermissions.service.IUserAreaPermissionService;
|
|||
//import org.nl.wms.ext.mes.service.LmsToMesService;
|
|||
//import org.nl.wms.pdm.ivt.service.HotPointIvtService;
|
|||
//import org.nl.wms.pdm.ivt.service.dto.HotPointIvtDto;
|
|||
//import org.springframework.beans.factory.annotation.Autowired;
|
|||
//import org.springframework.data.domain.Pageable;
|
|||
//import org.springframework.stereotype.Service;
|
|||
//import org.springframework.transaction.annotation.Transactional;
|
|||
//
|
|||
//import java.util.HashMap;
|
|||
//import java.util.List;
|
|||
//import java.util.Map;
|
|||
//
|
|||
///**
|
|||
// * @author lyd
|
|||
// * @description 服务实现
|
|||
// * @date 2022-10-09
|
|||
// **/
|
|||
//@Service
|
|||
//@RequiredArgsConstructor
|
|||
//@Slf4j
|
|||
//public class HotPointIvtServiceImpl implements HotPointIvtService {
|
|||
// @Autowired
|
|||
// private InterfaceBackMapper interfaceBackMapper;
|
|||
// @Autowired
|
|||
// private RedisUtils redisUtils;
|
|||
// @Autowired
|
|||
// IUserAreaPermissionService userAreaPermissionService;
|
|||
// @Override
|
|||
// public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
|||
// //获取人员对应的区域
|
|||
// String in_area_id = userAreaPermissionService.getInArea();
|
|||
// HashMap map = new HashMap();
|
|||
// map.put("flag", "1");
|
|||
// if (whereJson.get("point_code") != null) {
|
|||
// map.put("point_code", "%" + whereJson.get("point_code") + "%");
|
|||
// }
|
|||
// map.put("point_status", whereJson.get("point_status"));
|
|||
// map.put("product_area", whereJson.get("product_area"));
|
|||
// map.put("is_used", whereJson.get("is_used"));
|
|||
// map.put("begin_time", whereJson.get("begin_time"));
|
|||
// map.put("end_time", whereJson.get("end_time"));
|
|||
// map.put("point_location", whereJson.get("point_location"));
|
|||
//
|
|||
// if (ObjectUtil.isNotEmpty(in_area_id)) {
|
|||
// map.put("in_area_id", in_area_id);
|
|||
// }
|
|||
// JSONObject json = WQL.getWO("ST_IVT_HOTPOINTIVT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "product_area,point_code");
|
|||
// JSONArray rows = json.getJSONArray("content");
|
|||
// JSONArray new_rows = new JSONArray();
|
|||
// for (int i = 0; i < rows.size(); i++) {
|
|||
// JSONObject row = rows.getJSONObject(i);
|
|||
// String temperature = (String) redisUtils.hget(row.getString("point_code"), "temperature");
|
|||
// String last_time = (String) redisUtils.hget(row.getString("point_code"), "last_time");
|
|||
// row.put("temperature", temperature);
|
|||
// row.put("last_time", last_time);
|
|||
// new_rows.add(row);
|
|||
// }
|
|||
// json.put("content", new_rows);
|
|||
// return json;
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// public List<HotPointIvtDto> queryAll(Map whereJson) {
|
|||
// WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
|||
// JSONArray arr = wo.query().getResultJSONArray(0);
|
|||
// if (ObjectUtil.isNotEmpty(arr)) {
|
|||
// return arr.toJavaList(HotPointIvtDto.class);
|
|||
// }
|
|||
// return null;
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// public HotPointIvtDto findById(Long ivt_id) {
|
|||
// WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
|||
// JSONObject json = wo.query("ivt_id = '" + ivt_id + "'").uniqueResult(0);
|
|||
// if (ObjectUtil.isNotEmpty(json)) {
|
|||
// return json.toJavaObject(HotPointIvtDto.class);
|
|||
// }
|
|||
// return null;
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// public HotPointIvtDto findByCode(String code) {
|
|||
// WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
|||
// JSONObject json = wo.query("code ='" + code + "'").uniqueResult(0);
|
|||
// if (ObjectUtil.isNotEmpty(json)) {
|
|||
// return json.toJavaObject(HotPointIvtDto.class);
|
|||
// }
|
|||
// return null;
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// @Transactional(rollbackFor = Exception.class)
|
|||
// public void create(HotPointIvtDto dto) {
|
|||
// String currentUserId = SecurityUtils.getCurrentUserId();
|
|||
// String nickName = SecurityUtils.getCurrentNickName();
|
|||
// String now = DateUtil.now();
|
|||
//
|
|||
// dto.setIvt_id(IdUtil.getSnowflake(1, 1).nextId());
|
|||
// dto.setCreate_id(currentUserId);
|
|||
// dto.setCreate_name(nickName);
|
|||
// dto.setUpdate_optid(currentUserId);
|
|||
// dto.setUpdate_optname(nickName);
|
|||
// dto.setUpdate_time(now);
|
|||
// dto.setCreate_time(now);
|
|||
//
|
|||
// WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
|||
// JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
|
|||
// wo.insert(json);
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// @Transactional(rollbackFor = Exception.class)
|
|||
// public void update(HotPointIvtDto dto) {
|
|||
// HotPointIvtDto entity = this.findById(dto.getIvt_id());
|
|||
// if (entity == null) {
|
|||
// throw new BadRequestException("被删除或无权限,操作失败!");
|
|||
// }
|
|||
//
|
|||
// String currentUserId = SecurityUtils.getCurrentUserId();
|
|||
// String nickName = SecurityUtils.getCurrentNickName();
|
|||
//
|
|||
// String now = DateUtil.now();
|
|||
// dto.setUpdate_time(now);
|
|||
// dto.setUpdate_optid(currentUserId);
|
|||
// dto.setUpdate_optname(nickName);
|
|||
//
|
|||
// WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
|||
// JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
|
|||
// if (!json.containsKey("temperature")) {
|
|||
// json.put("temperature", null);
|
|||
// }
|
|||
// wo.update(json);
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// @Transactional(rollbackFor = Exception.class)
|
|||
// public void deleteAll(Long[] ids) {
|
|||
// String currentUserId = SecurityUtils.getCurrentUserId();
|
|||
// String nickName = SecurityUtils.getCurrentNickName();
|
|||
// String now = DateUtil.now();
|
|||
//
|
|||
// WQLObject wo = WQLObject.getWQLObject("st_ivt_hotpointivt");
|
|||
// for (Long ivt_id : ids) {
|
|||
// JSONObject param = new JSONObject();
|
|||
// param.put("ivt_id", String.valueOf(ivt_id));
|
|||
// param.put("is_delete", "1");
|
|||
// param.put("update_optid", currentUserId);
|
|||
// param.put("update_optname", nickName);
|
|||
// param.put("update_time", now);
|
|||
// wo.update(param);
|
|||
// }
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// public void uploadMes(JSONObject form) {
|
|||
// String flag = form.getString("flag");
|
|||
//
|
|||
// LmsToMesService lmsToMesService = SpringContextHolder.getBean(LmsToMesService.class);
|
|||
// // 将入烘箱信息发送给mes
|
|||
// JSONObject param = new JSONObject();
|
|||
// String userName = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("MES_USERNAME").getValue();
|
|||
// String passWord = SpringContextHolder.getBean(SysParamServiceImpl.class).findByCode("MES_PASSWORD").getValue();
|
|||
// param.put("iContainerName", form.getString("container_name"));
|
|||
// param.put("iResourceName", form.getString("ext_code"));
|
|||
// param.put("UserName", userName);
|
|||
// param.put("PassWord", passWord);
|
|||
//
|
|||
// //入箱回传
|
|||
// if ("1".equals(flag)) {
|
|||
// //判断该接口是否需要回传
|
|||
// param.put("iMoveInDate", DateUtil.now());
|
|||
// param.put("iPlanBakingTemperature", form.getDoubleValue("temperature"));
|
|||
// param.put("iPlanBakingTimer", form.getDoubleValue("oven_time"));
|
|||
//
|
|||
// LambdaQueryWrapper<InterfaceBack> lam = new LambdaQueryWrapper<>();
|
|||
// lam.eq(InterfaceBack::getInterface_name, "momRollBakeInBound");
|
|||
// lam.eq(InterfaceBack::getIs_back, "1");
|
|||
// InterfaceBack back_jo = interfaceBackMapper.selectOne(lam);
|
|||
// if (ObjectUtil.isNotEmpty(back_jo)) {
|
|||
// lmsToMesService.momRollBakeInBound(param);
|
|||
// }
|
|||
//
|
|||
// //将该母卷的入烘箱标识改为0
|
|||
// HashMap<String, String> map = new HashMap<>();
|
|||
// map.put("is_baking", "0");
|
|||
// WQLObject.getWQLObject("PDM_BI_RawFoilWorkOrder").update(map, "container_name = '" + form.getString("container_name") + "'");
|
|||
// log.info("母卷:" + form.getString("container_name") + "对应的入烘箱任务完成,请求烘烤标识改为0");
|
|||
// }
|
|||
// //出箱回传
|
|||
// if ("2".equals(flag)) {
|
|||
// param.put("MoveOutDate", DateUtil.now());
|
|||
// param.put("ActualBakingTemperature", form.getDoubleValue("temperature"));
|
|||
// param.put("ActualBakingTimer", form.getDoubleValue("oven_time"));
|
|||
// //判断该接口是否需要回传
|
|||
// LambdaQueryWrapper<InterfaceBack> lam = new LambdaQueryWrapper<>();
|
|||
// lam.eq(InterfaceBack::getInterface_name, "momRollBakeOutBound");
|
|||
// lam.eq(InterfaceBack::getIs_back, "1");
|
|||
// InterfaceBack back_jo = interfaceBackMapper.selectOne(lam);
|
|||
// if (ObjectUtil.isNotEmpty(back_jo)) {
|
|||
// lmsToMesService.momRollBakeOutBound(param);
|
|||
// }
|
|||
// }
|
|||
//
|
|||
//
|
|||
// }
|
|||
//
|
|||
// @Override
|
|||
// public Map<String, Object> taskDtlQuery(Map whereJson, Pageable page) {
|
|||
//
|
|||
// String task_code = MapUtil.getStr(whereJson, "task_code");
|
|||
// String start_point_code = MapUtil.getStr(whereJson, "start_point_code");
|
|||
// String next_point_code = MapUtil.getStr(whereJson, "next_point_code");
|
|||
// String container_name = MapUtil.getStr(whereJson, "container_name");
|
|||
//
|
|||
// JSONObject map = new JSONObject();
|
|||
// map.put("flag", "2");
|
|||
// map.put("bill_code", MapUtil.getStr(whereJson, "bill_code"));
|
|||
// map.put("dtl_status", MapUtil.getStr(whereJson, "dtl_status"));
|
|||
// map.put("begin_time", whereJson.get("begin_time"));
|
|||
// map.put("end_time", whereJson.get("end_time"));
|
|||
// map.put("container_name", container_name);
|
|||
// if (ObjectUtil.isNotEmpty(task_code)) {
|
|||
// map.put("task_code", "%" + task_code + "%");
|
|||
// }
|
|||
// if (ObjectUtil.isNotEmpty(start_point_code)) {
|
|||
// map.put("start_point_code", "%" + start_point_code + "%");
|
|||
// }
|
|||
// if (ObjectUtil.isNotEmpty(next_point_code)) {
|
|||
// map.put("next_point_code", "%" + next_point_code + "%");
|
|||
// }
|
|||
//
|
|||
// JSONObject json = WQL.getWO("ST_IVT_HOTPOINTIVT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(page), "create_time DESC");
|
|||
//
|
|||
// return json;
|
|||
// }
|
|||
//
|
|||
//}
|
@ -1,138 +0,0 @@ |
|||
[交易说明] |
|||
交易名: 烘烤区点位库存 |
|||
所属模块: |
|||
功能简述: |
|||
版权所有: |
|||
表引用: |
|||
版本经历: |
|||
|
|||
[数据库] |
|||
--指定数据库,为空采用默认值,默认为db.properties中列出的第一个库 |
|||
|
|||
[IO定义] |
|||
################################################# |
|||
## 表字段对应输入参数 |
|||
################################################# |
|||
输入.flag TYPEAS s_string |
|||
输入.point_code TYPEAS s_string |
|||
输入.point_status TYPEAS s_string |
|||
输入.product_area TYPEAS s_string |
|||
输入.is_used TYPEAS s_string |
|||
输入.begin_time TYPEAS s_string |
|||
输入.end_time TYPEAS s_string |
|||
输入.container_name TYPEAS s_string |
|||
输入.bill_code TYPEAS s_string |
|||
输入.dtl_status TYPEAS s_string |
|||
输入.task_code TYPEAS s_string |
|||
输入.start_point_code TYPEAS s_string |
|||
输入.next_point_code TYPEAS s_string |
|||
输入.point_location TYPEAS s_string |
|||
输入.in_area_id TYPEAS f_string |
|||
|
|||
|
|||
[临时表] |
|||
--这边列出来的临时表就会在运行期动态创建 |
|||
|
|||
[临时变量] |
|||
--所有中间过程变量均可在此处定义 |
|||
|
|||
[业务过程] |
|||
|
|||
########################################## |
|||
# 1、输入输出检查 # |
|||
########################################## |
|||
|
|||
|
|||
########################################## |
|||
# 2、主过程前处理 # |
|||
########################################## |
|||
|
|||
|
|||
########################################## |
|||
# 3、业务主过程 # |
|||
########################################## |
|||
IF 输入.flag = "1" |
|||
PAGEQUERY |
|||
SELECT |
|||
hot.* |
|||
FROM |
|||
st_ivt_hotpointivt hot |
|||
WHERE |
|||
hot.product_area in 输入.in_area_id |
|||
OPTION 输入.point_location <> "" |
|||
point_location = 输入.point_location |
|||
ENDOPTION |
|||
OPTION 输入.point_code <> "" |
|||
point_code LIKE 输入.point_code |
|||
ENDOPTION |
|||
OPTION 输入.point_status <> "" |
|||
point_status = 输入.point_status |
|||
ENDOPTION |
|||
OPTION 输入.product_area <> "" |
|||
product_area = 输入.product_area |
|||
ENDOPTION |
|||
OPTION 输入.is_used <> "" |
|||
is_used = 输入.is_used |
|||
ENDOPTION |
|||
OPTION 输入.begin_time <> "" |
|||
instorage_time >= 输入.begin_time |
|||
ENDOPTION |
|||
OPTION 输入.end_time <> "" |
|||
instorage_time <= 输入.end_time |
|||
ENDOPTION |
|||
ENDSELECT |
|||
ENDPAGEQUERY |
|||
ENDIF |
|||
|
|||
IF 输入.flag = "2" |
|||
PAGEQUERY |
|||
SELECT |
|||
mst.bill_code, |
|||
mst.container_name, |
|||
mst.start_point_code, |
|||
mst.end_point_code, |
|||
mst.temperature, |
|||
mst.oven_time, |
|||
mst.create_name, |
|||
mst.create_time, |
|||
mst.confirm_optname, |
|||
mst.confirm_time, |
|||
task.task_code |
|||
FROM |
|||
ST_IVT_HotRegionIOMst mst |
|||
LEFT JOIN sch_base_task task ON task.task_id = mst.task_id |
|||
|
|||
WHERE |
|||
mst.is_delete = '0' |
|||
|
|||
OPTION 输入.bill_code <> "" |
|||
mst.bill_code = 输入.bill_code |
|||
ENDOPTION |
|||
|
|||
OPTION 输入.task_code <> "" |
|||
task.task_code like 输入.task_code |
|||
ENDOPTION |
|||
|
|||
OPTION 输入.start_point_code <> "" |
|||
mst.start_point_code like 输入.start_point_code |
|||
ENDOPTION |
|||
|
|||
OPTION 输入.next_point_code <> "" |
|||
mst.end_point_code like 输入.next_point_code |
|||
ENDOPTION |
|||
|
|||
OPTION 输入.begin_time <> "" |
|||
mst.create_time >= 输入.begin_time |
|||
ENDOPTION |
|||
|
|||
OPTION 输入.end_time <> "" |
|||
mst.create_time <= 输入.end_time |
|||
ENDOPTION |
|||
|
|||
OPTION 输入.container_name <> "" |
|||
mst.container_name = 输入.container_name |
|||
ENDOPTION |
|||
|
|||
ENDSELECT |
|||
ENDPAGEQUERY |
|||
ENDIF |
Loading…
Reference in new issue