| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.assertj.core.util.Arrays; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | if(ObjectUtil.isNotEmpty(orderListDto.getQueryKey())){ |
| | | projService.setQueryKey(orderListDto.getQueryKey()); |
| | | } |
| | | if(StrUtil.isNotEmpty(orderListDto.getState())){ |
| | | projService.setState(orderListDto.getState()); |
| | | } |
| | | QueryUtil.setQueryLimitCom(projService); |
| | | List<SysProjServices> dataList = projServicesSerivce.findInPage(projService, pageVo); |
| | |
| | | } |
| | | SysProjServices newSysProjServices = sysProjServicesService.addSysProjServices(sysProjServices); |
| | | if (newSysProjServices != null) { |
| | | return AjaxResult.buildSuccessInstance(Arrays.asList(newSysProjServices)); |
| | | AjaxResult result = AjaxResult.buildSuccessInstance("下单成功!"); |
| | | result.putInMap("newSysProjServices", newSysProjServices); |
| | | return result; |
| | | } else { |
| | | return new AjaxResult(AjaxResult.STATUS_FAIL, "下单失败!"); |
| | | } |