Commit ba4b56b7 by 杨林龙

Merge remote-tracking branch 'origin/master'

2 parents 7e9e76fb f21f52fb
......@@ -25,6 +25,7 @@ public class AdminException extends RuntimeException {
public AdminException(int errorCode, String message) {
super(message);
this.errorCode = errorCode;
this.message=message;
}
public AdminException(ResultEnum resultEnum) {
......
......@@ -17,10 +17,10 @@ import cn.com.glsx.admin.modules.model.param.ApprovalSearch;
import cn.com.glsx.admin.modules.model.param.FenceApproSearch;
import cn.com.glsx.admin.modules.model.param.VehicleApproSearch;
import cn.com.glsx.auth.utils.ShieldContextHolder;
import cn.com.glsx.usercenter.api.feign.OrganizationService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -169,9 +169,11 @@ public class ApprovalService {
PageHelper.startPage(fenceApproSearch.getPageNumber(), fenceApproSearch.getPageSize());
List<FenceApproDto> fenceApproDtoList=approvalMapper.searchFenceApp(fenceApproSearch);
organizaService.drawOrganization(fenceApproDtoList);
fenceApproDtoList.forEach(index->{
index.setFenceType(BizFenceTypeEnum.getNameByCode(index.getFenceTypeId()));
});
if(CollectionUtils.isNotEmpty(fenceApproDtoList)) {
fenceApproDtoList.forEach(index -> {
index.setFenceType(BizFenceTypeEnum.getNameByCode(index.getFenceTypeId()));
});
}
return new PageInfo<>(fenceApproDtoList);
}
......
......@@ -9,7 +9,6 @@ import cn.com.glsx.admin.modules.mapper.VehicleDocMapper;
import cn.com.glsx.admin.modules.model.TrialDriveVehicleEditDTO;
import cn.com.glsx.admin.modules.model.VehicleApproDto;
import cn.com.glsx.admin.modules.model.VehicleDocDto;
import cn.com.glsx.admin.modules.model.export.VehicleApproExport;
import cn.com.glsx.admin.modules.model.param.*;
import cn.com.glsx.auth.utils.ShieldContextHolder;
import com.github.pagehelper.PageHelper;
......
......@@ -95,6 +95,7 @@
t1.del_flag = 0
and t5.status in (1,2,3)
and t5.biz_type=2
and t6.del_flag = 0
and t5.id in(select max(id) from t_approval group by biz_id)
<if test="search.approvalStatus !=null and search.approvalStatus != ''">
and t5.status=#{search.approvalStatus}
......@@ -132,6 +133,7 @@
left join t_dict_data td on app.status=td.dict_value
where app.del_flag = 0 and app.status in (1,2,3) and td.dict_type='approval_status'
AND APP.biz_type=1 and t6.username is not null
and t6.del_flag = 0
<if test="search.approvalStatus !=null and search.approvalStatus != ''">
and app.status=#{search.approvalStatus}
</if>
......
......@@ -64,6 +64,7 @@
WHERE
t1.del_flag = 0
and t6.username is not null
and t6.del_flag = 0
<if test="search.approvalStatus !=null and search.approvalStatus != ''">
and t5.status=#{search.approvalStatus}
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!