package com.changhong.epc.rely.api.epc.tenant;
|
|
import com.alibaba.fastjson.TypeReference;
|
import com.changhong.epc.bean.tenant.norm.SuppStander;
|
import com.changhong.epc.bean.tenant.norm.extend.SuppStanderExtend;
|
import com.changhong.epc.constter.system.SystemClients;
|
import com.changhong.epc.constter.system.run.EpcRestInterface;
|
import com.changhong.epc.constter.tenant.TenantUrlConst;
|
import com.changhong.epc.rely.api.epc.BaseApi;
|
import com.iemsoft.framework.cloud.core.base.ResMsg;
|
import com.iemsoft.framework.cloud.core.tools.JSONTool;
|
import com.iemsoft.framework.cloud.core.tools.SpringUtil;
|
import com.iemsoft.framework.cloud.ribbon.RestInterface;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 补助标准查询api
|
*/
|
@Service
|
public class SuppStanderApi extends BaseApi implements SystemClients, TenantUrlConst {
|
|
public List<SuppStanderExtend> getSuppStanderExtend(Integer ctId){
|
ResMsg<List<SuppStanderExtend>> resMsg =
|
(ResMsg<List<SuppStanderExtend>>)
|
SpringUtil.getBean(SERVER_TENANT.getBeanName(), RestInterface.class)
|
.post(REST_TENANT_NORMTYPE_SELECT
|
, SuppStander.of(ctId)
|
, new TypeReference<ResMsg<List<SuppStanderExtend>>>(){}.getType()
|
, EpcRestInterface.getEpcHeads()
|
);
|
assertSuccess(resMsg);
|
return JSONTool.toList(JSONTool.toJson(resMsg.getData()), SuppStanderExtend.class);
|
}
|
|
}
|