package com.changhong.epc.tenant.controller.norm; import com.changhong.epc.bean.tenant.cost.CostType; import com.changhong.epc.bean.tenant.norm.SuppStander; import com.changhong.epc.bean.tenant.norm.extend.SuppStanderExtend; import com.changhong.epc.bean.tenant.norm.extend.SuppStanderExtends; import com.changhong.epc.bean.tenant.norm.way.ReiWay; import com.changhong.epc.constter.tenant.TenantUrlConst; import com.changhong.epc.tenant.service.norm.SuppStanderService; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; @RestController public class SuppStanderController implements TenantUrlConst { @Resource(name="suppStanderService") private SuppStanderService suppStanderService; /** * 添加费用类型 * 和费用维度 * */ @PostMapping(REST_TENANT_NORMTYPE_INSERT) public int AppAndSuppSave(@RequestBody SuppStanderExtends suppStander){ return suppStanderService.AppAndSuppSave(suppStander); } /** * 按类型查询费用类型和维度 * * */ @PostMapping(REST_TENANT_NORMTYPE_SELECT) public List selectById(@RequestBody SuppStander suppStander){ return suppStanderService.selectByid(suppStander); } /** * 获得补助标准对应费用类型ids * @return */ @PostMapping(REST_TENANT_NORM_COSTTYPE_IDS) public List selectCostTypeIds(){ return suppStanderService.selectCostTypeIds(); } /** * 查询报销方式 */ @PostMapping(REST_TENANT_WAY_SELECT) public List selectWay(){ return suppStanderService.selectWay(); } }