MT8205Controller.java 885 字节
package com.sunyo.wlpt.message.builder.controller;

import com.sunyo.wlpt.message.builder.service.MT8205Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;

@RequestMapping(value = "/mt8205")
@RestController
public class MT8205Controller {

    @Autowired
    private MT8205Service mt8205Service;

    @PostMapping(value = "/creatMt8205")
    @ResponseBody
    public Map<String, Object> creatMt8205(@RequestBody Map<String, Object> map){

        try {

            return mt8205Service.create8205(map);
        }catch (Exception e){
            e.printStackTrace();
            Map<String, Object> maps = new HashMap<>();
            maps.put("status", "0");
            return maps;
        }
    }

}