fix: materialbase
This commit is contained in:
@@ -27,6 +27,12 @@ public class MaterialbaseController {
|
|||||||
|
|
||||||
private final MaterialbaseService materialbaseService;
|
private final MaterialbaseService materialbaseService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询物料基本信息
|
||||||
|
* @param query
|
||||||
|
* @param pageable
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@GetMapping
|
@GetMapping
|
||||||
@Log("查询物料基本信息")
|
@Log("查询物料基本信息")
|
||||||
@ApiOperation("查询物料基本信息")
|
@ApiOperation("查询物料基本信息")
|
||||||
@@ -35,6 +41,11 @@ public class MaterialbaseController {
|
|||||||
return new ResponseEntity<>(materialbaseService.queryAll(query, pageable), HttpStatus.OK);
|
return new ResponseEntity<>(materialbaseService.queryAll(query, pageable), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增物料基本信息
|
||||||
|
* @param resources
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@Log("新增物料基本信息")
|
@Log("新增物料基本信息")
|
||||||
@ApiOperation("新增物料基本信息")
|
@ApiOperation("新增物料基本信息")
|
||||||
@@ -43,6 +54,11 @@ public class MaterialbaseController {
|
|||||||
return new ResponseEntity<>(materialbaseService.insert(resources), HttpStatus.CREATED);
|
return new ResponseEntity<>(materialbaseService.insert(resources), HttpStatus.CREATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改物料基本信息
|
||||||
|
* @param resources
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@Log("修改物料基本信息")
|
@Log("修改物料基本信息")
|
||||||
@ApiOperation("修改物料基本信息")
|
@ApiOperation("修改物料基本信息")
|
||||||
@@ -52,6 +68,11 @@ public class MaterialbaseController {
|
|||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除物料基本信息
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
@Log("删除物料基本信息")
|
@Log("删除物料基本信息")
|
||||||
@ApiOperation("删除物料基本信息")
|
@ApiOperation("删除物料基本信息")
|
||||||
|
|||||||
@@ -35,19 +35,48 @@ public interface MaterialbaseService extends CommonService<Materialbase> {
|
|||||||
*/
|
*/
|
||||||
List<MaterialbaseDto> queryAll(MaterialbaseQueryParam query);
|
List<MaterialbaseDto> queryAll(MaterialbaseQueryParam query);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID查询
|
||||||
|
*
|
||||||
|
* @param id ID
|
||||||
|
* @return MaterialbaseDto
|
||||||
|
*/
|
||||||
Materialbase getById(String id);
|
Materialbase getById(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据ID查询
|
||||||
|
*
|
||||||
|
* @param id ID
|
||||||
|
* @return MaterialbaseDto
|
||||||
|
*/
|
||||||
MaterialbaseDto findById(String id);
|
MaterialbaseDto findById(String id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 插入一条新数据。
|
* 插入一条新数据。
|
||||||
|
* @param resources
|
||||||
|
* @return
|
||||||
*/
|
*/
|
||||||
int insert(MaterialbaseDto resources);
|
int insert(MaterialbaseDto resources);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id修改
|
||||||
|
* @param resources
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
int updateById(MaterialbaseDto resources);
|
int updateById(MaterialbaseDto resources);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据id删除
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
int removeById(String id);
|
int removeById(String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 多选删除
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
int removeByIds(Set<String> ids);
|
int removeByIds(Set<String> ids);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -15,10 +15,6 @@ import org.nl.acs.materialbase.service.mapper.MaterialbaseMapper;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Propagation;
|
import org.springframework.transaction.annotation.Propagation;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
// 默认不使用缓存
|
|
||||||
//import org.springframework.cache.annotation.CacheConfig;
|
|
||||||
//import org.springframework.cache.annotation.CacheEvict;
|
|
||||||
//import org.springframework.cache.annotation.Cacheable;
|
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|||||||
Reference in New Issue
Block a user