@@ -33,7 +33,7 @@ public class AflAccessChannelAuthorityInfoExportHandler extends AbstractAfterSal | |||
fileUrl = aflAccessChannelAuthorityInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -33,7 +33,7 @@ public class AflAccessChannelInfoExportHandler extends AbstractAfterSalesManager | |||
fileUrl = aflAccessChannelInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -33,7 +33,7 @@ public class AflAccessChannelProductInfoExportHandler extends AbstractAfterSales | |||
fileUrl = aflAccessChannelProductInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -33,7 +33,7 @@ public class AflApplicationFunctionExportHandler extends AbstractAfterSalesManag | |||
fileUrl = aflApplicationFunctionService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -34,7 +34,7 @@ public class AflBlackInfoExportHandler extends AbstractAfterSalesManager<AflBlac | |||
fileUrl = aflBlackInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -34,7 +34,7 @@ public class AflMobileApplicationInfoExportHandler extends AbstractAfterSalesMan | |||
fileUrl = aflMobileApplicationInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -34,7 +34,7 @@ public class AflNoticeTemplateInfoExportHandler extends AbstractAfterSalesManage | |||
fileUrl = aflNoticeTemplateInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -33,7 +33,7 @@ public class AflPaccountRefundCountExportHandler extends AbstractAfterSalesManag | |||
fileUrl = aflPaccountRefundCountService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -34,7 +34,7 @@ public class AflSignReboundInfoExportHandler extends AbstractAfterSalesManager<A | |||
fileUrl = aflSignReboundInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -33,7 +33,7 @@ public class AflUiInfoExportHandler extends AbstractAfterSalesManager<AflUiInfoF | |||
fileUrl = aflUiInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -35,7 +35,7 @@ public class AflUserSecurityInfoExportHandler extends AbstractAfterSalesManager< | |||
fileUrl = aflUserSecurityInfoService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -34,7 +34,7 @@ public class AflVehicleWhiteExportHandler extends AbstractAfterSalesManager<AflV | |||
fileUrl = aflVehicleWhiteService.export(request, logger); | |||
} catch (Exception e) { | |||
e.printStackTrace(); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败"); | |||
throw UcServiceError.BUSINESS_VALIDATE_ERR.toHandleException("导出失败,"+e.getMessage()); | |||
} | |||
return fileUrl; | |||
} |
@@ -1,181 +0,0 @@ | |||
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; | |||
} | |||
} |
@@ -7,14 +7,12 @@ import com.txffp.api.core.manager.comm.annotation.Api; | |||
import java.util.Date; | |||
@Api(cmdClazz = AfterSalesCmd.class, cmd = "FINDPAGEPRODUCTINFO") | |||
public class AflProductInfoFindPageViweRequest extends AbstractAfterSalesPageRequest<AflProductInfoFindPageResponse> { | |||
public class AflProductInfoFindPageViewRequest extends AbstractAfterSalesPageRequest<AflProductInfoFindPageViewResponse> { | |||
/** 产品编码 */ | |||
private String productCode ; | |||
/** 产品名称 */ | |||
private String productName ; | |||
/** 签约渠道名称 */ | |||
private String channelName ; | |||
/** 上架时间开始时间 */ | |||
private Date groundTimeStart ; | |||
/** 上架时间结束时间 */ | |||
@@ -48,13 +46,6 @@ public class AflProductInfoFindPageViweRequest extends AbstractAfterSalesPageReq | |||
this.productName = productName; | |||
} | |||
public String getChannelName() { | |||
return channelName; | |||
} | |||
public void setChannelName(String channelName) { | |||
this.channelName = channelName; | |||
} | |||
public Date getGroundTimeStart() { | |||
return groundTimeStart; |
@@ -3,5 +3,5 @@ package com.qtzl.alterSales.manager.model.protocol.sales; | |||
import com.qtzl.alterSales.manager.model.protocol.AbstractAfterSalesPageResponse; | |||
import com.qtzl.alterSales.manager.vo.AflProductInfoFindPageVo; | |||
public class AflProductInfoFindPageResponse extends AbstractAfterSalesPageResponse<AflProductInfoFindPageVo> { | |||
public class AflProductInfoFindPageViewResponse extends AbstractAfterSalesPageResponse<AflProductInfoFindPageVo> { | |||
} |