MT2201Controller.java
989 字节
package com.sunyo.wlpt.message.builder.controller;
import com.sunyo.wlpt.message.builder.service.MT2201Service;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.io.IOException;
import java.util.Map;
@RestController
@RequestMapping(value = "/mt2201")
public class MT2201Controller {
@Autowired
private MT2201Service mt2201Service;
/**
* 生成报文
* @param map
* @return
*/
@RequestMapping("/creatMt2201")
@ApiOperation(value = "生成报文")
@ResponseBody
public int creatMt2201(@RequestBody Map<String, Object> map) throws IOException {
int i = mt2201Service.creatMt2201(map);
return i;
}
}