Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -2,7 +2,9 @@ package com.czg.controller.admin;
|
|||||||
|
|
||||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||||
import com.czg.account.dto.pad.*;
|
import com.czg.account.dto.pad.*;
|
||||||
|
import com.czg.account.entity.PadLayout;
|
||||||
import com.czg.account.entity.PadProductCategoryDetail;
|
import com.czg.account.entity.PadProductCategoryDetail;
|
||||||
|
import com.czg.account.service.PadLayoutService;
|
||||||
import com.czg.account.service.PadProdService;
|
import com.czg.account.service.PadProdService;
|
||||||
import com.czg.annotation.SaAdminCheckPermission;
|
import com.czg.annotation.SaAdminCheckPermission;
|
||||||
import com.czg.resp.CzgResult;
|
import com.czg.resp.CzgResult;
|
||||||
@@ -25,6 +27,18 @@ import java.util.Map;
|
|||||||
public class PadProdController {
|
public class PadProdController {
|
||||||
@Resource
|
@Resource
|
||||||
private PadProdService padProdService;
|
private PadProdService padProdService;
|
||||||
|
@Resource
|
||||||
|
private PadLayoutService padLayoutService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* pad布局列表
|
||||||
|
* @return 数据
|
||||||
|
*/
|
||||||
|
@SaAdminCheckPermission(value = "padProd:layout:list", name = "pad布局列表")
|
||||||
|
@GetMapping("/layout")
|
||||||
|
public CzgResult<Page<PadLayout>> layout() {
|
||||||
|
return CzgResult.success(padLayoutService.page(PageUtil.buildPage()));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取点餐列表
|
* 获取点餐列表
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public class CzgControllerAdvice {
|
|||||||
public CzgResult<Object> errorHandler(Exception ex) {
|
public CzgResult<Object> errorHandler(Exception ex) {
|
||||||
setErrorLog(ex);
|
setErrorLog(ex);
|
||||||
log.error("", ex);
|
log.error("", ex);
|
||||||
return CzgResult.failure(CzgRespCode.SYSTEM_ERROR);
|
return CzgResult.failure(CzgRespCode.SYSTEM_ERROR.getCode(), ex.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public class PrintMachine implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 店铺Id
|
* 店铺Id
|
||||||
*/
|
*/
|
||||||
private String shopId;
|
private Long shopId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分类Id
|
* 分类Id
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public class PrintMachineServiceImpl extends ServiceImpl<PrintMachineMapper, Pri
|
|||||||
dto.setCategoryList(null);
|
dto.setCategoryList(null);
|
||||||
}
|
}
|
||||||
PrintMachine entity = BeanUtil.copyProperties(dto, PrintMachine.class);
|
PrintMachine entity = BeanUtil.copyProperties(dto, PrintMachine.class);
|
||||||
|
entity.setShopId(shopId);
|
||||||
return save(entity);
|
return save(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user