All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.wicp.tams.common.spring.connector.Test Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version
package net.wicp.tams.common.spring.connector;

import org.springframework.stereotype.Service;

import net.wicp.tams.common.Result;
import net.wicp.tams.common.connector.beans.CusDynaBean;
import net.wicp.tams.common.connector.executor.IBusiApp;
import net.wicp.tams.common.exception.ProjectException;

/**
 * 
 *测试用的协议 eg: {"param1":"aaa",
 *               "ControlInfo":{"requestCommand":"test","senderSystem":"IV","senderApplication":"Hammer","version":"1.0","senderChannel":"H5","msgId":"aaaaa"}}
 * @author zhoujunhui 2019年1月5日
 */
@Service(value = "test")
public class Test implements IBusiApp {

	@Override
	public CusDynaBean exe(CusDynaBean inputBean, CusDynaBean outBeanOri) throws ProjectException {
		String param1 = inputBean.getStrValueByName("param1");
		Result ret = Result.getSuc("调用成功");
		outBeanOri.setResult(ret);
		outBeanOri.set("ret1", "hello " + param1);
		return outBeanOri;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy