| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author :yys |
| | |
| | | return AjaxResult.success(listPage); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("计量器具台账记录-删除") |
| | | @Log(title = "计量器具台账记录-删除", businessType = BusinessType.DELETE) |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) throws IOException { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | | } |
| | | //删除检验单 |
| | | return AjaxResult.success(measuringInstrumentLedgerRecordService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @PostMapping("/update") |
| | | @ApiOperation("计量器具台账记录-修改") |
| | | @Log(title = "计量器具台账记录-修改", businessType = BusinessType.UPDATE) |