|
|
|
@ -35,12 +35,12 @@ import java.util.List;
|
|
|
|
|
* @author wu
|
|
|
|
|
* @since 2024/4/26 下午4:40
|
|
|
|
|
*/
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("mudu/test")
|
|
|
|
|
@Api(tags = "班前班后以及特殊作业的数据接收")
|
|
|
|
|
//@RestController
|
|
|
|
|
//@RequestMapping("mudu/test")
|
|
|
|
|
//@Api(tags = "班前班后以及特殊作业的数据接收")
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
//@Configuration
|
|
|
|
|
//@EnableScheduling
|
|
|
|
|
@Configuration
|
|
|
|
|
@EnableScheduling
|
|
|
|
|
public class BqbhTszyQuartz {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@ -62,9 +62,9 @@ public class BqbhTszyQuartz {
|
|
|
|
|
/**
|
|
|
|
|
* 保存班前班后数据
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/bqbh")
|
|
|
|
|
@ApiOperation(value = "保存班前班后数据")
|
|
|
|
|
// @Scheduled(cron = "0 0 1 * * ? ")
|
|
|
|
|
// @GetMapping("/bqbh")
|
|
|
|
|
// @ApiOperation(value = "保存班前班后数据")
|
|
|
|
|
@Scheduled(cron = "0 0 1 * * ? ")
|
|
|
|
|
// @Scheduled(cron = "0 0/5 * * * ?")
|
|
|
|
|
public void saveBqbh() {
|
|
|
|
|
String res = HttpRequest.get(bqbhUrl).contentType("application/x-www-form-urlencoded;charset=UTF-8").execute().body();
|
|
|
|
|