Here are the examples of the java api com.java110.vo.ResultVo taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
109 Examples
19
Source : GetRentingPoolBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param rentingPoolDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(RentingPoolDto rentingPoolDto) {
int count = rentingPoolInnerServiceSMOImpl.queryRentingPoolsCount(rentingPoolDto);
List<RentingPoolDto> rentingPoolDtos = null;
if (count > 0) {
rentingPoolDtos = rentingPoolInnerServiceSMOImpl.queryRentingPools(rentingPoolDto);
// 刷入房屋信息
refreshRoomInfo(rentingPoolDtos);
} else {
rentingPoolDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) rentingPoolDto.getRow()), count, rentingPoolDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
19
Source : GetRentingAppointmentBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param rentingAppointmentDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(RentingAppointmentDto rentingAppointmentDto) {
int count = rentingAppointmentInnerServiceSMOImpl.queryRentingAppointmentsCount(rentingAppointmentDto);
List<RentingAppointmentDto> rentingAppointmentDtos = null;
if (count > 0) {
rentingAppointmentDtos = rentingAppointmentInnerServiceSMOImpl.queryRentingAppointments(rentingAppointmentDto);
refreshEveryRoom(rentingAppointmentDtos);
} else {
rentingAppointmentDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) rentingAppointmentDto.getRow()), count, rentingAppointmentDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
19
Source : GetStoreCartBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param storeCartDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(StoreCartDto storeCartDto) {
int count = storeCartInnerServiceSMOImpl.queryStoreCartsCount(storeCartDto);
List<StoreCartDto> storeCartDtos = null;
if (count > 0) {
storeCartDtos = storeCartInnerServiceSMOImpl.queryStoreCarts(storeCartDto);
freshStoreCartDtos(storeCartDtos);
} else {
storeCartDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) storeCartDto.getRow()), count, storeCartDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
19
Source : GetProductBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param productDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ProductDto productDto) {
int count = productInnerServiceSMOImpl.queryProductsCount(productDto);
List<ProductDto> productDtos = null;
if (count > 0) {
productDtos = productInnerServiceSMOImpl.queryProducts(productDto);
freshProductDtos(productDtos, productDto);
} else {
productDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) productDto.getRow()), count, productDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
19
Source : GetGroupBuyProductBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param groupBuyProductDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(GroupBuyProductDto groupBuyProductDto) {
int count = groupBuyProductInnerServiceSMOImpl.queryGroupBuyProductsCount(groupBuyProductDto);
List<GroupBuyProductDto> groupBuyProductDtos = null;
if (count > 0) {
groupBuyProductDtos = groupBuyProductInnerServiceSMOImpl.queryGroupBuyProducts(groupBuyProductDto);
freshProductDtos(groupBuyProductDtos, groupBuyProductDto);
} else {
groupBuyProductDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) groupBuyProductDto.getRow()), count, groupBuyProductDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
19
Source : GetPayFeeConfigDiscountBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param payFeeConfigDiscountDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(PayFeeConfigDiscountDto payFeeConfigDiscountDto) {
int count = payFeeConfigDiscountInnerServiceSMOImpl.queryPayFeeConfigDiscountsCount(payFeeConfigDiscountDto);
List<PayFeeConfigDiscountDto> payFeeConfigDiscountDtos = null;
if (count > 0) {
payFeeConfigDiscountDtos = payFeeConfigDiscountInnerServiceSMOImpl.queryPayFeeConfigDiscounts(payFeeConfigDiscountDto);
freshDiscountSpec(payFeeConfigDiscountDtos);
} else {
payFeeConfigDiscountDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) payFeeConfigDiscountDto.getRow()), count, payFeeConfigDiscountDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
19
Source : GetFeeDiscountBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param feeDiscountDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(FeeDiscountDto feeDiscountDto) {
int count = feeDiscountInnerServiceSMOImpl.queryFeeDiscountsCount(feeDiscountDto);
List<FeeDiscountDto> feeDiscountDtos = null;
if (count > 0) {
feeDiscountDtos = feeDiscountInnerServiceSMOImpl.queryFeeDiscounts(feeDiscountDto);
freshDiscountSpec(feeDiscountDtos);
} else {
feeDiscountDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeDiscountDto.getRow()), count, feeDiscountDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetUserLoginBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param userLoginDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(UserLoginDto userLoginDto) {
int count = userLoginInnerServiceSMOImpl.queryUserLoginsCount(userLoginDto);
List<UserLoginDto> userLoginDtos = null;
if (count > 0) {
userLoginDtos = userLoginInnerServiceSMOImpl.queryUserLogins(userLoginDto);
} else {
userLoginDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) userLoginDto.getRow()), count, userLoginDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetUserAddressBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param userAddressDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(UserAddressDto userAddressDto) {
int count = userAddressInnerServiceSMOImpl.queryUserAddresssCount(userAddressDto);
List<UserAddressDto> userAddressDtos = null;
if (count > 0) {
userAddressDtos = userAddressInnerServiceSMOImpl.queryUserAddresss(userAddressDto);
} else {
userAddressDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) userAddressDto.getRow()), count, userAddressDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : QueryShopsHireLogImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
public ResponseEnreplacedy<String> query(OwnerDto ownerDto) {
int count = ownerInnerServiceSMOImpl.queryOwnerLogsCountByRoom(ownerDto);
List<OwnerDto> ownerDtos = null;
if (count > 0) {
ownerDtos = ownerInnerServiceSMOImpl.queryOwnerLogsByRoom(ownerDto);
} else {
ownerDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) ownerDto.getRow()), count, ownerDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetContractTypeSpecBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param contractTypeSpecDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ContractTypeSpecDto contractTypeSpecDto) {
int count = contractTypeSpecInnerServiceSMOImpl.queryContractTypeSpecsCount(contractTypeSpecDto);
List<ContractTypeSpecDto> contractTypeSpecDtos = null;
if (count > 0) {
contractTypeSpecDtos = contractTypeSpecInnerServiceSMOImpl.queryContractTypeSpecs(contractTypeSpecDto);
} else {
contractTypeSpecDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) contractTypeSpecDto.getRow()), count, contractTypeSpecDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetContractTypeBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param contractTypeDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ContractTypeDto contractTypeDto) {
int count = contractTypeInnerServiceSMOImpl.queryContractTypesCount(contractTypeDto);
List<ContractTypeDto> contractTypeDtos = null;
if (count > 0) {
contractTypeDtos = contractTypeInnerServiceSMOImpl.queryContractTypes(contractTypeDto);
} else {
contractTypeDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) contractTypeDto.getRow()), count, contractTypeDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetContractAttrBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param contractAttrDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ContractAttrDto contractAttrDto) {
int count = contractAttrInnerServiceSMOImpl.queryContractAttrsCount(contractAttrDto);
List<ContractAttrDto> contractAttrDtos = null;
if (count > 0) {
contractAttrDtos = contractAttrInnerServiceSMOImpl.queryContractAttrs(contractAttrDto);
} else {
contractAttrDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) contractAttrDto.getRow()), count, contractAttrDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetContractBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param contractDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ContractDto contractDto) {
int count = contractInnerServiceSMOImpl.queryContractsCount(contractDto);
List<ContractDto> contractDtos = null;
if (count > 0) {
contractDtos = contractInnerServiceSMOImpl.queryContracts(contractDto);
refreshAttr(contractDtos);
} else {
contractDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) contractDto.getRow()), count, contractDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetReportFeeMonthStatisticsBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param reportFeeMonthStatisticsDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) {
int count = reportFeeMonthStatisticsInnerServiceSMOImpl.queryReportFeeMonthStatisticssCount(reportFeeMonthStatisticsDto);
List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticsDtos = null;
if (count > 0) {
reportFeeMonthStatisticsDtos = reportFeeMonthStatisticsInnerServiceSMOImpl.queryReportFeeMonthStatisticss(reportFeeMonthStatisticsDto);
} else {
reportFeeMonthStatisticsDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reportFeeMonthStatisticsDto.getRow()), count, reportFeeMonthStatisticsDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetStoreOrderCartReturnBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param storeOrderCartReturnDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(StoreOrderCartReturnDto storeOrderCartReturnDto) {
int count = storeOrderCartReturnInnerServiceSMOImpl.queryStoreOrderCartReturnsCount(storeOrderCartReturnDto);
List<StoreOrderCartReturnDto> storeOrderCartReturnDtos = null;
if (count > 0) {
storeOrderCartReturnDtos = storeOrderCartReturnInnerServiceSMOImpl.queryStoreOrderCartReturns(storeOrderCartReturnDto);
} else {
storeOrderCartReturnDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) storeOrderCartReturnDto.getRow()), count, storeOrderCartReturnDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetStoreOrderCartEventBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param storeOrderCartEventDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(StoreOrderCartEventDto storeOrderCartEventDto) {
int count = storeOrderCartEventInnerServiceSMOImpl.queryStoreOrderCartEventsCount(storeOrderCartEventDto);
List<StoreOrderCartEventDto> storeOrderCartEventDtos = null;
if (count > 0) {
storeOrderCartEventDtos = storeOrderCartEventInnerServiceSMOImpl.queryStoreOrderCartEvents(storeOrderCartEventDto);
} else {
storeOrderCartEventDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) storeOrderCartEventDto.getRow()), count, storeOrderCartEventDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetStoreOrderBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param storeOrderDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(StoreOrderDto storeOrderDto) {
int count = storeOrderInnerServiceSMOImpl.queryStoreOrdersCount(storeOrderDto);
List<StoreOrderDto> storeOrderDtos = null;
if (count > 0) {
storeOrderDtos = storeOrderInnerServiceSMOImpl.queryStoreOrders(storeOrderDto);
} else {
storeOrderDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) storeOrderDto.getRow()), count, storeOrderDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetProductSpecDetailBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param productSpecDetailDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ProductSpecDetailDto productSpecDetailDto) {
int count = productSpecDetailInnerServiceSMOImpl.queryProductSpecDetailsCount(productSpecDetailDto);
List<ProductSpecDetailDto> productSpecDetailDtos = null;
if (count > 0) {
productSpecDetailDtos = productSpecDetailInnerServiceSMOImpl.queryProductSpecDetails(productSpecDetailDto);
} else {
productSpecDetailDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) productSpecDetailDto.getRow()), count, productSpecDetailDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetProductSpecBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param productSpecDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ProductSpecDto productSpecDto) {
int count = productSpecInnerServiceSMOImpl.queryProductSpecsCount(productSpecDto);
List<ProductSpecDto> productSpecDtos = null;
if (count > 0) {
productSpecDtos = productSpecInnerServiceSMOImpl.queryProductSpecs(productSpecDto);
freshSpecDetail(productSpecDtos);
} else {
productSpecDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) productSpecDto.getRow()), count, productSpecDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetProductLabelBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param productLabelDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ProductLabelDto productLabelDto) {
int count = productLabelInnerServiceSMOImpl.queryProductLabelsCount(productLabelDto);
List<ProductLabelDto> productLabelDtos = null;
if (count > 0) {
productLabelDtos = productLabelInnerServiceSMOImpl.queryProductLabels(productLabelDto);
freshProductDtos(productLabelDtos, productLabelDto);
} else {
productLabelDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) productLabelDto.getRow()), count, productLabelDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetProductCategoryBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param productCategoryDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ProductCategoryDto productCategoryDto) {
int count = productCategoryInnerServiceSMOImpl.queryProductCategorysCount(productCategoryDto);
List<ProductCategoryDto> productCategoryDtos = null;
if (count > 0) {
productCategoryDtos = productCategoryInnerServiceSMOImpl.queryProductCategorys(productCategoryDto);
} else {
productCategoryDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) productCategoryDto.getRow()), count, productCategoryDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetProductAttrBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param productAttrDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ProductAttrDto productAttrDto) {
int count = productAttrInnerServiceSMOImpl.queryProductAttrsCount(productAttrDto);
List<ProductAttrDto> productAttrDtos = null;
if (count > 0) {
productAttrDtos = productAttrInnerServiceSMOImpl.queryProductAttrs(productAttrDto);
} else {
productAttrDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) productAttrDto.getRow()), count, productAttrDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetGroupBuySettingBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param groupBuySettingDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(GroupBuySettingDto groupBuySettingDto) {
int count = groupBuySettingInnerServiceSMOImpl.queryGroupBuySettingsCount(groupBuySettingDto);
List<GroupBuySettingDto> groupBuySettingDtos = null;
if (count > 0) {
groupBuySettingDtos = groupBuySettingInnerServiceSMOImpl.queryGroupBuySettings(groupBuySettingDto);
} else {
groupBuySettingDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) groupBuySettingDto.getRow()), count, groupBuySettingDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetGroupBuyProductSpecBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param groupBuyProductSpecDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(GroupBuyProductSpecDto groupBuyProductSpecDto) {
int count = groupBuyProductSpecInnerServiceSMOImpl.queryGroupBuyProductSpecsCount(groupBuyProductSpecDto);
List<GroupBuyProductSpecDto> groupBuyProductSpecDtos = null;
if (count > 0) {
groupBuyProductSpecDtos = groupBuyProductSpecInnerServiceSMOImpl.queryGroupBuyProductSpecs(groupBuyProductSpecDto);
} else {
groupBuyProductSpecDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) groupBuyProductSpecDto.getRow()), count, groupBuyProductSpecDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetGroupBuyBatchBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param groupBuyBatchDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(GroupBuyBatchDto groupBuyBatchDto) {
int count = groupBuyBatchInnerServiceSMOImpl.queryGroupBuyBatchsCount(groupBuyBatchDto);
List<GroupBuyBatchDto> groupBuyBatchDtos = null;
if (count > 0) {
groupBuyBatchDtos = groupBuyBatchInnerServiceSMOImpl.queryGroupBuyBatchs(groupBuyBatchDto);
} else {
groupBuyBatchDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) groupBuyBatchDto.getRow()), count, groupBuyBatchDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetPayFeeAuditBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param payFeeAuditDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(PayFeeAuditDto payFeeAuditDto) {
if (!refreshRoomPayObjId(payFeeAuditDto)) {
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>("[]", HttpStatus.OK);
return responseEnreplacedy;
}
if (!refreshCarPayObjId(payFeeAuditDto)) {
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>("[]", HttpStatus.OK);
return responseEnreplacedy;
}
int count = payFeeAuditInnerServiceSMOImpl.queryPayFeeAuditsCount(payFeeAuditDto);
List<PayFeeAuditDto> payFeeAuditDtos = null;
if (count > 0) {
payFeeAuditDtos = payFeeAuditInnerServiceSMOImpl.queryPayFeeAudits(payFeeAuditDto);
frashRoomAndStaff(payFeeAuditDtos);
} else {
payFeeAuditDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) payFeeAuditDto.getRow()), count, payFeeAuditDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetImportFeeDetailBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param importFeeDetailDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ImportFeeDetailDto importFeeDetailDto) {
int count = importFeeDetailInnerServiceSMOImpl.queryImportFeeDetailsCount(importFeeDetailDto);
List<ImportFeeDetailDto> importFeeDetailDtos = null;
if (count > 0) {
importFeeDetailDtos = importFeeDetailInnerServiceSMOImpl.queryImportFeeDetails(importFeeDetailDto);
} else {
importFeeDetailDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) importFeeDetailDto.getRow()), count, importFeeDetailDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetImportFeeBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param importFeeDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ImportFeeDto importFeeDto) {
int count = importFeeInnerServiceSMOImpl.queryImportFeesCount(importFeeDto);
List<ImportFeeDto> importFeeDtos = null;
if (count > 0) {
importFeeDtos = importFeeInnerServiceSMOImpl.queryImportFees(importFeeDto);
} else {
importFeeDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) importFeeDto.getRow()), count, importFeeDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetFeePrintSpecBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param feePrintSpecDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(FeePrintSpecDto feePrintSpecDto) {
int count = feePrintSpecInnerServiceSMOImpl.queryFeePrintSpecsCount(feePrintSpecDto);
List<FeePrintSpecDto> feePrintSpecDtos = null;
if (count > 0) {
feePrintSpecDtos = feePrintSpecInnerServiceSMOImpl.queryFeePrintSpecs(feePrintSpecDto);
} else {
feePrintSpecDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feePrintSpecDto.getRow()), count, feePrintSpecDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetFeeManualCollectionBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param feeManualCollectionDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(FeeManualCollectionDto feeManualCollectionDto) {
int count = feeManualCollectionInnerServiceSMOImpl.queryFeeManualCollectionsCount(feeManualCollectionDto);
List<FeeManualCollectionDto> feeManualCollectionDtos = null;
if (count > 0) {
feeManualCollectionDtos = feeManualCollectionInnerServiceSMOImpl.queryFeeManualCollections(feeManualCollectionDto);
freshTotalFee(feeManualCollectionDtos);
} else {
feeManualCollectionDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeManualCollectionDto.getRow()), count, feeManualCollectionDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetFeeFormulaBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param feeFormulaDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(FeeFormulaDto feeFormulaDto) {
int count = feeFormulaInnerServiceSMOImpl.queryFeeFormulasCount(feeFormulaDto);
List<FeeFormulaDto> feeFormulaDtos = null;
if (count > 0) {
feeFormulaDtos = feeFormulaInnerServiceSMOImpl.queryFeeFormulas(feeFormulaDto);
} else {
feeFormulaDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeFormulaDto.getRow()), count, feeFormulaDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetFeeDiscountSpecBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param feeDiscountSpecDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(FeeDiscountSpecDto feeDiscountSpecDto) {
int count = feeDiscountSpecInnerServiceSMOImpl.queryFeeDiscountSpecsCount(feeDiscountSpecDto);
List<FeeDiscountSpecDto> feeDiscountSpecDtos = null;
if (count > 0) {
feeDiscountSpecDtos = feeDiscountSpecInnerServiceSMOImpl.queryFeeDiscountSpecs(feeDiscountSpecDto);
} else {
feeDiscountSpecDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeDiscountSpecDto.getRow()), count, feeDiscountSpecDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetFeeDiscountRuleSpecBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param feeDiscountRuleSpecDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(FeeDiscountRuleSpecDto feeDiscountRuleSpecDto) {
int count = feeDiscountRuleSpecInnerServiceSMOImpl.queryFeeDiscountRuleSpecsCount(feeDiscountRuleSpecDto);
List<FeeDiscountRuleSpecDto> feeDiscountRuleSpecDtos = null;
if (count > 0) {
feeDiscountRuleSpecDtos = feeDiscountRuleSpecInnerServiceSMOImpl.queryFeeDiscountRuleSpecs(feeDiscountRuleSpecDto);
} else {
feeDiscountRuleSpecDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeDiscountRuleSpecDto.getRow()), count, feeDiscountRuleSpecDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetFeeDiscountRuleBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param feeDiscountRuleDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(FeeDiscountRuleDto feeDiscountRuleDto) {
int count = feeDiscountRuleInnerServiceSMOImpl.queryFeeDiscountRulesCount(feeDiscountRuleDto);
List<FeeDiscountRuleDto> feeDiscountRuleDtos = null;
if (count > 0) {
feeDiscountRuleDtos = feeDiscountRuleInnerServiceSMOImpl.queryFeeDiscountRules(feeDiscountRuleDto);
freshRuleSpec(feeDiscountRuleDtos);
} else {
feeDiscountRuleDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeDiscountRuleDto.getRow()), count, feeDiscountRuleDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetFeeDiscountBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
public ResponseEnreplacedy<String> getFeeDetailDiscount(PayFeeDetailDiscountDto payFeeDetailDiscountDto) {
int count = payFeeDetailDiscountInnerServiceSMOImpl.queryPayFeeDetailDiscountsCount(payFeeDetailDiscountDto);
List<PayFeeDetailDiscountDto> feeDetailDiscountDtos = null;
if (count > 0) {
feeDetailDiscountDtos = payFeeDetailDiscountInnerServiceSMOImpl.queryPayFeeDetailDiscounts(payFeeDetailDiscountDto);
freshDiscountDetailSpec(feeDetailDiscountDtos);
} else {
feeDetailDiscountDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) payFeeDetailDiscountDto.getRow()), count, feeDetailDiscountDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetApplyRoomDiscountBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param applyRoomDiscountDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(ApplyRoomDiscountDto applyRoomDiscountDto) {
int count = applyRoomDiscountInnerServiceSMOImpl.queryApplyRoomDiscountsCount(applyRoomDiscountDto);
List<ApplyRoomDiscountDto> applyRoomDiscountDtos = null;
if (count > 0) {
applyRoomDiscountDtos = applyRoomDiscountInnerServiceSMOImpl.queryApplyRoomDiscounts(applyRoomDiscountDto);
} else {
applyRoomDiscountDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) applyRoomDiscountDto.getRow()), count, applyRoomDiscountDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetSysDocumentBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param sysDoreplacedentDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(SysDoreplacedentDto sysDoreplacedentDto) {
int count = sysDoreplacedentInnerServiceSMOImpl.querySysDoreplacedentsCount(sysDoreplacedentDto);
List<SysDoreplacedentDto> sysDoreplacedentDtos = null;
if (count > 0) {
sysDoreplacedentDtos = sysDoreplacedentInnerServiceSMOImpl.querySysDoreplacedents(sysDoreplacedentDto);
} else {
sysDoreplacedentDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) sysDoreplacedentDto.getRow()), count, sysDoreplacedentDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetLogSystemErrorBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
/**
* @param logSystemErrorDto
* @return 订单服务能够接受的报文
*/
public ResponseEnreplacedy<String> get(LogSystemErrorDto logSystemErrorDto) {
int count = logSystemErrorInnerServiceSMOImpl.queryLogSystemErrorsCount(logSystemErrorDto);
List<LogSystemErrorDto> logSystemErrorDtos = null;
if (count > 0) {
logSystemErrorDtos = logSystemErrorInnerServiceSMOImpl.queryLogSystemErrors(logSystemErrorDto);
} else {
logSystemErrorDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) logSystemErrorDto.getRow()), count, logSystemErrorDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : GetAppraiseBMOImpl.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
public ResponseEnreplacedy<String> getAppraise(AppraiseDto appraiseDto) {
int count = appraiseInnerServiceSMOImpl.queryAppraisesCount(appraiseDto);
List<AppraiseDto> appraiseDtos = null;
if (count > 0) {
appraiseDtos = appraiseInnerServiceSMOImpl.queryAppraises(appraiseDto);
} else {
appraiseDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) appraiseDto.getRow()), count, appraiseDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
return responseEnreplacedy;
}
18
Source : ListWorkflowStepStaffsListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
WorkflowStepStaffDto workflowStepStaffDto = BeanConvertUtil.covertBean(reqJson, WorkflowStepStaffDto.clreplaced);
int count = workflowStepStaffInnerServiceSMOImpl.queryWorkflowStepStaffsCount(workflowStepStaffDto);
List<WorkflowStepStaffDto> workflowStepStaffDtos = null;
if (count > 0) {
workflowStepStaffDtos = workflowStepStaffInnerServiceSMOImpl.queryWorkflowStepStaffs(workflowStepStaffDto);
} else {
workflowStepStaffDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, workflowStepStaffDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListWorkflowsListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
WorkflowDto workflowDto = BeanConvertUtil.covertBean(reqJson, WorkflowDto.clreplaced);
int count = workflowInnerServiceSMOImpl.queryWorkflowsCount(workflowDto);
List<WorkflowDto> workflowDtos = null;
workflowDtos = workflowInnerServiceSMOImpl.queryWorkflows(workflowDto);
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, workflowDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListWorkflowImageListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
WorkflowDto workflowDto = BeanConvertUtil.covertBean(reqJson, WorkflowDto.clreplaced);
List<WorkflowDto> workflowDtos = workflowInnerServiceSMOImpl.queryWorkflows(workflowDto);
replacedert.listOnlyOne(workflowDtos, "未查到工作流");
workflowDto = workflowDtos.get(0);
ResultVo resultVo = null;
if (StringUtil.isEmpty(workflowDto.getProcessDefinitionKey())) {
resultVo = new ResultVo(ResultVo.CODE_ERROR, "流程还没有部署");
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
return;
}
String image = workflowInnerServiceSMOImpl.getWorkflowImage(workflowDto);
if (StringUtil.isEmpty(workflowDto.getProcessDefinitionKey())) {
resultVo = new ResultVo(ResultVo.CODE_ERROR, "查询流程错误");
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
return;
}
resultVo = new ResultVo(ResultVo.CODE_OK, ResultVo.MSG_OK, image);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListWorkflowAuditInfoListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
WorkflowAuditInfoDto workflowAuditInfoDto = BeanConvertUtil.covertBean(reqJson, WorkflowAuditInfoDto.clreplaced);
List<WorkflowAuditInfoDto> workflowAuditInfoDtos = workflowInnerServiceSMOImpl.queryWorkflowAuditHistory(workflowAuditInfoDto);
ResultVo resultVo = new ResultVo(ResultVo.CODE_OK, ResultVo.MSG_OK, workflowAuditInfoDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListRunWorkflowImageListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
String image = workflowInnerServiceSMOImpl.getRunWorkflowImage(reqJson.getString("businessKey"));
ResultVo resultVo = new ResultVo(ResultVo.CODE_OK, ResultVo.MSG_OK, image);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListTaskTemplateSpecListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
TaskTemplateSpecDto taskTemplateSpecDto = BeanConvertUtil.covertBean(reqJson, TaskTemplateSpecDto.clreplaced);
int count = taskInnerServiceSMOImpl.queryTaskTemplateSpecCount(taskTemplateSpecDto);
List<TaskTemplateSpecDto> taskTemplateSpecDtos = null;
if (count > 0) {
taskTemplateSpecDtos = taskInnerServiceSMOImpl.queryTaskTemplateSpec(taskTemplateSpecDto);
} else {
taskTemplateSpecDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, taskTemplateSpecDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListTaskTemplateListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
TaskTemplateDto taskTemplateDto = BeanConvertUtil.covertBean(reqJson, TaskTemplateDto.clreplaced);
int count = taskInnerServiceSMOImpl.queryTaskTemplateCount(taskTemplateDto);
List<TaskTemplateDto> taskTemplateDtos = null;
if (count > 0) {
taskTemplateDtos = taskInnerServiceSMOImpl.queryTaskTemplate(taskTemplateDto);
} else {
taskTemplateDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, taskTemplateDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListTasksListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
TaskDto taskDto = BeanConvertUtil.covertBean(reqJson, TaskDto.clreplaced);
int count = taskInnerServiceSMOImpl.queryTasksCount(taskDto);
List<TaskDto> taskDtos = null;
if (count > 0) {
taskDtos = taskInnerServiceSMOImpl.queryTasks(taskDto);
freshTaskAttr(taskDtos);
} else {
taskDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, taskDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListSmallWechatAttrsListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
SmallWechatAttrDto smallWechatAttrDto = BeanConvertUtil.covertBean(reqJson, SmallWechatAttrDto.clreplaced);
int count = smallWechatAttrInnerServiceSMOImpl.querySmallWechatAttrsCount(smallWechatAttrDto);
List<SmallWechatAttrDto> smallWechatAttrDtos = null;
if (count > 0) {
smallWechatAttrDtos = smallWechatAttrInnerServiceSMOImpl.querySmallWechatAttrs(smallWechatAttrDto);
} else {
smallWechatAttrDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo(ResultVo.CODE_OK, ResultVo.MSG_OK, smallWechatAttrDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
18
Source : ListRepairTypeUsersListener.java
with Apache License 2.0
from java110
with Apache License 2.0
from java110
@Override
protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context, JSONObject reqJson) {
RepairTypeUserDto repairTypeUserDto = BeanConvertUtil.covertBean(reqJson, RepairTypeUserDto.clreplaced);
int count = repairTypeUserInnerServiceSMOImpl.queryRepairTypeUsersCount(repairTypeUserDto);
List<RepairTypeUserDto> repairTypeUserDtos = null;
if (count > 0) {
repairTypeUserDtos = repairTypeUserInnerServiceSMOImpl.queryRepairTypeUsers(repairTypeUserDto);
} else {
repairTypeUserDtos = new ArrayList<>();
}
ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, repairTypeUserDtos);
ResponseEnreplacedy<String> responseEnreplacedy = new ResponseEnreplacedy<String>(resultVo.toString(), HttpStatus.OK);
context.setResponseEnreplacedy(responseEnreplacedy);
}
See More Examples