|
@@ -1,9 +1,11 @@
|
|
|
package cn.com.ctop.kuaishou.modules.label.controller;
|
|
|
|
|
|
-import cn.com.ctop.kuaishou.modules.clean.entity.KuaiShouAccountCleanTemplateInfo;
|
|
|
import cn.com.ctop.kuaishou.modules.label.service.MaterialLabelService;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
@@ -20,26 +22,27 @@ public class LbelController {
|
|
|
|
|
|
@Resource
|
|
|
MaterialLabelService materialTagService;
|
|
|
+
|
|
|
/**
|
|
|
- * 查询标签
|
|
|
+ * 查询所有指标数据
|
|
|
*
|
|
|
* @param
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/filterMaterial")
|
|
|
- public Result createCleanTemplate(){
|
|
|
- return materialTagService.filterMaterial();
|
|
|
+ public Result createCleanTemplate(@Param("type") String type) {
|
|
|
+ return materialTagService.filterMaterial(type);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询标签
|
|
|
+ * 根据指标数据打标签
|
|
|
*
|
|
|
* @param
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping ("/materialSpecificationLabel")
|
|
|
- public Result materialSpecificationLabel(){
|
|
|
- return materialTagService.materialSpecificationLabel();
|
|
|
+ @GetMapping("/materialSpecificationLabel")
|
|
|
+ public Result materialSpecificationLabel(@Param("type") String type) {
|
|
|
+ return materialTagService.materialSpecificationLabel(type);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -48,8 +51,8 @@ public class LbelController {
|
|
|
* @param
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping ("/SynchronousLabel")
|
|
|
- public Result SynchronousLabel(){
|
|
|
- return materialTagService.SynchronousLabel();
|
|
|
+ @GetMapping("/SynchronousLabel")
|
|
|
+ public Result SynchronousLabel(@Param("type") String type) {
|
|
|
+ return materialTagService.SynchronousLabel(type);
|
|
|
}
|
|
|
}
|