去掉supermarket_material表
This commit is contained in:
parent
e2c35c5092
commit
f8b857ee93
|
|
@ -104,7 +104,7 @@ public class CookMaterialTypeController extends BaseController {
|
|||
@ApiOperation(value = "原料树形结构")
|
||||
@SysLog(title = "原料树形结构", businessType = OperaType.QUERY, logType = 1,module = "经研院食堂->原料管理->原料树形结构")
|
||||
@PostMapping("/getTree")
|
||||
public AjaxResult getTree() {
|
||||
return success(cookMaterialTypeService.getTree());
|
||||
public AjaxResult getTree(@RequestBody CookMaterialType cookMaterialType) {
|
||||
return success(cookMaterialTypeService.getTree(cookMaterialType));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,5 +79,5 @@ public interface CookMaterialTypeMapper {
|
|||
*
|
||||
* @return 原料类别树
|
||||
*/
|
||||
public List<CookMaterialTypeTreeVO> getTree();
|
||||
public List<CookMaterialTypeTreeVO> getTree(CookMaterialType cookMaterialType);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,5 +56,5 @@ public interface ICookMaterialTypeService {
|
|||
*
|
||||
* @return 原料类别树形结构
|
||||
*/
|
||||
public List<CookMaterialTypeTreeVO> getTree();
|
||||
public List<CookMaterialTypeTreeVO> getTree(CookMaterialType cookMaterialType);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,8 +135,8 @@ public class CookMaterialTypeServiceImpl implements ICookMaterialTypeService {
|
|||
* @return 原料类别树形结构
|
||||
*/
|
||||
@Override
|
||||
public List<CookMaterialTypeTreeVO> getTree() {
|
||||
List<CookMaterialTypeTreeVO> treeList = cookMaterialTypeMapper.getTree();
|
||||
public List<CookMaterialTypeTreeVO> getTree(CookMaterialType cookMaterialType) {
|
||||
List<CookMaterialTypeTreeVO> treeList = cookMaterialTypeMapper.getTree(cookMaterialType);
|
||||
return TreeNodeUtil.assembleTree(treeList);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue