Selaa lähdekoodia

优化导出提示

shuiqilin
zhangxin 1 vuosi sitten
vanhempi
commit
539698d5c9
15 muutettua tiedostoa jossa 14 lisäystä ja 204 poistoa
  1. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflAccessChannelAuthorityInfoExportHandler.java
  2. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflAccessChannelInfoExportHandler.java
  3. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflAccessChannelProductInfoExportHandler.java
  4. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflApplicationFunctionExportHandler.java
  5. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflBlackInfoExportHandler.java
  6. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflMobileApplicationInfoExportHandler.java
  7. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflNoticeTemplateInfoExportHandler.java
  8. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflPaccountRefundCountExportHandler.java
  9. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflSignReboundInfoExportHandler.java
  10. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflUiInfoExportHandler.java
  11. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflUserSecurityInfoExportHandler.java
  12. 1
    1
      src/main/java/com/qtzl/alterSales/manager/handler/AflVehicleWhiteExportHandler.java
  13. 0
    181
      src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageRequest.java
  14. 1
    10
      src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageViewRequest.java
  15. 1
    1
      src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageViewResponse.java

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflAccessChannelAuthorityInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflAccessChannelInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflAccessChannelProductInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflApplicationFunctionExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflBlackInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflMobileApplicationInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflNoticeTemplateInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflPaccountRefundCountExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflSignReboundInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflUiInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflUserSecurityInfoExportHandler.java Näytä tiedosto

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;
} }

+ 1
- 1
src/main/java/com/qtzl/alterSales/manager/handler/AflVehicleWhiteExportHandler.java Näytä tiedosto

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;
} }

+ 0
- 181
src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageRequest.java Näytä tiedosto

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;
}

}

src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageViweRequest.java → src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageViewRequest.java Näytä tiedosto

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;

src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageResponse.java → src/main/java/com/qtzl/alterSales/manager/model/protocol/sales/AflProductInfoFindPageViewResponse.java Näytä tiedosto

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> {
} }

Loading…
Peruuta
Tallenna