|
|
@@ -3,7 +3,9 @@ package com.goafanti.order.controller;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
import com.goafanti.common.constant.ErrorConstants;
|
|
|
import com.goafanti.common.controller.CertifyApiController;
|
|
|
+import com.goafanti.common.enums.AttachmentType;
|
|
|
import com.goafanti.common.utils.StringUtils;
|
|
|
+import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.order.bo.*;
|
|
|
import com.goafanti.order.enums.OrderLegalAffairsState;
|
|
|
import com.goafanti.order.service.LegalAffairsService;
|
|
|
@@ -13,6 +15,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.validation.Valid;
|
|
|
|
|
|
@RestController
|
|
|
@@ -127,4 +130,19 @@ public class LegalAffairsApiController extends CertifyApiController {
|
|
|
res.data(legalAffairsService.lagalAffairsLogList(orderNo));
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 法务日志文件上传
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/uploadLegalLogFile", method = RequestMethod.POST)
|
|
|
+ public Result uploadDunLogFileResult(HttpServletRequest req, String sign) {
|
|
|
+ Result res = new Result();
|
|
|
+ AttachmentType attachmentType = AttachmentType.getField(sign);
|
|
|
+ if (attachmentType == AttachmentType.LEGAL_LOG_ATTACHMENT) {
|
|
|
+ res.setData(handleFiles(res, "/legal_log_attachment/", false, req, sign, TokenManager.getAdminId()));
|
|
|
+ } else {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "附件标示"));
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|