fix: storage_cell
This commit is contained in:
@@ -38,19 +38,49 @@ public interface StorageCellService extends CommonService<StorageCell> {
|
|||||||
*/
|
*/
|
||||||
List<StorageCellDto> queryAll(StorageCellQueryParam query);
|
List<StorageCellDto> queryAll(StorageCellQueryParam query);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID查询
|
||||||
|
*
|
||||||
|
* @param id ID
|
||||||
|
* @return StorageCellDto
|
||||||
|
*/
|
||||||
StorageCell getById(String id);
|
StorageCell getById(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID查询
|
||||||
|
*
|
||||||
|
* @param id ID
|
||||||
|
* @return StorageCellDto
|
||||||
|
*/
|
||||||
StorageCellDto findById(String id);
|
StorageCellDto findById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 插入一条新数据。
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param resources /
|
||||||
|
* @return StorageCellDto
|
||||||
*/
|
*/
|
||||||
int insert(StorageCellDto resources);
|
int insert(StorageCellDto resources);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id修改
|
||||||
|
* @param resources
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
int updateById(StorageCellDto resources);
|
int updateById(StorageCellDto resources);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id删除
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
int removeById(String id);
|
int removeById(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id批量删除
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
int removeByIds(Set<String> ids);
|
int removeByIds(Set<String> ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ import java.util.*;
|
|||||||
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
|
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
|
||||||
public class StorageCellServiceImpl extends CommonServiceImpl<StorageCellMapper, StorageCell> implements StorageCellService {
|
public class StorageCellServiceImpl extends CommonServiceImpl<StorageCellMapper, StorageCell> implements StorageCellService {
|
||||||
|
|
||||||
// private final RedisUtils redisUtils;
|
|
||||||
private final StorageCellMapper storageCellMapper;
|
private final StorageCellMapper storageCellMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -185,16 +184,7 @@ public class StorageCellServiceImpl extends CommonServiceImpl<StorageCellMapper,
|
|||||||
// return null;
|
// return null;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// @Override
|
|
||||||
// public StorageCellDto findByAddress(String address) {
|
|
||||||
// WQLObject wo = WQLObject.getWQLObject("acs_storage_cell");
|
|
||||||
// JSONObject json = wo.query("address ='" + address + "'").uniqueResult(0);
|
|
||||||
// if (ObjectUtil.isNotEmpty(json)){
|
|
||||||
// final StorageCellDto obj = json.toJavaObject(StorageCellDto.class);
|
|
||||||
// return obj;
|
|
||||||
// }
|
|
||||||
// return null;
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ import org.springframework.stereotype.Repository;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface StorageCellMapper extends CommonMapper<StorageCell> {
|
public interface StorageCellMapper extends CommonMapper<StorageCell> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据存储单元编号删除
|
||||||
|
* @param storage_code
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@Select("delete from acs_storage_cell where substring_index( storage_code,'-',1) = #{storage_code}")
|
@Select("delete from acs_storage_cell where substring_index( storage_code,'-',1) = #{storage_code}")
|
||||||
int deleteByStorageCode(@Param("storage_code") String storage_code);
|
int deleteByStorageCode(@Param("storage_code") String storage_code);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user