change - 门体库接口

master
wenjy 3 years ago
parent f464d55b19
commit 8e96ecba9f

@ -58,10 +58,10 @@ public class CodeGenerator {
// 数据源配置 // 数据源配置
DataSourceConfig dsc = new DataSourceConfig(); DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:oracle:thin:@10.100.71.101:1521/orcl?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=UTC"); dsc.setUrl("jdbc:oracle:thin:@10.100.71.119:1521/orcl?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=UTC");
// dsc.setSchemaName("public"); // dsc.setSchemaName("public");
dsc.setDriverName("oracle.jdbc.driver.OracleDriver"); dsc.setDriverName("oracle.jdbc.driver.OracleDriver");
dsc.setUsername("aucma"); dsc.setUsername("system");
dsc.setPassword("aucma"); dsc.setPassword("aucma");
mpg.setDataSource(dsc); mpg.setDataSource(dsc);

@ -114,7 +114,7 @@ public class StorageController {
* @param ids * @param ids
* @return java.lang.String * @return java.lang.String
*/ */
@GetMapping("/getStoreStatistics") @GetMapping("/getParamJson")
@ResponseBody @ResponseBody
public String getParamJson(String ids){ public String getParamJson(String ids){

@ -0,0 +1,120 @@
package com.productionboard.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
*
* </p>
*
* @author wenjy
* @since 2022-06-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BASE_LOCATION_INFO")
public class BaseLocationInfo implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId("OBJID")
private String objid;
/**
*
*/
@TableField("LOCATION_CODE")
private String locationCode;
/**
*
*/
@TableField("LOCATION_NAME")
private String locationName;
/**
*
*/
@TableField("MATERIAL_TYPE")
private String materialType;
/**
* A B
*/
@TableField("STORE_CODE")
private String storeCode;
/**
*
*/
@TableField("LOCATION_AREA")
private String locationArea;
/**
*
*/
@TableField("LOCATION_ROW")
private BigDecimal locationRow;
/**
*
*/
@TableField("LOCATION_LINE")
private BigDecimal locationLine;
/**
*
*/
@TableField("LOCATION_TIER")
private BigDecimal locationTier;
/**
* 1: 2 0
*/
@TableField("LOCATION_STATUS")
private BigDecimal locationStatus;
/**
*
*/
@TableField("EFFICIENCY")
private BigDecimal efficiency;
/**
*
*/
@TableField("REMARK")
private String remark;
/**
*
*/
@TableField("DELETE_FLAG")
private BigDecimal deleteFlag;
/**
*
*/
@TableField("RECORD_TIME")
private LocalDateTime recordTime;
/**
*
*/
@TableField("ORDERNUM")
private BigDecimal ordernum;
}

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

@ -0,0 +1,26 @@
package com.productionboard.service;
/**
* @author WenJY
* @date 20220610 17:47
*/
public interface IBaseLocationService {
/**
*
* @author WenJY
* @date 2022-06-10 17:48
* @param ids
* @return java.lang.String
*/
public String getStoreStatistics(String ids);
/**
*
* @author WenJY
* @date 2022-06-10 17:48
* @param ids
* @return java.lang.String
*/
public String getParamJson(String ids);
}

@ -0,0 +1,46 @@
package com.productionboard.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.productionboard.entity.BaseLocationInfo;
import com.productionboard.mapper.BaseLocationInfoMapper;
import com.productionboard.service.IBaseLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author WenJY
* @date 20220610 17:48
*/
@Service
public class BaseLocationServiceImpl implements IBaseLocationService {
@Autowired
private BaseLocationInfoMapper lcoationMapper;
@Override
public String getStoreStatistics(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;
}
List<BaseLocationInfo> baseLocationInfos = lcoationMapper.selectList(wrapper);
return JSONArray.toJSONString(baseLocationInfos);
}
@Override
public String getParamJson(String ids) {
return null;
}
}
Loading…
Cancel
Save