|
@@ -7,6 +7,9 @@ import com.steerinfo.dil.model.ColumnData;
|
|
|
import com.steerinfo.dil.service.IColumnDataService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
@@ -18,6 +21,8 @@ import java.util.Map;
|
|
|
* @Version 1.0
|
|
|
*/
|
|
|
@Service
|
|
|
+@RestController
|
|
|
+@ApiIgnore
|
|
|
public class ColumnDataService implements IColumnDataService {
|
|
|
|
|
|
@Autowired
|
|
@@ -27,6 +32,7 @@ public class ColumnDataService implements IColumnDataService {
|
|
|
ApiMapper apiMapper;
|
|
|
|
|
|
|
|
|
+ @RequestMapping("getColumnData")
|
|
|
@Override
|
|
|
public List<Map<String, Object>> getColumnData(Integer apiId) {
|
|
|
return columnDataMapper.selectColumnDataById(apiId);
|
|
@@ -79,4 +85,9 @@ public class ColumnDataService implements IColumnDataService {
|
|
|
public Integer updateApi(Api api) {
|
|
|
return apiMapper.updateByPrimaryKeySelective(api);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer deleteByApiId(BigDecimal apiId) {
|
|
|
+ return columnDataMapper.deleteByApiId(apiId);
|
|
|
+ }
|
|
|
}
|