package com.gx.obe.server.management.table.controller; import com.gx.obe.server.common.base.BaseController; import com.gx.obe.server.management.table.entity.ObeBidPriceTableTitle; import com.gx.obe.server.management.table.service.ObeBidPriceTableTitleService; import io.swagger.annotations.Api; import lombok.AllArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * @author mazc * @Description: */ @Api(tags = "") @RestController @AllArgsConstructor @RequestMapping("/obeBidPriceTableTitle") public class ObeBidPriceTableTitleController extends BaseController { @Autowired public ObeBidPriceTableTitleService ObeBidPriceTableTitleServices; /** * @param ObeBidPriceTableTitleList * @Description: 批量插入 * @author mazc */ @PostMapping("/insertByBatch") public int insertByBatch(@RequestBody List ObeBidPriceTableTitleList) { return ObeBidPriceTableTitleServices.insertByBatch(ObeBidPriceTableTitleList); } /** * @param ObeBidPriceTableTitleList * @Description: 批量更新 * @author mazc */ @PostMapping("/updateByBatch") public int updateByBatch(@RequestBody List ObeBidPriceTableTitleList) { return ObeBidPriceTableTitleServices.updateByBatch(ObeBidPriceTableTitleList); } }