YPZ 3 týždňov pred
rodič
commit
f5f02b4bfe

+ 13 - 0
java/storlead-sasa/storlead-trade/src/main/java/com/storlead/trade/controller/MarketingCampaignSopDetailController.java

@@ -30,6 +30,19 @@ public class MarketingCampaignSopDetailController {
     @Resource
     private MarketingCampaignSopDetailService marketingCampaignSopDetailService;
 
+    /**
+     * 根据id查询详情
+     */
+    @GetMapping("/get/{id}")
+    @ApiOperation(value = "根据id查询营销活动SOP明细详情", notes = "根据主键id查询详情")
+    public Result<Object> getById(@PathVariable Long id) {
+        MarketingCampaignSopDetailEntity entity = marketingCampaignSopDetailService.getById(id);
+        if (entity == null) {
+            return Result.error("数据不存在");
+        }
+        return Result.result(entity);
+    }
+
     /**
      * 分页查询
      */