| | |
| | | */ |
| | | package com.vci.ubcs.code.feign; |
| | | |
| | | import com.vci.ubcs.code.entity.CodeWupin; |
| | | import com.vci.ubcs.starter.revision.model.BaseModel; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.mp.support.BladePage; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.beans.IntrospectionException; |
| | | import java.lang.reflect.InvocationTargetException; |
| | | import java.sql.SQLException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @return 查询出的数据 |
| | | */ |
| | | @GetMapping(SELECT_BY_TYPE_OID) |
| | | R<List<BaseModel>> selectByTypeAndOid(@RequestParam("btmType") String btmType, @RequestParam("oids") String oids) throws SQLException, IntrospectionException, NoSuchFieldException, InvocationTargetException, IllegalAccessException, InstantiationException; |
| | | R<List<BaseModel>> selectByTypeAndOid(@RequestParam("btmType") String btmType, @RequestParam("oids") String oids); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param baseModels 处理数据 |
| | | * @return 处理成功数据条数 |
| | | */ |
| | | @GetMapping(INSERT_BATCH_BY_TYPE) |
| | | R<Integer> insertBatchByType(String btmType, List<BaseModel> baseModels) throws Exception; |
| | | @PostMapping(INSERT_BATCH_BY_TYPE) |
| | | R<Integer> insertBatchByType(@RequestParam("btmType")String btmType,@RequestBody List<BaseModel> baseModels); |
| | | } |