fix + 枚举,仓库数据等

This commit is contained in:
shuo.wang
2025-04-08 16:38:30 +08:00
parent a389e073c4
commit 80b5afe47f
20 changed files with 480 additions and 11 deletions

View File

@@ -0,0 +1,16 @@
package com.cool.store.service;
import com.cool.store.entity.EnumInfoDO;
import java.util.List;
/**
* @Author: WangShuo
* @Date: 2025/04/08/15:29
* @Version 1.0
* @注释:
*/
public interface EnumInfoService {
List<EnumInfoDO> getByTypeCode(String typeCode);
}

View File

@@ -0,0 +1,16 @@
package com.cool.store.service;
import com.cool.store.entity.WarehouseInfoDO;
import java.util.List;
/**
* @Author: WangShuo
* @Date: 2025/04/08/15:09
* @Version 1.0
* @注释:
*/
public interface WarehouseInfoService {
List<WarehouseInfoDO> getAllAndActive();
}

View File

@@ -0,0 +1,28 @@
package com.cool.store.service.impl;
import com.cool.store.dao.EnumInfoDAO;
import com.cool.store.entity.EnumInfoDO;
import com.cool.store.service.EnumInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collections;
import java.util.List;
/**
* @Author: WangShuo
* @Date: 2025/04/08/15:29
* @Version 1.0
* @注释:
*/
@Service
public class EnumInfoServiceImpl implements EnumInfoService {
@Autowired
private EnumInfoDAO enumInfoDAO;
@Override
public List<EnumInfoDO> getByTypeCode(String typeCode) {
return enumInfoDAO.getByTypeCode(typeCode);
}
}

View File

@@ -0,0 +1,27 @@
package com.cool.store.service.impl;
import com.cool.store.entity.WarehouseInfoDO;
import com.cool.store.mapper.WarehouseInfoMapper;
import com.cool.store.service.WarehouseInfoService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
/**
* @Author: WangShuo
* @Date: 2025/04/08/15:09
* @Version 1.0
* @注释:
*/
@Service
public class WarehouseInfoServiceImpl implements WarehouseInfoService {
@Resource
private WarehouseInfoMapper warehouseInfoMapper;
@Override
public List<WarehouseInfoDO> getAllAndActive() {
return warehouseInfoMapper.getAllAndActive();
}
}