package ${classPath};

import com.ag.dynamicmodule.service.IBaseServiceImpl;
import com.alibaba.fastjson.JSON;
import com.wb.util.WebUtil;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
* Description:
* Author: ${author}
* Version: ${version}
* Create Date: ${date}
*/
@Component
public class ${className} {
    @Autowired
    private IBaseServiceImpl baseService;

    /**
    * Description:
    * @param object
    * @param response
    * @param request
    * @return Note: Nothing much.
    */
    @Transactional(rollbackFor = Exception.class)
    public void saveCVesselCodeMethod(JSONObject object, HttpServletResponse response, HttpServletRequest request) {
        //CVesselCode cVesselCode = JSON.parseObject(object.getString("cVesselCodeData"), CVesselCode.class);
        baseService.setParameterValue(null,request);
        //保存数据
        //cVesselCodeBO.save(cVesselCode);
        try {
            String  reJson= JSON.toJSONString(null);
            WebUtil.send(response,null);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}