package com.engine.htsc.lhhtsq.Web;

import com.engine.common.util.ParamUtil;
import com.engine.common.util.ServiceUtil;
import com.engine.cube.cmd.Params;
import com.engine.htsc.lhhtsq.Serivce.LhhtsqBaseService;
import com.engine.htsc.lhhtsq.Serivce.LhhtsqOldToDataService;
import com.engine.htsc.lhhtsq.Serivce.impl.LhhtsqBaseServiceImpl;
import com.engine.htsc.lhhtsq.Serivce.impl.LhhtsqOldToDataServiceImpl;
import com.engine.htsc.lhhtsq.enity.OtherDatavalue;
import oracle.sql.JAVA_STRUCT;
import weaver.general.Util;
import weaver.interfaces.htsc.GlobatTools.JAVATools;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import java.util.HashMap;
import java.util.Map;

/**
 * @author xf
 * @version 1.0.0
 * @ClassName LhhtsqOldToDataAction.java
 * @createTime 2021年12月14日 13:55:00
 */
public class LhhtsqOldToDataAction {


    private LhhtsqOldToDataService getlhhtsqOldToDataService()
    {
        return ServiceUtil.getService(LhhtsqOldToDataServiceImpl.class);
    }


    /*
     * @title Updatebase
     * @remark 提供xp平台修改数据
     * @author xf
     * @Params：
       * @param:
     * @updateTime 2021/12/14 13:57
     * @return: java.lang.String
     **/
    @POST
    @Path("/updatebase")
    @Consumes({MediaType.APPLICATION_JSON})
    @Produces({MediaType.TEXT_PLAIN})
    public String updatebase(OtherDatavalue otherDatavalue){
        JAVATools.SetCmdwritelog("联合合同老系统触发修改数据：");

        if(otherDatavalue==null){
            return JAVATools.Apiretrun("400","参数有误！");
        }
        JAVATools.SetCmdwritelog(otherDatavalue.toString());
       return getlhhtsqOldToDataService().updatebase(otherDatavalue);
    }

}
