change - 门体库接口
parent
f464d55b19
commit
8e96ecba9f
@ -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 2022年06月10日 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 2022年06月10日 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;
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue