change - 当前库存接口

master
wenjy 2 years ago
parent 83315b2714
commit b44efe13d1

@ -48,7 +48,7 @@ public class CodeGenerator {
// 全局配置 // 全局配置
GlobalConfig gc = new GlobalConfig(); GlobalConfig gc = new GlobalConfig();
String projectPath = System.getProperty("user.dir"); String projectPath = System.getProperty("user.dir");
gc.setOutputDir(projectPath + "/src/main/java"); gc.setOutputDir("E:\\桌面\\scada-visual-board\\productionboard\\src\\main\\java");
// gc.setOutputDir("D:\\test"); // gc.setOutputDir("D:\\test");
gc.setAuthor("wenjy"); gc.setAuthor("wenjy");
gc.setOpen(false); gc.setOpen(false);

@ -0,0 +1,121 @@
package com.productionboard.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* <p>
*
* </p>
*
* @author wenjy
* @since 2022-06-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("RECORD_TASK")
public class RecordTask implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("OBJID")
private String objid;
/**
*
*/
@TableField("TASK_CODE")
private String taskCode;
/**
*
*/
@TableField("BOX_CODE")
private String boxCode;
/**
* /
*/
@TableField("MATERIAL_CODE")
private String materialCode;
/**
*
*/
@TableField("MATERIAL_TYPE")
private BigDecimal materialType;
/**
*
*/
@TableField("STORE_CODE")
private String storeCode;
/**
*
*/
@TableField("LOCATION_CODE")
private String locationCode;
/**
*
*/
@TableField("LOCATION_AREA")
private String locationArea;
/**
*
*/
@TableField("OPERATION_TYPE")
private BigDecimal operationType;
/**
*
*/
@TableField("TASK_TYPE")
private BigDecimal taskType;
/**
*
*/
@TableField("TASK_STATUS")
private BigDecimal taskStatus;
/**
*
*/
@TableField("RETURN_FLAG")
private String returnFlag;
/**
*
*/
@TableField("BEGIN_TIME")
private LocalDateTime beginTime;
/**
*
*/
@TableField("END_TIME")
private LocalDateTime endTime;
/**
*
*/
@TableField("RECORD_TIME")
private LocalDateTime recordTime;
}

@ -0,0 +1,18 @@
package com.productionboard.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.productionboard.entity.RecordTask;
import org.apache.ibatis.annotations.Mapper;
/**
* <p>
* Mapper
* </p>
*
* @author wenjy
* @since 2022-06-10
*/
@Mapper
public interface RecordTaskMapper extends BaseMapper<RecordTask> {
}

@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.productionboard.entity.BaseLocationInfo; import com.productionboard.entity.BaseLocationInfo;
import com.productionboard.mapper.BaseLocationInfoMapper; import com.productionboard.mapper.BaseLocationInfoMapper;
import com.productionboard.mapper.RecordTaskMapper;
import com.productionboard.service.IBaseLocationService; import com.productionboard.service.IBaseLocationService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -24,6 +25,9 @@ public class BaseLocationServiceImpl implements IBaseLocationService {
@Autowired @Autowired
private BaseLocationInfoMapper lcoationMapper; private BaseLocationInfoMapper lcoationMapper;
@Autowired
private RecordTaskMapper recordTaskMapper;
@Override @Override
public String getStoreStatistics(String ids) { public String getStoreStatistics(String ids) {
QueryWrapper<BaseLocationInfo> wrapper = new QueryWrapper<>(); QueryWrapper<BaseLocationInfo> wrapper = new QueryWrapper<>();
@ -54,6 +58,23 @@ public class BaseLocationServiceImpl implements IBaseLocationService {
@Override @Override
public String getParamJson(String ids) { public String getParamJson(String ids) {
QueryWrapper<BaseLocationInfo> wrapper = new QueryWrapper<>();
switch (ids) {
case"0":
wrapper.eq("STORE_CODE","B");
break;
case"1":
wrapper.eq("STORE_CODE","A");
break;
default:
break;
}
//1号库入库数量、出库数量
//2
return null; return null;
} }
} }

Loading…
Cancel
Save