| | |
| | | apply.setApplyTime(new Date()); |
| | | } |
| | | boolean status = applyService.saveOrUpdate(apply); |
| | | if (status){ |
| | | //内网新增 |
| | | // arg.test01(arg.url+"/apply/save",apply); |
| | | return R.data(200,"报名成功"); |
| | | } |
| | | //内网修改 |
| | | if(null!=apply.getId()){ |
| | | //修改 |
| | | arg.test01(arg.url+"/apply/update",apply); |
| | | } |
| | | // if (status){ |
| | | // //内网新增 |
| | | //// arg.test01(arg.url+"/apply/save",apply); |
| | | // return R.data(200,"报名成功"); |
| | | // } |
| | | // //内网修改 |
| | | // if(null!=apply.getId()){ |
| | | // //修改 |
| | | // arg.test01(arg.url+"/apply/update",apply); |
| | | // } |
| | | return R.data(202,"报名失败"); |
| | | } |
| | | |
| | |
| | | */ |
| | | @PostMapping("/remove") |
| | | public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) { |
| | | arg.sendPostRemoveByIds(arg.url+"/apply/remove",ids); |
| | | //arg.sendPostRemoveByIds(arg.url+"/apply/remove",ids); |
| | | return R.status(applyService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |