Browse Source

项目管理

suntianwu 2 years ago
parent
commit
720fbdfae4

+ 5 - 11
purchase-admin/src/main/java/com/ozs/web/controller/pm/PmPurchaseExecutionController.java

@@ -392,17 +392,11 @@ public class PmPurchaseExecutionController extends BaseController {
                 return error("参数错误");
             }
             List<SysFileRef> sysFileRefs = pmCallQuestionReqVo.getSysFileRefs();
-            if(ObjectUtils.isEmpty(sysFileRefs)){
-                return error("参数错误");
-            }
-            if(pmDemandService.uploadFile(demandId, SysFileRefEnum.PM_BID_CALL_QEUSTION_FILE.getType(),sysFileRefs,getUserId().toString())){
-                pmDemand.setCallQuestion(pmCallQuestionReqVo.getCallQuestion());
-                pmDemand.setUpdateBy(getUserId().toString());
-                pmDemand.setUpdateTime(new Date());
-                return toAjax(pmDemandService.updateById(pmDemand));
-            } else {
-                return error("保存上传附件失败");
-            }
+            pmDemandService.uploadFile(demandId, SysFileRefEnum.PM_BID_CALL_QEUSTION_FILE.getType(),sysFileRefs,getUserId().toString());
+            pmDemand.setCallQuestion(pmCallQuestionReqVo.getCallQuestion());
+            pmDemand.setUpdateBy(getUserId().toString());
+            pmDemand.setUpdateTime(new Date());
+            return toAjax(pmDemandService.updateById(pmDemand));
 
         }  catch (Exception e) {
             return error(e.getMessage());