‘linchangsheng’ 7 månader sedan
förälder
incheckning
603e959af1

+ 14 - 0
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/controller/workorder/OrderBaseController.java

@@ -8,6 +8,7 @@ import com.gree.mall.miniapp.enums.workorder.OrderFlagEnum;
 import com.gree.mall.miniapp.helper.ResponseHelper;
 import com.gree.mall.miniapp.logic.workorder.OrderBaseLogic;
 import com.gree.mall.miniapp.logic.workorder.OrderLogLogic;
+import com.gree.mall.miniapp.plus.entity.Abnormal;
 import com.gree.mall.miniapp.plus.entity.OrderSmallType;
 import com.gree.mall.miniapp.plus.entity.PgOrderOperatorLog;
 import io.swagger.annotations.Api;
@@ -18,6 +19,8 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.integration.redis.util.RedisLockRegistry;
 import org.springframework.web.bind.annotation.*;
 
+import javax.servlet.http.HttpServletRequest;
+import java.text.ParseException;
 import java.util.List;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.locks.Lock;
@@ -186,4 +189,15 @@ public class OrderBaseController {
         return ResponseHelper.success();
     }
 
+    @PostMapping("/abnormalList")
+    @ApiOperation("配置列表")
+    public ResponseHelper<List<Abnormal>> abnormalList(
+            @ApiParam(value = "exType", required = false) @RequestParam String exType,
+            HttpServletRequest request
+    ) throws ParseException {
+        List<Abnormal> abnormalVO = orderLogLogic.abnormalList(exType);
+        return ResponseHelper.success(abnormalVO);
+    }
+
+
 }

+ 5 - 0
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/workorder/OrderLogLogic.java

@@ -36,6 +36,7 @@ public class OrderLogLogic {
     private final NoticeRecordService noticeRecordService;
     private final PgOrderWorkerService pgOrderWorkerService;
     private final PgOrderProductService pgOrderProductService;
+    private final AbnormalService abnormalService;
 
     /**
      * 工单操作明细
@@ -260,4 +261,8 @@ public class OrderLogLogic {
         }
     }
 
+    public List<Abnormal> abnormalList(String exType) {
+
+        return abnormalService.lambdaQuery().eq(Abnormal::getExType,exType).list();
+    }
 }