diff --git a/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java b/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java index 181522c8..16170ce6 100644 --- a/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java +++ b/ghy-admin/src/main/java/com/ghy/web/controller/goods/GoodsDeptCategoryController.java @@ -52,7 +52,7 @@ public class GoodsDeptCategoryController extends BaseController { @PostMapping("/listByStep") @ResponseBody - public AjaxResult listByStep(DeptGoodsCategory deptGoodsCategory) { + public AjaxResult listByStep(@RequestBody DeptGoodsCategory deptGoodsCategory) { try { return AjaxResult.success(deptGoodsCategoryService.listByStep(deptGoodsCategory)); }catch (Exception e){ diff --git a/ghy-admin/src/main/java/com/ghy/web/controller/system/SysAreaController.java b/ghy-admin/src/main/java/com/ghy/web/controller/system/SysAreaController.java index a9d1bf8d..7400c324 100644 --- a/ghy-admin/src/main/java/com/ghy/web/controller/system/SysAreaController.java +++ b/ghy-admin/src/main/java/com/ghy/web/controller/system/SysAreaController.java @@ -30,10 +30,10 @@ public class SysAreaController extends BaseController { @Resource private ISysAreaService sysAreaService; - @RequiresPermissions("system:area:list") +// @RequiresPermissions("system:area:list") @PostMapping("/list") @ResponseBody - public List list(SysArea sysArea) + public List list(@RequestBody SysArea sysArea) { List areaList = sysAreaService.selectSysAreaList(sysArea); return areaList; @@ -43,10 +43,10 @@ public class SysAreaController extends BaseController { * 新增保存区域 */ @Log(title = "区域管理", businessType = BusinessType.INSERT) - @RequiresPermissions("system:area:add") +// @RequiresPermissions("system:area:add") @PostMapping("/add") @ResponseBody - public AjaxResult addSave(@Validated SysArea sysArea) + public AjaxResult addSave(@Validated @RequestBody SysArea sysArea) { if (UserConstants.AREA_CODE_NOT_UNIQUE.equals(sysAreaService.checkAreaCodeUnique(sysArea))) { @@ -60,10 +60,10 @@ public class SysAreaController extends BaseController { * 修改保存区域 */ @Log(title = "区域管理", businessType = BusinessType.UPDATE) - @RequiresPermissions("system:area:edit") +// @RequiresPermissions("system:area:edit") @PostMapping("/edit") @ResponseBody - public AjaxResult editSave(@Validated SysArea sysArea) + public AjaxResult editSave(@Validated @RequestBody SysArea sysArea) { if (UserConstants.AREA_CODE_NOT_UNIQUE.equals(sysAreaService.checkAreaCodeUnique(sysArea))) { @@ -77,7 +77,7 @@ public class SysAreaController extends BaseController { * 删除 */ @Log(title = "区域管理", businessType = BusinessType.DELETE) - @RequiresPermissions("system:area:remove") +// @RequiresPermissions("system:area:remove") @GetMapping("/remove/{areaId}") @ResponseBody public AjaxResult remove(@PathVariable("areaId") Long areaId) diff --git a/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java b/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java index cd7da399..eb777fa3 100644 --- a/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java +++ b/ghy-framework/src/main/java/com/ghy/framework/config/ShiroConfig.java @@ -282,6 +282,7 @@ public class ShiroConfig filterChainDefinitionMap.put("/goods/**", "anon"); filterChainDefinitionMap.put("/tool/**", "anon"); filterChainDefinitionMap.put("/adapay/**", "anon"); + filterChainDefinitionMap.put("/system/area/**", "anon"); filterChainDefinitionMap.put("/MP_verify_bRFuvYpyQ4WLr0on.txt", "anon"); // 对静态资源设置匿名访问 filterChainDefinitionMap.put("/favicon.ico**", "anon"); diff --git a/ghy-order/src/main/java/com/ghy/order/domain/OrderDetailGoods.java b/ghy-order/src/main/java/com/ghy/order/domain/OrderDetailGoods.java deleted file mode 100644 index 24a18c9d..00000000 --- a/ghy-order/src/main/java/com/ghy/order/domain/OrderDetailGoods.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.ghy.order.domain; - -import com.ghy.common.core.domain.BaseEntity; -import lombok.Data; - -/** - * @author clunt - * 拆单后细单关联商品 - */ -@Data -public class OrderDetailGoods extends BaseEntity { - - - -} diff --git a/ghy-order/src/main/java/com/ghy/order/domain/OrderGoods.java b/ghy-order/src/main/java/com/ghy/order/domain/OrderGoods.java new file mode 100644 index 00000000..7d133d87 --- /dev/null +++ b/ghy-order/src/main/java/com/ghy/order/domain/OrderGoods.java @@ -0,0 +1,41 @@ +package com.ghy.order.domain; + +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ghy.common.annotation.Excel; +import com.ghy.common.core.domain.BaseEntity; +import lombok.Data; + +import java.util.Date; + +/** + * @author clunt + * 订单关联商品,即所有商品清单 + */ +@Data +public class OrderGoods extends BaseEntity { + + private static final long serialVersionUID = 1L; + + @Excel(name = "订单商品id") + private Long orderGoodsId; + + @Excel(name = "订单id, 可以为主单或者细单", cellType = Excel.ColumnType.NUMERIC) + private Long orderId; + + @Excel(name = "商品id", cellType = Excel.ColumnType.NUMERIC) + private Long goodsId; + + @Excel(name = "商品名称", cellType = Excel.ColumnType.STRING) + private String goodsName; + + @Excel(name = "商品数量", cellType = Excel.ColumnType.NUMERIC) + private Integer goodsNum; + + @Excel(name = "已服务数量", cellType = Excel.ColumnType.NUMERIC) + private Integer serverGoodsNum; + + /** 创建时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date finishTime; + +} diff --git a/ghy-order/src/main/java/com/ghy/order/domain/OrderMasterGoods.java b/ghy-order/src/main/java/com/ghy/order/domain/OrderMasterGoods.java deleted file mode 100644 index 63b7e4b5..00000000 --- a/ghy-order/src/main/java/com/ghy/order/domain/OrderMasterGoods.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.ghy.order.domain; - -import com.ghy.common.core.domain.BaseEntity; -import lombok.Data; - -/** - * @author clunt - * 主单关联商品,即所有商品清单 - */ -@Data -public class OrderMasterGoods extends BaseEntity { - - private static final long serialVersionUID = 1L; - -} diff --git a/ghy-order/src/main/java/com/ghy/order/mapper/OrderGoodsMapper.java b/ghy-order/src/main/java/com/ghy/order/mapper/OrderGoodsMapper.java new file mode 100644 index 00000000..70c82271 --- /dev/null +++ b/ghy-order/src/main/java/com/ghy/order/mapper/OrderGoodsMapper.java @@ -0,0 +1,4 @@ +package com.ghy.order.mapper; + +public interface OrderGoodsMapper { +} diff --git a/ghy-order/src/main/java/com/ghy/order/service/OrderGoodsService.java b/ghy-order/src/main/java/com/ghy/order/service/OrderGoodsService.java new file mode 100644 index 00000000..54f73e00 --- /dev/null +++ b/ghy-order/src/main/java/com/ghy/order/service/OrderGoodsService.java @@ -0,0 +1,4 @@ +package com.ghy.order.service; + +public interface OrderGoodsService { +} diff --git a/ghy-order/src/main/java/com/ghy/order/service/impl/OrderGoodsServiceImpl.java b/ghy-order/src/main/java/com/ghy/order/service/impl/OrderGoodsServiceImpl.java new file mode 100644 index 00000000..32c6da44 --- /dev/null +++ b/ghy-order/src/main/java/com/ghy/order/service/impl/OrderGoodsServiceImpl.java @@ -0,0 +1,12 @@ +package com.ghy.order.service.impl; + +import com.ghy.order.service.OrderGoodsService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +@Slf4j +@Service +public class OrderGoodsServiceImpl implements OrderGoodsService { + + +} diff --git a/ghy-system/src/main/resources/mapper/system/SysAreaMapper.xml b/ghy-system/src/main/resources/mapper/system/SysAreaMapper.xml index c203c21a..0a2c7cfb 100644 --- a/ghy-system/src/main/resources/mapper/system/SysAreaMapper.xml +++ b/ghy-system/src/main/resources/mapper/system/SysAreaMapper.xml @@ -32,6 +32,9 @@