anderx vor 5 Jahren
Ursprung
Commit
fdfac21844

+ 20 - 0
src/main/java/com/goafanti/admin/controller/AdminApiController.java

@@ -5,6 +5,7 @@ import java.util.Calendar;
 import java.util.UUID;
 
 import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
 import javax.validation.Valid;
 
 import org.springframework.beans.BeanUtils;
@@ -22,6 +23,7 @@ import com.goafanti.common.constant.ErrorConstants;
 import com.goafanti.common.controller.CertifyApiController;
 import com.goafanti.common.enums.AchievementAuditStatus;
 import com.goafanti.common.enums.AdminFields;
+import com.goafanti.common.enums.AttachmentType;
 import com.goafanti.common.enums.CertifySubmitType;
 import com.goafanti.common.enums.IdentityAuditStatus;
 import com.goafanti.common.enums.IdentityProcess;
@@ -452,6 +454,24 @@ public class AdminApiController extends CertifyApiController {
 			return res;
 		}
 	
+		
+		/**
+		 * 	管理员上传用户图片
+		 * @param req
+		 * @param sign
+		 * @return
+		 */
+	    @RequestMapping(value = "/uploadPicture", method = RequestMethod.POST)
+	    public Result uploadPicture(HttpServletRequest req, String sign,String aid) {
+	        Result res = new Result();
+	        AttachmentType attachmentType = AttachmentType.getField(sign);
+	        if (attachmentType == AttachmentType.USER_PICTURE) {
+	            res.setData(handleFiles(res, "/user/", false, req, sign, aid));
+	        } else {
+	            res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "附件标示"));
+	        }
+	        return res;
+	    }
 	
 	
 }

+ 4 - 4
src/main/webapp/WEB-INF/views/portal/aboutUs.html

@@ -322,6 +322,10 @@
  								<p>向湖南大学教育基金会捐款100万元</p>   				
  								<span>2019年</span>
  							</li>
+ 						</ol>
+ 					</li>
+					<li>
+						<ol>
 							<li>
 								<p>总部搬迁至位于国家级湘江新区的湖南省金融中心</p>
 								<span>2019年</span>
@@ -346,10 +350,6 @@
 								<p>科德集团获邀参加“2019年长沙市科学技术学术年会”</p>
 								<span>2019年</span>
 							</li>
- 						</ol>
- 					</li>
-					<li>
-						<ol>
 							<li>
 								<p>荣获“湖南省发展非公有制经济和中小企业先进单位”</p>
 								<span>2020年</span>