Browse Source

更新:
编辑房源接口修改
门面日志类修改

wuweihao 4 years ago
parent
commit
d789e36ffb

+ 4 - 4
cms_pano_fcb/gis_common/src/main/java/com/gis/common/config/CommonInterceptor.java

@@ -21,9 +21,9 @@ public class CommonInterceptor implements HandlerInterceptor {
                 && !request.getRequestURI().contains(".json") && !request.getRequestURI().contains(".png")
                 && !request.getRequestURI().contains(".html") && !request.getRequestURI().contains(".mp3")){
         }
-        log.warn("start : {}" , request.getRequestURI());
-        log.info("request Method : {}" , request.getMethod());
-        log.info("request IP : {}" , request.getRemoteAddr());
+//        log.warn("start : {}" , request.getRequestURI());
+//        log.info("request Method : {}" , request.getMethod());
+//        log.info("request IP : {}" , request.getRemoteAddr());
 
 
         return true;
@@ -44,7 +44,7 @@ public class CommonInterceptor implements HandlerInterceptor {
                 && !request.getRequestURI().contains(".json") && !request.getRequestURI().contains(".png")
                 && !request.getRequestURI().contains(".html") && !request.getRequestURI().contains(".mp3")){
         }
-        log.warn("end : {}" , request.getRequestURI());
+//        log.warn("end : {}" , request.getRequestURI());
     }
 
 

+ 2 - 15
cms_pano_fcb/gis_domain/src/main/java/com/gis/domain/dto/EditHouseDto.java

@@ -12,9 +12,6 @@ import javax.validation.constraints.NotBlank;
 @Data
 public class EditHouseDto {
 
-//    @ApiModelProperty(value = "id, 修改时必须传,新增忽略", name = "id")
-//    private String id;
-
     @ApiModelProperty(value = "房源-标题")
     private String houseTitle;
 
@@ -28,18 +25,8 @@ public class EditHouseDto {
     @ApiModelProperty(value = "房源-封面图(初始画面)")
     private String houseIcon;
 
-    @ApiModelProperty(value = "恒大Id")
+    @NotBlank(message = "房源-恒大Id不能为空")
+    @ApiModelProperty(value = "恒大Id", required = true)
     private String fcbHouseId;
 
-//    @ApiModelProperty(value = "场景-someData")
-//    private String someData;
-
-//    @ApiModelProperty(value = "场景-文件名")
-//    private String fileName;
-
-//    @ApiModelProperty(value = "初始场景,0:否, 1:是(排第一)")
-//    private Integer isIndex;
-
-
-
 }

+ 6 - 7
cms_pano_fcb/gis_web/src/main/java/com/gis/web/aop/WebLogAspect.java

@@ -50,9 +50,9 @@ public class WebLogAspect {
 
     @Before("controllerLog()") //在切入点的方法run之前要干的
     public void logBeforeController(JoinPoint joinPoint)  {
-//        log.warn("start : {}" , request.getRequestURI());
-//        log.info("request Method : {}" , request.getMethod());
-//        log.info("request IP : {}" , request.getRemoteAddr());
+        log.info("start : {}" , request.getRequestURI());
+        log.info("request Method : {}" , request.getMethod());
+        log.info("request IP : {}" , request.getRemoteAddr());
         log.info("request Args : {}" , Arrays.toString(joinPoint.getArgs()));
 
         // 获取token
@@ -76,7 +76,6 @@ public class WebLogAspect {
         }
 
         String userInfo = redisTemplate.opsForValue().get(token);
-//        log.info("redis value: " + userInfo);
 
         if (userInfo == null) {
             log.warn("redis 找不到token key: " + token);
@@ -84,7 +83,7 @@ public class WebLogAspect {
         }
 
 
-
+        try {
         JSONObject jsonObject = JSONObject.parseObject(userInfo);
         log.info("userInfo : " + jsonObject.toString());
 
@@ -113,7 +112,7 @@ public class WebLogAspect {
             logInfoDto.setCreateTime(now);
             logInfoDto.setOperateTime(now);
 
-        try {
+
             houseFeign.addLog(logInfoDto);
         } catch (Exception e) {
             //下面这个getSignature().getDeclaringTypeName()是获取包+类名的   然后后面的joinPoint.getSignature.getName()获取了方法名
@@ -132,7 +131,7 @@ public class WebLogAspect {
     @AfterReturning(returning = "ret", pointcut = "controllerLog()")
     public void doAfterReturning(Object ret) throws Throwable {
         // 处理完请求,返回内容
-        log.warn("end : {}", request.getRequestURI());
+        log.info("end : {}", request.getRequestURI());
     }
 
     /**

+ 1 - 1
cms_pano_fcb/gis_web/src/main/java/com/gis/web/controller/HouseController.java

@@ -56,7 +56,7 @@ public class HouseController extends BaseController {
     }
 
 
-    @WebControllerLog(description = "编辑VR项目")
+    @WebControllerLog(description = "VR项目-编辑VR项目")
     @ApiOperation(value = "VR项目修改", position = 3, notes = "修改VR项目的基础信息")
     @PostMapping("edit")
     public Result editHouse(@Valid @RequestBody EditHouseDto param) {

+ 9 - 4
cms_pano_fcb/remark.md

@@ -172,12 +172,13 @@ sit:
     7. 
 
 # sit 更新日志
-    20210322
+    20210322 大版本更新
         新增:初始画面-上传接口,作用封面图统一 全景图缩略图统一命名规则: http:// oss/cms_pano_fcb/image/thumb_sceneCode.jpg
         新增:初始场景管理模块,提供管理后台初始场景列表  (新的是三个初始场景,是否需要兼容旧数据?? 需要兼容旧数据)
         
     20210330
-        只有房源编辑接口需要把VR项目信息更新到管理后台, 其他三类场景保存结果都不需要更新场景码过去   
+        只有房源编辑接口需要把VR项目信息更新到管理后台, 其他三类场景保存结果都不需要更新场景码过去 
+          
            
     
 # uat 更新日志
@@ -191,7 +192,7 @@ sit:
     20210302-1200
         去掉日志功能 
         
-    20210304-1200
+    20210304-1200  大版本更新
         全景园林添加VR模型, 需要更新数据库
         保存VR项目日志   
         
@@ -200,7 +201,11 @@ sit:
         
         初始场景旧数据导入   
         vr-web01-uat.fcb.com.cn/fcb/pano/common/updateData            
-        vr-web01-uat.fcb.com.cn/fcb/pano/common/getData            
+        vr-web01-uat.fcb.com.cn/fcb/pano/common/getData    
+        
+        
+     20210330-1700
+         更新sit 20210330内容          
 
 # pro 更新日志
     20210228-1722