燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2024-11-13 2f55cebbad3dea187a5f91d16ec80a9677dab699
src/main/java/com/yssh/controller/FeedbackController.java
@@ -3,29 +3,29 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.yssh.service.IFeedbackService;
import com.yssh.service.FeedbackService;
import com.yssh.utils.Result;
import javax.annotation.Resource;
@Api(tags="溯源反馈")
@RestController
@RequestMapping("/feedback")
@SuppressWarnings("rawtypes")
public class FeedbackController {
   @Resource
   private FeedbackService feedbackService;
   @Autowired
   private IFeedbackService feedbackService;
   @GetMapping("/feedback")
    @ApiOperation(value = "溯源反馈", notes = "进行溯源反馈")
    public Result suYuanFeedback(
          @RequestParam(value = "id", required = true) Long id, @RequestParam(value = "practicalId", required = true) String practicalId,
          @RequestParam(value = "practicalVocsName", required = true) String practicalVocsName, @RequestParam(value = "practicalValue", required = true) double practicalValue){
        return Result.OK(feedbackService.suYuanFeedback(id, practicalId, practicalVocsName, practicalValue));
    }
   @ApiOperation(value = "溯源反馈", notes = "进行溯源反馈")
   public Result suYuanFeedback(
         @RequestParam(value = "id", required = true) Long id, @RequestParam(value = "practicalId", required = true) String practicalId,
         @RequestParam(value = "practicalVocsName", required = true) String practicalVocsName, @RequestParam(value = "practicalValue", required = true) double practicalValue) {
      return Result.OK(feedbackService.suYuanFeedback(id, practicalId, practicalVocsName, practicalValue));
   }
}