package com.rongwei.bsserver.controller; import com.rongwei.bscommon.sys.service.TestrunService; import com.rongwei.rwcommon.base.R; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.Map; @RestController @RequestMapping("/testrun") @Slf4j public class TestrunController { @Autowired TestrunService testrunService; @PostMapping("/dataImport") @ResponseBody public R dataImport(@RequestBody Map map) { testrunService.DataUpdate(map); return R.ok(); } @PostMapping("/dataImport2") @ResponseBody public R dataImport2(@RequestBody Map map) { testrunService.Datasave(map); return R.ok(); } }