|
|
@ -1,11 +1,14 @@
|
|
|
|
package com.hyp.web.controller.manager;
|
|
|
|
package com.hyp.web.controller.manager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
|
|
|
|
|
import com.hyp.common.core.domain.AjaxResult;
|
|
|
|
import com.hyp.common.exception.ServiceException;
|
|
|
|
import com.hyp.common.exception.ServiceException;
|
|
|
|
import com.hyp.system.domain.RewFileRelation;
|
|
|
|
import com.hyp.system.domain.RewFileRelation;
|
|
|
|
import com.hyp.system.service.RewFileRelationService;
|
|
|
|
import com.hyp.system.service.RewFileRelationService;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Objects;
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -55,6 +58,27 @@ public class FileRelationManager {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* 验证文件是否审查
|
|
|
|
|
|
|
|
* @param applyId
|
|
|
|
|
|
|
|
* @return com.hyp.common.core.domain.AjaxResult
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AjaxResult checkFile(String applyId){
|
|
|
|
|
|
|
|
List<RewFileRelation> list = fileRelationService.lambdaQuery()
|
|
|
|
|
|
|
|
.eq(RewFileRelation::getApplyId, applyId)
|
|
|
|
|
|
|
|
.list();
|
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(list)){
|
|
|
|
|
|
|
|
for(RewFileRelation rewFileRelation : list){
|
|
|
|
|
|
|
|
if(Objects.equals(rewFileRelation.getFileState(),2)){
|
|
|
|
|
|
|
|
return AjaxResult.error("材料存在未通过情况,请检查");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|