fileUrl = aflAccessChannelAuthorityInfoService.export(request, logger); | fileUrl = aflAccessChannelAuthorityInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflAccessChannelInfoService.export(request, logger); | fileUrl = aflAccessChannelInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflAccessChannelProductInfoService.export(request, logger); | fileUrl = aflAccessChannelProductInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflApplicationFunctionService.export(request, logger); | fileUrl = aflApplicationFunctionService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflBlackInfoService.export(request, logger); | fileUrl = aflBlackInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflMobileApplicationInfoService.export(request, logger); | fileUrl = aflMobileApplicationInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflNoticeTemplateInfoService.export(request, logger); | fileUrl = aflNoticeTemplateInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflPaccountRefundCountService.export(request, logger); | fileUrl = aflPaccountRefundCountService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflSignReboundInfoService.export(request, logger); | fileUrl = aflSignReboundInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflUiInfoService.export(request, logger); | fileUrl = aflUiInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflUserSecurityInfoService.export(request, logger); | fileUrl = aflUserSecurityInfoService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
fileUrl = aflVehicleWhiteService.export(request, logger); | fileUrl = aflVehicleWhiteService.export(request, logger); | ||||
} catch (Exception e) { | } catch (Exception e) { | ||||
e.printStackTrace(); | e.printStackTrace(); | ||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||||
} | } | ||||
return fileUrl; | return fileUrl; | ||||
} | } |
package com.qtzl.alterSales.manager.model.protocol.sales; | |||||
import cn.com.taiji.common.pub.dao.HqlBuilder; | |||||
import cn.com.taiji.common.repo.request.jpa.JpaPageableDataRequest; | |||||
import com.qtzl.alterSales.manager.vo.AflProductInfoFindPageVo; | |||||
import org.apache.commons.lang3.StringUtils; | |||||
import java.util.Date; | |||||
public class AflProductInfoFindPageRequest extends JpaPageableDataRequest<AflProductInfoFindPageVo> { | |||||
/** 产品编码 */ | |||||
private String productCode ; | |||||
/** 产品名称 */ | |||||
private String productName ; | |||||
/** 签约渠道名称 */ | |||||
private String channelName ; | |||||
/** 上架时间开始时间 */ | |||||
private Date groundTimeStart ; | |||||
/** 上架时间结束时间 */ | |||||
private Date groundTimeEnd ; | |||||
/** 下架时间开始时间 */ | |||||
private Date undercarriageTimeStart ; | |||||
/** 下架时间结束时间 */ | |||||
private Date undercarriageTimeEnd ; | |||||
/** 审核状态(0_待审核,1_审核成功,2_审核失败) */ | |||||
private Integer auditStatus ; | |||||
/** 上架状态(0_未上架,1_已上架,2_已下架) */ | |||||
private Integer groundStatus ; | |||||
/** 创建时间开始时间 */ | |||||
private Date insertTimeStart; | |||||
/** 创建时间结束时间 */ | |||||
private Date insertTimeEnd; | |||||
@Override | |||||
public HqlBuilder toSelectHql() { | |||||
HqlBuilder builder = new HqlBuilder("SELECT new com.qtzl.alterSales.manager.vo.AflProductInfoFindPageVo(api.id, api.productCode, api.productName, asci.channelName, " + | |||||
" api.signServiceCharge, api.throughServiceCharge, api.productEffectiveTime, " + | |||||
" api.groundTime, api.undercarriageTime, api.auditStatus, api.groundStatus,api.insertTime) from AflProductInfo api " + | |||||
" left join AflSignChannelsInfo asci on api.channelCode = asci.channelCode "); | |||||
appendParam(builder); | |||||
builder.append(" ORDER BY api.insertTime DESC"); | |||||
return builder; | |||||
} | |||||
@Override | |||||
public String toCountHql() { | |||||
HqlBuilder builder = new HqlBuilder("SELECT COUNT(1) FROM AflProductInfo api left join AflSignChannelsInfo asci on api.channelCode = asci.channelCode "); | |||||
appendParam(builder); | |||||
return builder.toString(); | |||||
} | |||||
private void appendParam(HqlBuilder builder) { | |||||
builder.append(" WHERE api.isDelete = '0' "); | |||||
if (!StringUtils.isEmpty(productCode)){ | |||||
builder.append(" AND api.productCode = :productCode", productCode); | |||||
} | |||||
if (!StringUtils.isEmpty(productName)){ | |||||
builder.append(" AND api.productName LIKE :productName", like(productName)); | |||||
} | |||||
if (!StringUtils.isEmpty(channelName)){ | |||||
builder.append(" AND asci.channelName LIKE :channelName",like(channelName)); | |||||
} | |||||
if (groundTimeStart != null){ | |||||
builder.append(" AND api.groundTime >= :groundTimeStart", groundTimeStart); | |||||
} | |||||
if (groundTimeEnd != null){ | |||||
builder.append(" AND api.groundTime <= :groundTimeEnd", groundTimeEnd); | |||||
} | |||||
if (undercarriageTimeStart != null){ | |||||
builder.append(" AND api.undercarriageTime >= :undercarriageTimeStart", undercarriageTimeStart); | |||||
} | |||||
if (undercarriageTimeEnd != null){ | |||||
builder.append(" AND api.undercarriageTime <= :undercarriageTimeEnd", undercarriageTimeEnd); | |||||
} | |||||
if (auditStatus != null){ | |||||
builder.append(" AND api.auditStatus = :auditStatus", auditStatus); | |||||
} | |||||
if (groundStatus != null){ | |||||
builder.append(" AND api.groundStatus = :groundStatus", groundStatus); | |||||
} | |||||
if (insertTimeStart != null){ | |||||
builder.append(" AND api.insertTime >= :insertTimeStart", insertTimeStart); | |||||
} | |||||
if (insertTimeEnd != null){ | |||||
builder.append(" AND api.insertTime <= :insertTimeEnd", insertTimeEnd); | |||||
} | |||||
} | |||||
public String getProductCode() { | |||||
return productCode; | |||||
} | |||||
public void setProductCode(String productCode) { | |||||
this.productCode = productCode; | |||||
} | |||||
public String getProductName() { | |||||
return productName; | |||||
} | |||||
public void setProductName(String productName) { | |||||
this.productName = productName; | |||||
} | |||||
public String getChannelName() { | |||||
return channelName; | |||||
} | |||||
public void setChannelName(String channelName) { | |||||
this.channelName = channelName; | |||||
} | |||||
public Date getGroundTimeStart() { | |||||
return groundTimeStart; | |||||
} | |||||
public void setGroundTimeStart(Date groundTimeStart) { | |||||
this.groundTimeStart = groundTimeStart; | |||||
} | |||||
public Date getGroundTimeEnd() { | |||||
return groundTimeEnd; | |||||
} | |||||
public void setGroundTimeEnd(Date groundTimeEnd) { | |||||
this.groundTimeEnd = groundTimeEnd; | |||||
} | |||||
public Date getUndercarriageTimeStart() { | |||||
return undercarriageTimeStart; | |||||
} | |||||
public void setUndercarriageTimeStart(Date undercarriageTimeStart) { | |||||
this.undercarriageTimeStart = undercarriageTimeStart; | |||||
} | |||||
public Date getUndercarriageTimeEnd() { | |||||
return undercarriageTimeEnd; | |||||
} | |||||
public void setUndercarriageTimeEnd(Date undercarriageTimeEnd) { | |||||
this.undercarriageTimeEnd = undercarriageTimeEnd; | |||||
} | |||||
public Integer getAuditStatus() { | |||||
return auditStatus; | |||||
} | |||||
public void setAuditStatus(Integer auditStatus) { | |||||
this.auditStatus = auditStatus; | |||||
} | |||||
public Integer getGroundStatus() { | |||||
return groundStatus; | |||||
} | |||||
public void setGroundStatus(Integer groundStatus) { | |||||
this.groundStatus = groundStatus; | |||||
} | |||||
public Date getInsertTimeStart() { | |||||
return insertTimeStart; | |||||
} | |||||
public void setInsertTimeStart(Date insertTimeStart) { | |||||
this.insertTimeStart = insertTimeStart; | |||||
} | |||||
public Date getInsertTimeEnd() { | |||||
return insertTimeEnd; | |||||
} | |||||
public void setInsertTimeEnd(Date insertTimeEnd) { | |||||
this.insertTimeEnd = insertTimeEnd; | |||||
} | |||||
} |
import java.util.Date; | import java.util.Date; | ||||
@Api(cmdClazz = AfterSalesCmd.class, cmd = "FINDPAGEPRODUCTINFO") | @Api(cmdClazz = AfterSalesCmd.class, cmd = "FINDPAGEPRODUCTINFO") | ||||
public class AflProductInfoFindPageViweRequest extends AbstractAfterSalesPageRequest<AflProductInfoFindPageResponse> { | |||||
public class AflProductInfoFindPageViewRequest extends AbstractAfterSalesPageRequest<AflProductInfoFindPageViewResponse> { | |||||
/** 产品编码 */ | /** 产品编码 */ | ||||
private String productCode ; | private String productCode ; | ||||
/** 产品名称 */ | /** 产品名称 */ | ||||
private String productName ; | private String productName ; | ||||
/** 签约渠道名称 */ | |||||
private String channelName ; | |||||
/** 上架时间开始时间 */ | /** 上架时间开始时间 */ | ||||
private Date groundTimeStart ; | private Date groundTimeStart ; | ||||
/** 上架时间结束时间 */ | /** 上架时间结束时间 */ | ||||
this.productName = productName; | this.productName = productName; | ||||
} | } | ||||
public String getChannelName() { | |||||
return channelName; | |||||
} | |||||
public void setChannelName(String channelName) { | |||||
this.channelName = channelName; | |||||
} | |||||
public Date getGroundTimeStart() { | public Date getGroundTimeStart() { | ||||
return groundTimeStart; | return groundTimeStart; |
import com.qtzl.alterSales.manager.model.protocol.AbstractAfterSalesPageResponse; | import com.qtzl.alterSales.manager.model.protocol.AbstractAfterSalesPageResponse; | ||||
import com.qtzl.alterSales.manager.vo.AflProductInfoFindPageVo; | import com.qtzl.alterSales.manager.vo.AflProductInfoFindPageVo; | ||||
public class AflProductInfoFindPageResponse extends AbstractAfterSalesPageResponse<AflProductInfoFindPageVo> { | |||||
public class AflProductInfoFindPageViewResponse extends AbstractAfterSalesPageResponse<AflProductInfoFindPageVo> { | |||||
} | } |