fix
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
and (b.username like concat('%',#{request.keyword},'%') or b.mobile like concat('%',#{request.keyword},'%'))
|
||||
</if>
|
||||
<if test="request.areaPath != null and request.areaPath != '' ">
|
||||
and b.want_shop_area_id in (select id from xfsg_open_area_info where area_path like concat(#{areaPath}, '%'))
|
||||
and b.want_shop_area_id in (select id from xfsg_open_area_info where area_path like concat(#{request.areaPath}, '%'))
|
||||
</if>
|
||||
<if test="request.auditResult != null">
|
||||
and a.audit_result = #{request.auditResult}
|
||||
|
||||
@@ -15,7 +15,11 @@ public class IsSubmitOpenNewShopVO {
|
||||
@ApiModelProperty("是否可以开新店 true:可以开店 false:不能开新店")
|
||||
private Boolean isSubmitOpenNewShop;
|
||||
|
||||
public IsSubmitOpenNewShopVO(Boolean isSubmitOpenNewShop) {
|
||||
@ApiModelProperty("审核状态 0待审核 1通过 2不通过")
|
||||
private Integer auditResult;
|
||||
|
||||
public IsSubmitOpenNewShopVO(Boolean isSubmitOpenNewShop, Integer auditResult) {
|
||||
this.isSubmitOpenNewShop = isSubmitOpenNewShop;
|
||||
this.auditResult = auditResult;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,10 +140,10 @@ public class OpenNewShopServiceImpl implements OpenNewShopService {
|
||||
//首先获取有没有待审核的记录
|
||||
OpenNewShopRecordDO openNewShopRecord = openNewShopRecordDAO.getWaitAuditOpenNewShopRecord(lineId);
|
||||
if(Objects.nonNull(openNewShopRecord)){
|
||||
return new IsSubmitOpenNewShopVO(Boolean.FALSE);
|
||||
return new IsSubmitOpenNewShopVO(Boolean.FALSE, openNewShopRecord.getAuditResult());
|
||||
}
|
||||
//没有待审核的记录 去获取店铺是否都已经在验收中
|
||||
Integer notOpenShopCount = shopStageInfoDAO.getNotOpenShopCountByLineId(lineId);
|
||||
return new IsSubmitOpenNewShopVO(notOpenShopCount <= CommonConstants.ZERO);
|
||||
return new IsSubmitOpenNewShopVO(notOpenShopCount <= CommonConstants.ZERO, null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user