| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.common.utils.arg; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | * @param gun 枪支信息对象 |
| | | */ |
| | | @PostMapping("/submit") |
| | | public R submit(@RequestBody Gun gun) { |
| | | public R submit(@RequestBody Gun gun) throws Exception { |
| | | // if (gun.getId()==null){ |
| | | // arg arg = new arg(); |
| | | // arg.test01(arg.url+"/gun/save",gun); |
| | | // } |
| | | return R.status(gunService.saveOrUpdate(gun)); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/remove") |
| | | public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) { |
| | | //arg.sendPostRemoveByIds(arg.url+"/gun/remove",ids); |
| | | return R.status(gunService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |