New file |
| | |
| | | package com.zy.asrs.utils; |
| | | |
| | | import com.core.common.DateUtils; |
| | | import lombok.SneakyThrows; |
| | | |
| | | import java.lang.reflect.Field; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.Random; |
| | | import java.lang.reflect.Modifier; |
| | | |
| | | public class EntityToMapConverter { |
| | | @SneakyThrows |
| | | public static Map<String, Object> entityToMapWithRandomValues(Object entity) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | Field[] fields = entity.getClass().getDeclaredFields(); |
| | | Random random = new Random(); |
| | | |
| | | for (Field field : fields) { |
| | | if (Modifier.isStatic(field.getModifiers()) || Modifier.isFinal(field.getModifiers())) { |
| | | // Ignore static or final fields |
| | | continue; |
| | | } |
| | | field.setAccessible(true); |
| | | String fieldName = field.getName(); |
| | | Object fieldValue = field.get(entity); |
| | | |
| | | // Set random values based on type |
| | | if (field.getType() == String.class) { |
| | | map.put(fieldName, "'" + generateRandomString(10) + "'"); |
| | | } else if (field.getType() == Integer.class || field.getType() == int.class) { |
| | | map.put(fieldName, random.nextInt(1000)); |
| | | } else if (field.getType() == Long.class || field.getType() == long.class) { |
| | | map.put(fieldName, random.nextLong() % 1000L); |
| | | } else if (field.getType() == Float.class || field.getType() == float.class) { |
| | | map.put(fieldName, random.nextFloat() * 1000f); |
| | | } else if (field.getType() == Double.class || field.getType() == double.class) { |
| | | map.put(fieldName, random.nextDouble() * 1000d); |
| | | } else if (field.getType() == Boolean.class || field.getType() == boolean.class) { |
| | | map.put(fieldName, random.nextBoolean()); |
| | | } else if (field.getType() == BigDecimal.class) { |
| | | map.put(fieldName, new BigDecimal(random.nextDouble() * 1000d)); |
| | | } else if (field.getType() == Date.class) { |
| | | map.put(fieldName, "'" + DateUtils.convert(new Date()) + "'"); |
| | | } else { |
| | | // For other types, you might want to handle them specifically or skip them |
| | | continue; |
| | | } |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | private static String generateRandomString(int length) { |
| | | String characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; |
| | | StringBuilder sb = new StringBuilder(length); |
| | | for (int i = 0; i < length; i++) { |
| | | sb.append(characters.charAt(new Random().nextInt(characters.length()))); |
| | | } |
| | | return sb.toString(); |
| | | } |
| | | } |
| | |
| | | @TableField("LKName") |
| | | private String LKName; |
| | | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("FactArea") |
| | | private String FactArea; |
| | | |
| | | // InCancelTB inCancelTB = new InCancelTB( |
| | | // null, // [非空] |
| | | // null, // |
| | |
| | | |
| | | |
| | | @TableId(value = "AutoId", type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("BillNo") |
| | |
| | | |
| | | |
| | | @TableId(value = "AutoId", type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "BillNo", type = IdType.INPUT) |
| | |
| | | private String LKName; |
| | | |
| | | |
| | | public InHedTB(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | // InHedTB inHedTB = new InHedTB( |
| | | // null, // [非空] |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "AutoId", type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "ItemId", type = IdType.INPUT) |
| | |
| | | private String Flag; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss.fff") |
| | | @TableField("MakeDate") |
| | | private Date MakeDate; |
| | | |
| | |
| | | @Slf4j |
| | | @Component |
| | | public class ERPInCancelScheduler { |
| | | |
| | | @Value("${erp.enabled}") |
| | | private Boolean erpEnabled; |
| | | |
| | | |
| | | @Autowired |
| | | private ERPInCancelSchedulerMS inMS; |
| | |
| | | private ErpSqlServer erpSqlServer; |
| | | |
| | | @Scheduled(cron = "${erp.refreshtime}") |
| | | public void itemScheduler() { |
| | | public void InCancelScheduler() { |
| | | log.info("InCancelScheduler开始了"); |
| | | if (!erpEnabled) return; |
| | | String sqlInCancelTB = "select * from erp_InCancelTB where LKName='中扬二期'"; |
| | | List<InCancelTB> ins = erpSqlServer.select(sqlInCancelTB, InCancelTB.class); |
| | | for (InCancelTB in : ins) { |
| | | System.out.println(in); |
| | | com.zy.third.lk.entity.InCancelTB lkCancel = inMS.tryCancel(in); |
| | | if (lkCancel != null) { |
| | | HashMap<String, String> condition = new HashMap<>(); |
| | |
| | | import com.zy.common.service.erp.ErpSqlServer; |
| | | import com.zy.third.erp.entity.InDetTB; |
| | | import com.zy.third.erp.entity.InHedTB; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | /** |
| | | * 入库单据 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class ERPInHedTBScheduler { |
| | | |
| | |
| | | |
| | | @Scheduled(cron = "${erp.refreshtime}") |
| | | public void InHedTBScheduler() { |
| | | log.info("InHedTBScheduler开始了"); |
| | | if (!erpEnabled) return; |
| | | String sqlInHed = "select * from erp_InHedTB where LKName='中扬二期'"; |
| | | List<InHedTB> inHeds = erpSqlServer.select(sqlInHed, InHedTB.class); |
| | | if (inHeds.size() > 0) { |
| | | for (InHedTB inHed : inHeds) { |
| | | System.out.println(inHed); |
| | | HashMap<String, String> condition = new HashMap<>(); |
| | | condition.put("BillNo", "'" + inHed.getBillNo() + "'"); |
| | | List<InDetTB> inDetTBS = erpSqlServer.selectList(InDetTB.class, condition); |
| | |
| | | |
| | | import com.zy.common.service.erp.ErpSqlServer; |
| | | import com.zy.third.erp.entity.ItemTB; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | /** |
| | | * 物料档案 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | public class ERPItemScheduler { |
| | | @Value("${erp.enabled}") |
| | |
| | | |
| | | @Scheduled(cron = "${erp.refreshtime}") |
| | | public void ItemScheduler() { |
| | | log.info("ItemScheduler开始了"); |
| | | if (!erpEnabled) return; |
| | | |
| | | // String selectALL = "SELECT AutoId AS autoId,ItemId AS ItemID,ItemCode AS ItemCode,ItemName AS ItemName ,ItemSpc AS ItemSpc,ItemPic AS itemPic,ItemUnit AS ItemUnit,ItemKind AS ItemKind ,Remark AS remark ,Flag AS flag ,MakeDate AS makedate,Temp1 AS temp1,Temp2 AS temp2 ,Temp3 AS temp3 FROM dbo.erp_ItemTB"; |
| | | // List<ItemTB> itemTBS = erpSqlServer.select(selectALL, ItemTB.class); |
| | | // List<ItemTB> itemTBS = erpSqlServer.selectAll(ItemTB.class); |
| | | |
| | | String sqlItemTB = "select * from erp_ItemTB where LKName='中扬二期'"; |
| | | List<ItemTB> itemTBS = erpSqlServer.select(sqlItemTB, ItemTB.class); |
| | | if (itemTBS != null && itemTBS.size() > 0) { |
| | | for (ItemTB itemTB : itemTBS) { |
| | | System.out.println(itemTB); |
| | | //00代表新增 |
| | | if (itemTB.getFlag().equals("00")) { |
| | | erpItemSchedulerMS.addToMainDatabase(itemTB); |
| | |
| | | */ |
| | | //将数据从主表移动到bak表里 |
| | | private void moveToBak(ItemTB itemTB) { |
| | | // ItemTBBak itemTBBak = new ItemTBBak(); |
| | | // BeanUtils.copyProperties(itemTB, itemTBBak); |
| | | // itemTBBak.setDelDate(new Date()); |
| | | // erpItemTBBakMapper.insert(itemTBBak); |
| | | erpSqlServer.update("delete from erp_ItemTB where LKName='中扬二期' and ItemId = '" + itemTB.getItemId() + "'"); |
| | | // erpItemTBMapper.delete(new EntityWrapper<ItemTB>() |
| | | // .eq("ItemId",itemTB.getItemID())); |
| | | } |
| | | } |
| | |
| | | import com.zy.common.service.erp.ErpSqlServer; |
| | | import com.zy.third.erp.entity.InDetTB; |
| | | import com.zy.third.erp.entity.InHedTB; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | |
| | | /** |
| | | * 入库单据 |
| | | */ |
| | | */@Slf4j |
| | | @Component |
| | | public class ERPOutHedTBScheduler { |
| | | |
| | |
| | | private ErpSqlServer erpSqlServer; |
| | | |
| | | @Scheduled(cron = "${erp.refreshtime}") |
| | | public void ItemScheduler() { |
| | | public void OutHedTBScheduler() { |
| | | log.info("OutHedTBScheduler开始了"); |
| | | if (!erpEnabled) return; |
| | | String sqlInHed = "select * from erp_OutHedTB where LKName='中扬二期'"; |
| | | List<InHedTB> inHeds = erpSqlServer.select(sqlInHed, InHedTB.class); |
| | | if (inHeds.size() > 0) { |
| | | for (InHedTB inHed : inHeds) { |
| | | System.out.println(inHed); |
| | | HashMap<String, String> condition = new HashMap<>(); |
| | | condition.put("BillNo", "'" + inHed.getBillNo() + "'"); |
| | | List<InDetTB> inDetTBS = erpSqlServer.selectList(InDetTB.class, condition); |
| | |
| | | package com.zy.third.lk.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | |
| | | private Date MakeDate; |
| | | |
| | | |
| | | |
| | | |
| | | // InCancelTB inCancelTB = new InCancelTB( |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public Integer getAutoId() { |
| | | return AutoId; |
| | | } |
| | | |
| | | public void setAutoId(Integer AutoId) { |
| | | this.AutoId = AutoId; |
| | | } |
| | | |
| | | public String getBillNo() { |
| | | return BillNo; |
| | | } |
| | | |
| | | public void setBillNo(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | public Integer getOpFlag() { |
| | | return opFlag; |
| | | } |
| | | |
| | | public void setOpFlag(Integer opFlag) { |
| | | this.opFlag = opFlag; |
| | | } |
| | | |
| | | public Date getMakeDate() { |
| | | return MakeDate; |
| | | } |
| | | |
| | | public String getMakeDate$(){ |
| | | if (Cools.isEmpty(this.MakeDate)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.MakeDate); |
| | | } |
| | | |
| | | public void setMakeDate(Date MakeDate) { |
| | | this.MakeDate = MakeDate; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | package com.zy.third.lk.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @NoArgsConstructor |
| | |
| | | |
| | | |
| | | @TableId(value = "AutoId",type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ItemId") |
| | | private String itemid; |
| | | private String ItemId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ItemCode") |
| | |
| | | private Date makedate; |
| | | |
| | | |
| | | |
| | | // InDetTB inDetTB = new InDetTB( |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // [非空] |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public String getBillNo() { |
| | | return BillNo; |
| | | } |
| | | |
| | | public void setBillNo(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | public Integer getINO() { |
| | | return iNO; |
| | | } |
| | | |
| | | public void setINO(Integer iNO) { |
| | | this.iNO = iNO; |
| | | } |
| | | |
| | | public Integer getDetId() { |
| | | return detId; |
| | | } |
| | | |
| | | public void setDetId(Integer detId) { |
| | | this.detId = detId; |
| | | } |
| | | |
| | | public String getItemid() { |
| | | return itemid; |
| | | } |
| | | |
| | | public void setItemid(String itemid) { |
| | | this.itemid = itemid; |
| | | } |
| | | |
| | | public String getItemCode() { |
| | | return ItemCode; |
| | | } |
| | | |
| | | public void setItemCode(String ItemCode) { |
| | | this.ItemCode = ItemCode; |
| | | } |
| | | |
| | | public String getItemBatch() { |
| | | return ItemBatch; |
| | | } |
| | | |
| | | public void setItemBatch(String ItemBatch) { |
| | | this.ItemBatch = ItemBatch; |
| | | } |
| | | |
| | | public String getProtype() { |
| | | return protype; |
| | | } |
| | | |
| | | public void setProtype(String protype) { |
| | | this.protype = protype; |
| | | } |
| | | |
| | | public Double getMainNum() { |
| | | return MainNum; |
| | | } |
| | | |
| | | public void setMainNum(Double MainNum) { |
| | | this.MainNum = MainNum; |
| | | } |
| | | |
| | | public String getOrderNo() { |
| | | return OrderNo; |
| | | } |
| | | |
| | | public void setOrderNo(String OrderNo) { |
| | | this.OrderNo = OrderNo; |
| | | } |
| | | |
| | | public Date getMakedate() { |
| | | return makedate; |
| | | } |
| | | |
| | | public String getMakedate$(){ |
| | | if (Cools.isEmpty(this.makedate)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.makedate); |
| | | } |
| | | |
| | | public void setMakedate(Date makedate) { |
| | | this.makedate = makedate; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getTemp1() { |
| | | return temp1; |
| | | } |
| | | |
| | | public void setTemp1(String temp1) { |
| | | this.temp1 = temp1; |
| | | } |
| | | |
| | | public String getTemp2() { |
| | | return temp2; |
| | | } |
| | | |
| | | public void setTemp2(String temp2) { |
| | | this.temp2 = temp2; |
| | | } |
| | | |
| | | public String getTemp3() { |
| | | return temp3; |
| | | } |
| | | |
| | | public void setTemp3(String temp3) { |
| | | this.temp3 = temp3; |
| | | } |
| | | |
| | | |
| | |
| | | package com.zy.third.lk.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @NoArgsConstructor |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "AutoId",type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "BillNo", type = IdType.INPUT) |
| | |
| | | |
| | | /** |
| | | * StockIn:采购入库 |
| | | ProductIn:OutHedTB |
| | | ItemMoveIn:调拨入库 |
| | | ItemSwitchIn:形态转换入库 |
| | | CheckMoreIn:盘盈入库单 |
| | | |
| | | * ProductIn:OutHedTB |
| | | * ItemMoveIn:调拨入库 |
| | | * ItemSwitchIn:形态转换入库 |
| | | * CheckMoreIn:盘盈入库单 |
| | | */ |
| | | @ApiModelProperty(value= "StockIn:采购入库 ") |
| | | @TableField("IoKindID") |
| | |
| | | */ |
| | | @ApiModelProperty(value= "供应商、部门ID") |
| | | @TableField("ObjectId") |
| | | private String OjectId; |
| | | private String ObjectId; |
| | | |
| | | /** |
| | | * 供应商、部门名称 |
| | | */ |
| | | @ApiModelProperty(value= "供应商、部门名称") |
| | | @TableField("ObjectName") |
| | | private String OjbectName; |
| | | private String ObjectName; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Remark") |
| | | private String remark; |
| | | private String Remark; |
| | | |
| | | @TableField("WareId") |
| | | private String wareId; |
| | | private String WareId; |
| | | |
| | | |
| | | @TableField("WareName") |
| | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Temp1") |
| | | private String temp1; |
| | | private String Temp1; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Temp2") |
| | | private String temp2; |
| | | private String Temp2; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Temp3") |
| | | private String temp3; |
| | | private String Temp3; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | |
| | | private Boolean bStartIn; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // InHedTB inHedTB = new InHedTB( |
| | | // null, // [非空] |
| | | // null, // StockIn:采购入库 |
| | | |
| | | |
| | | // null, // 供应商、部门ID |
| | | // null, // 供应商、部门名称 |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public String getBillNo() { |
| | | return BillNo; |
| | | } |
| | | |
| | | public void setBillNo(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | public String getIoKindID() { |
| | | return IoKindID; |
| | | } |
| | | |
| | | public void setIoKindID(String IoKindID) { |
| | | this.IoKindID = IoKindID; |
| | | } |
| | | |
| | | public String getOjectId() { |
| | | return OjectId; |
| | | } |
| | | |
| | | public void setOjectId(String OjectId) { |
| | | this.OjectId = OjectId; |
| | | } |
| | | |
| | | public String getOjbectName() { |
| | | return OjbectName; |
| | | } |
| | | |
| | | public void setOjbectName(String OjbectName) { |
| | | this.OjbectName = OjbectName; |
| | | } |
| | | |
| | | public Date getMakedate() { |
| | | return makedate; |
| | | } |
| | | |
| | | public String getMakedate$(){ |
| | | if (Cools.isEmpty(this.makedate)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.makedate); |
| | | } |
| | | |
| | | public void setMakedate(Date makedate) { |
| | | this.makedate = makedate; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getTemp1() { |
| | | return temp1; |
| | | } |
| | | |
| | | public void setTemp1(String temp1) { |
| | | this.temp1 = temp1; |
| | | } |
| | | |
| | | public String getTemp2() { |
| | | return temp2; |
| | | } |
| | | |
| | | public void setTemp2(String temp2) { |
| | | this.temp2 = temp2; |
| | | } |
| | | |
| | | public String getTemp3() { |
| | | return temp3; |
| | | } |
| | | |
| | | public void setTemp3(String temp3) { |
| | | this.temp3 = temp3; |
| | | } |
| | | |
| | | |
| | |
| | | package com.zy.third.lk.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "AutoId",type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("BillNo") |
| | |
| | | private String remark; |
| | | |
| | | @TableField("WareId") |
| | | private String wareId; |
| | | private String WareId; |
| | | |
| | | @TableField("WareName") |
| | | private String wareName; |
| | | private String WareName; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private String temp1; |
| | | private String Temp1; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private String temp2; |
| | | private String Temp2; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private String temp3; |
| | | private String Temp3; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | |
| | | private Date delDate; |
| | | |
| | | |
| | | |
| | | // OutDetTb outDetTb = new OutDetTb( |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // [非空] |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public String getBillNo() { |
| | | return BillNo; |
| | | } |
| | | |
| | | public void setBillNo(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | public Integer getINO() { |
| | | return iNO; |
| | | } |
| | | |
| | | public void setINO(Integer iNO) { |
| | | this.iNO = iNO; |
| | | } |
| | | |
| | | public Integer getDetId() { |
| | | return detId; |
| | | } |
| | | |
| | | public void setDetId(Integer detId) { |
| | | this.detId = detId; |
| | | } |
| | | |
| | | public String getItemid() { |
| | | return itemid; |
| | | } |
| | | |
| | | public void setItemid(String itemid) { |
| | | this.itemid = itemid; |
| | | } |
| | | |
| | | public String getItemCode() { |
| | | return ItemCode; |
| | | } |
| | | |
| | | public void setItemCode(String ItemCode) { |
| | | this.ItemCode = ItemCode; |
| | | } |
| | | |
| | | public String getItemBatch() { |
| | | return ItemBatch; |
| | | } |
| | | |
| | | public void setItemBatch(String ItemBatch) { |
| | | this.ItemBatch = ItemBatch; |
| | | } |
| | | |
| | | public String getProtype() { |
| | | return protype; |
| | | } |
| | | |
| | | public void setProtype(String protype) { |
| | | this.protype = protype; |
| | | } |
| | | |
| | | public Double getMainNum() { |
| | | return MainNum; |
| | | } |
| | | |
| | | public void setMainNum(Double MainNum) { |
| | | this.MainNum = MainNum; |
| | | } |
| | | |
| | | |
| | | public String getOrderNo() { |
| | | return OrderNo; |
| | | } |
| | | |
| | | public void setOrderNo(String OrderNo) { |
| | | this.OrderNo = OrderNo; |
| | | } |
| | | |
| | | public Date getMakedate() { |
| | | return makedate; |
| | | } |
| | | |
| | | public String getMakedate$(){ |
| | | if (Cools.isEmpty(this.makedate)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.makedate); |
| | | } |
| | | |
| | | public void setMakedate(Date makedate) { |
| | | this.makedate = makedate; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getTemp1() { |
| | | return temp1; |
| | | } |
| | | |
| | | public void setTemp1(String temp1) { |
| | | this.temp1 = temp1; |
| | | } |
| | | |
| | | public String getTemp2() { |
| | | return temp2; |
| | | } |
| | | |
| | | public void setTemp2(String temp2) { |
| | | this.temp2 = temp2; |
| | | } |
| | | |
| | | public String getTemp3() { |
| | | return temp3; |
| | | } |
| | | |
| | | public void setTemp3(String temp3) { |
| | | this.temp3 = temp3; |
| | | } |
| | | |
| | | |
| | |
| | | package com.zy.third.lk.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @TableName("lk_OutDetTb_bak") |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "AutoId",type = IdType.AUTO) |
| | | private Integer autoID; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("BillNo") |
| | |
| | | private String remark; |
| | | |
| | | @TableField("WareId") |
| | | private String wareId; |
| | | private String WareId; |
| | | |
| | | @TableField("WareName") |
| | | private String wareName; |
| | | private String WareName; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private String temp1; |
| | | private String Temp1; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private String temp2; |
| | | private String Temp2; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private String temp3; |
| | | private String Temp3; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | |
| | | private Date delDate; |
| | | |
| | | |
| | | |
| | | |
| | | public OutDetTBBak() {} |
| | | |
| | | |
| | | |
| | | // OutDetTbBak outDetTbBak = new OutDetTbBak( |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // [非空] |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // [非空] |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public String getBillNo() { |
| | | return BillNo; |
| | | } |
| | | |
| | | public void setBillNo(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | public Integer getINO() { |
| | | return iNO; |
| | | } |
| | | |
| | | public void setINO(Integer iNO) { |
| | | this.iNO = iNO; |
| | | } |
| | | |
| | | public Integer getDetId() { |
| | | return detId; |
| | | } |
| | | |
| | | public void setDetId(Integer detId) { |
| | | this.detId = detId; |
| | | } |
| | | |
| | | public String getItemid() { |
| | | return itemid; |
| | | } |
| | | |
| | | public void setItemid(String itemid) { |
| | | this.itemid = itemid; |
| | | } |
| | | |
| | | public String getItemCode() { |
| | | return ItemCode; |
| | | } |
| | | |
| | | public void setItemCode(String ItemCode) { |
| | | this.ItemCode = ItemCode; |
| | | } |
| | | |
| | | public String getItemBatch() { |
| | | return ItemBatch; |
| | | } |
| | | |
| | | public void setItemBatch(String ItemBatch) { |
| | | this.ItemBatch = ItemBatch; |
| | | } |
| | | |
| | | public String getProtype() { |
| | | return protype; |
| | | } |
| | | |
| | | public void setProtype(String protype) { |
| | | this.protype = protype; |
| | | } |
| | | |
| | | public Double getMainNum() { |
| | | return MainNum; |
| | | } |
| | | |
| | | public void setMainNum(Double MainNum) { |
| | | this.MainNum = MainNum; |
| | | } |
| | | |
| | | |
| | | |
| | | public String getOrderNo() { |
| | | return OrderNo; |
| | | } |
| | | |
| | | public void setOrderNo(String OrderNo) { |
| | | this.OrderNo = OrderNo; |
| | | } |
| | | |
| | | public Date getMakedate() { |
| | | return makedate; |
| | | } |
| | | |
| | | public String getMakedate$(){ |
| | | if (Cools.isEmpty(this.makedate)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.makedate); |
| | | } |
| | | |
| | | public void setMakedate(Date makedate) { |
| | | this.makedate = makedate; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getTemp1() { |
| | | return temp1; |
| | | } |
| | | |
| | | public void setTemp1(String temp1) { |
| | | this.temp1 = temp1; |
| | | } |
| | | |
| | | public String getTemp2() { |
| | | return temp2; |
| | | } |
| | | |
| | | public void setTemp2(String temp2) { |
| | | this.temp2 = temp2; |
| | | } |
| | | |
| | | public String getTemp3() { |
| | | return temp3; |
| | | } |
| | | |
| | | public void setTemp3(String temp3) { |
| | | this.temp3 = temp3; |
| | | } |
| | | |
| | | |
| | |
| | | package com.zy.third.lk.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty; |
| | | import com.core.common.Cools; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "AutoId",type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "BillNo", type = IdType.INPUT) |
| | |
| | | |
| | | /** |
| | | * SendMatOut:发料出库 |
| | | OtherOut:其它出库单 |
| | | ItemMoveOut:调拨出库 |
| | | ItemSwitchOut:形态转换出库 |
| | | CheckLossOut:盘盈出库单 |
| | | |
| | | * OtherOut:其它出库单 |
| | | * ItemMoveOut:调拨出库 |
| | | * ItemSwitchOut:形态转换出库 |
| | | * CheckLossOut:盘盈出库单 |
| | | */ |
| | | @ApiModelProperty(value= "SendMatOut:发料出库 ") |
| | | @TableField("IoKindID") |
| | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ObjectId") |
| | | private String OjectId; |
| | | private String ObjectId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ObjectName") |
| | | private String OjbectName; |
| | | private String ObjectName; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Remark") |
| | |
| | | private Boolean bStartIn; |
| | | |
| | | |
| | | // OutHedTb outHedTb = new OutHedTb( |
| | | // null, // [非空] |
| | | // null, // SendMatOut:发料出库 |
| | | |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public String getBillNo() { |
| | | return BillNo; |
| | | } |
| | | |
| | | public void setBillNo(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | public String getIoKindID() { |
| | | return IoKindID; |
| | | } |
| | | |
| | | public void setIoKindID(String IoKindID) { |
| | | this.IoKindID = IoKindID; |
| | | } |
| | | |
| | | public String getOjectId() { |
| | | return OjectId; |
| | | } |
| | | |
| | | public void setOjectId(String OjectId) { |
| | | this.OjectId = OjectId; |
| | | } |
| | | |
| | | public String getOjbectName() { |
| | | return OjbectName; |
| | | } |
| | | |
| | | public void setOjbectName(String OjbectName) { |
| | | this.OjbectName = OjbectName; |
| | | } |
| | | |
| | | public Date getMakedate() { |
| | | return makedate; |
| | | } |
| | | |
| | | public String getMakedate$(){ |
| | | if (Cools.isEmpty(this.makedate)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.makedate); |
| | | } |
| | | |
| | | public void setMakedate(Date makedate) { |
| | | this.makedate = makedate; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getTemp1() { |
| | | return temp1; |
| | | } |
| | | |
| | | public void setTemp1(String temp1) { |
| | | this.temp1 = temp1; |
| | | } |
| | | |
| | | public String getTemp2() { |
| | | return temp2; |
| | | } |
| | | |
| | | public void setTemp2(String temp2) { |
| | | this.temp2 = temp2; |
| | | } |
| | | |
| | | public String getTemp3() { |
| | | return temp3; |
| | | } |
| | | |
| | | public void setTemp3(String temp3) { |
| | | this.temp3 = temp3; |
| | | } |
| | | |
| | | |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "AutoId",type = IdType.AUTO) |
| | | private Integer autoId; |
| | | private Integer AutoId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("BillNo") |
| | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ObjectId") |
| | | private String OjectId; |
| | | private String ObjectId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ObjectName") |
| | | private String OjbectName; |
| | | private String ObjectName; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Remark") |
| | | private String remark; |
| | | private String Remark; |
| | | |
| | | @TableField("WareId") |
| | | private String wareId; |
| | | private String WareId; |
| | | |
| | | @TableField("WareName") |
| | | private String wareName; |
| | | private String WareName; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Temp1") |
| | | private String temp1; |
| | | private String Temp1; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Temp2") |
| | | private String temp2; |
| | | private String Temp2; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Temp3") |
| | | private String temp3; |
| | | private String Temp3; |
| | | |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | private Boolean bStartIn; |
| | | |
| | | |
| | | public OutHedTBBak() {} |
| | | |
| | | public OutHedTBBak(String BillNo, String IoKindID, String OjectId, String OjbectName, Date makedate, String remark, String temp1, String temp2, String temp3) { |
| | | this.BillNo = BillNo; |
| | | this.IoKindID = IoKindID; |
| | | this.OjectId = OjectId; |
| | | this.OjbectName = OjbectName; |
| | | this.makedate = makedate; |
| | | this.remark = remark; |
| | | this.temp1 = temp1; |
| | | this.temp2 = temp2; |
| | | this.temp3 = temp3; |
| | | } |
| | | |
| | | // OutHedTbBak outHedTbBak = new OutHedTbBak( |
| | | // null, // [非空] |
| | | // null, // SendMatOut:发料出库 |
| | | |
| | | |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public String getBillNo() { |
| | | return BillNo; |
| | | } |
| | | |
| | | public void setBillNo(String BillNo) { |
| | | this.BillNo = BillNo; |
| | | } |
| | | |
| | | public String getIoKindID() { |
| | | return IoKindID; |
| | | } |
| | | |
| | | public void setIoKindID(String IoKindID) { |
| | | this.IoKindID = IoKindID; |
| | | } |
| | | |
| | | public String getOjectId() { |
| | | return OjectId; |
| | | } |
| | | |
| | | public void setOjectId(String OjectId) { |
| | | this.OjectId = OjectId; |
| | | } |
| | | |
| | | public String getOjbectName() { |
| | | return OjbectName; |
| | | } |
| | | |
| | | public void setOjbectName(String OjbectName) { |
| | | this.OjbectName = OjbectName; |
| | | } |
| | | |
| | | public Date getMakedate() { |
| | | return makedate; |
| | | } |
| | | |
| | | public String getMakedate$(){ |
| | | if (Cools.isEmpty(this.makedate)){ |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.makedate); |
| | | } |
| | | |
| | | public void setMakedate(Date makedate) { |
| | | this.makedate = makedate; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getTemp1() { |
| | | return temp1; |
| | | } |
| | | |
| | | public void setTemp1(String temp1) { |
| | | this.temp1 = temp1; |
| | | } |
| | | |
| | | public String getTemp2() { |
| | | return temp2; |
| | | } |
| | | |
| | | public void setTemp2(String temp2) { |
| | | this.temp2 = temp2; |
| | | } |
| | | |
| | | public String getTemp3() { |
| | | return temp3; |
| | | } |
| | | |
| | | public void setTemp3(String temp3) { |
| | | this.temp3 = temp3; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | @Transactional |
| | | @Scheduled(cron = "${erp.refreshtime}") |
| | | public void pakinOrderComplete() { |
| | | log.info("开始入库更新完成回报"); |
| | | // 所有订单 |
| | | List<Order> orders = orderService.selectList(new EntityWrapper<Order>().eq("settle", 4L)); |
| | | DocType docType; |
| | | for (Order order : orders) { |
| | | System.out.println(order); |
| | | docType = docTypeService.selectById(order.getDocType()); |
| | | if (docType == null) { |
| | | log.error("该订单类型不存在:" + order.getDocType()); |
| | |
| | | refreshtime: 0/5 * * * * ? |
| | | db: |
| | | driver_class_name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | url: jdbc:sqlserver://127.0.0.1:1433;databasename=XDLinkLK |
| | | url: jdbc:sqlserver://127.0.0.1:1433;databasename=XDLinkLK2 |
| | | username: sa |
| | | password: sa@123 |