| | |
| | | import com.ruoyi.measuringinstrumentledger.pojo.MeasuringInstrumentLedgerRecord; |
| | | import com.ruoyi.measuringinstrumentledger.service.MeasuringInstrumentLedgerRecordService; |
| | | import io.jsonwebtoken.lang.Collections; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | |
| | | * @date : 2025/8/5 9:28 |
| | | */ |
| | | @RestController |
| | | @Api(tags = "计量器具台账记录") |
| | | @Tag(name = "计量器具台账记录") |
| | | @RequestMapping("/measuringInstrumentLedgerRecord") |
| | | @AllArgsConstructor |
| | | public class MeasuringInstrumentLedgerRecordController extends BaseController { |
| | | |
| | | @Autowired |
| | | private MeasuringInstrumentLedgerRecordService measuringInstrumentLedgerRecordService; |
| | | |
| | | |
| | | @GetMapping("/listPage") |
| | | @ApiOperation("计量器具台账记录-分页查询") |
| | | @Operation(summary = "计量器具台账记录-分页查询") |
| | | @Log(title = "计量器具台账记录-分页查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, MeasuringInstrumentLedgerRecord measuringInstrumentLedgerRecord){ |
| | | IPage<MeasuringInstrumentLedgerRecord> listPage = measuringInstrumentLedgerRecordService.listPage(page, measuringInstrumentLedgerRecord); |
| | |
| | | } |
| | | |
| | | @PostMapping("/update") |
| | | @ApiOperation("计量器具台账记录-修改") |
| | | @Operation(summary = "计量器具台账记录-修改") |
| | | @Log(title = "计量器具台账记录-修改", businessType = BusinessType.UPDATE) |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public AjaxResult update(@RequestBody MeasuringInstrumentLedgerRecord measuringInstrumentLedgerRecord) throws IOException { |
| | |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("计量器具台账记录-删除") |
| | | @Operation(summary = "计量器具台账记录-删除") |
| | | @Log(title = "计量器具台账记录-删除", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(Collections.isEmpty(ids)) return AjaxResult.error("请选择要删除的数据"); |
| | |
| | | /** |
| | | * 导出计量器具台账 |
| | | */ |
| | | @ApiOperation("计量器具台账记录-导出") |
| | | @Operation(summary = "计量器具台账记录-导出") |
| | | @Log(title = "计量器具台账记录-导出", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response) { |