Commit 6ee20e2f authored by tangwei's avatar tangwei

新增唯一判断

parent 9a9ab940
......@@ -100,17 +100,15 @@ public class AircraftController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping (value = "/select")
@GetMapping (value = "/select/{num}")
@ApiOperation(httpMethod = "PUT", value = "根据sequenceNbr更新航空器信息", notes = "根据sequenceNbr更新航空器信息")
public ResponseModel<Aircraft> selectBySequenceNbrnumAircraft(
@RequestParam(value = "id") Long id,@RequestParam(value = "num") String num) throws Exception {
@PathVariable(value = "num") String num) throws Exception {
QueryWrapper<Aircraft> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("aircraftModel", num);
if(id!=null){
queryWrapper.eq("sequenceNbr", id);
}
queryWrapper.eq("aircraft_model", num);
// 警情动态表单数据
Aircraft aircraft = aircraftServiceImpl.getOne(queryWrapper);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment