SynZhjInfoController.java 1.71 KB
package com.pashanhoo.zhj.controller;

import com.pashanhoo.common.Result;
import com.pashanhoo.zhj.service.ZhjDatasSynService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/zhj/")
@Api(tags = "智慧局信息同步相关接口")
public class SynZhjInfoController {

    @Autowired
    private ZhjDatasSynService zhjDatasSynService;

    @PostMapping("ZhjDatasSynInfo")
    @ApiOperation("定时智慧局数据同步接口")
    public Result ZhjDatasSynInfo() {
        zhjDatasSynService.send_bdcYwInfo();
        return Result.ok();
    }
    @PostMapping("synZdInfoByywh")
    @ApiOperation("手动执行智慧局数据同步接口")
    public Result synZdInfoByywh(@ApiParam("业务号")@RequestParam String ywh) {
        zhjDatasSynService.synZdInfoByywh(ywh);
        return Result.ok();
    }
    @PostMapping("synHInfoByYwh")
    @ApiOperation("手动执行智慧局数据同步接口")
    public Result synHInfoByYwh(@ApiParam("业务号")@RequestParam String ywh) {
        zhjDatasSynService.synHInfoByYwh(ywh);
        return Result.ok();
    }
    @PostMapping("synQSZTInfoByYwh")
    @ApiOperation("手动执行智慧局数据同步接口")
    public Result synQSZTInfoByYwh(@ApiParam("业务号")@RequestParam String ywh) {
        zhjDatasSynService.synQSZTInfoByYwh(ywh);
        return Result.ok();
    }

}