yaobo 7 년 전
부모
커밋
17e10e24cc

+ 2 - 2
src/main/java/cn/efunbox/audio/controller/AudioController.java

@@ -293,7 +293,7 @@ public class AudioController {
         audio.setCreated(new Timestamp(new Date().getTime()));
         audio = audioService.Insert(audio);
 
-        TrailController.Insert(adminService, trailService, request, "audio", audio.getId(), " 新建资源:" + audio.toString());
+        TrailController.Insert(adminService, trailService, request, "audio", audio.getId(), " 新建资源:" + audio.getName());
 
         HttpUtil.responseOkData(request, response, audio);
         return;
@@ -315,7 +315,7 @@ public class AudioController {
         audio = (Audio)Common.CopyValue(audio, audioOld);
         audio = audioService.Insert(audio);
 
-        TrailController.Insert(adminService, trailService, request, "audio", audio.getId(), " 修改资源:" + audio.toString());
+        TrailController.Insert(adminService, trailService, request, "audio", audio.getId(), " 修改资源:" + audio.getName());
 
         HttpUtil.responseOkData(request, response, audio);
         return;

+ 3 - 3
src/main/java/cn/efunbox/audio/controller/ChannelController.java

@@ -118,7 +118,7 @@ public class ChannelController {
             }
         }
 
-        TrailController.Insert(adminService, trailService, request, "channel", channel.getId(), " 新建渠道:" + channel.toString());
+        TrailController.Insert(adminService, trailService, request, "channel", channel.getId(), " 新建渠道:" + channel.getName());
 
         HttpUtil.responseOkData(request, response, channel);
         return;
@@ -140,7 +140,7 @@ public class ChannelController {
         channel = channelService.Insert(channel);
 //        System.out.println("ch3:"+channel.toString());
 
-        TrailController.Insert(adminService, trailService, request, "channel", channel.getId(), " 更新渠道:" + channel.toString());
+        TrailController.Insert(adminService, trailService, request, "channel", channel.getId(), " 更新渠道:" + channel.getName());
 
         HttpUtil.responseOkData(request, response, channel);
         return;
@@ -167,7 +167,7 @@ public class ChannelController {
             }
         }
 
-        TrailController.Insert(adminService, trailService, request, "channel", Long.valueOf(idChannel), " 删除渠道:" + channel.toString());
+        TrailController.Insert(adminService, trailService, request, "channel", Long.valueOf(idChannel), " 删除渠道:" + channel.getName());
 
         HttpUtil.responseOk(request, response);
         return;

+ 3 - 3
src/main/java/cn/efunbox/audio/controller/GroupingController.java

@@ -126,7 +126,7 @@ public class GroupingController {
             groupingService.Insert(g);
         }
 
-        TrailController.Insert(adminService, trailService, request, "grouping", grouping.getId(), " 新建资源分组:" + grouping.toString());
+        TrailController.Insert(adminService, trailService, request, "grouping", grouping.getId(), " 新建资源分组:" + grouping.getName());
 
         HttpUtil.responseOkData(request, response, grouping);
         return;
@@ -144,7 +144,7 @@ public class GroupingController {
             grouping.setHasSon(true);
         grouping = groupingService.Insert(grouping);
 
-        TrailController.Insert(adminService, trailService, request, "grouping", grouping.getId(), " 更新资源分组:" + grouping.toString());
+        TrailController.Insert(adminService, trailService, request, "grouping", grouping.getId(), " 更新资源分组:" + grouping.getName());
 
         HttpUtil.responseOkData(request, response, grouping);
         return;
@@ -167,7 +167,7 @@ public class GroupingController {
             }
         }
 
-        TrailController.Insert(adminService, trailService, request, "grouping", grouping.getId(), " 删除资源分组:" + grouping.toString());
+        TrailController.Insert(adminService, trailService, request, "grouping", grouping.getId(), " 删除资源分组:" + grouping.getName());
 
         HttpUtil.responseOk(request, response);
         return;

+ 2 - 2
src/main/java/cn/efunbox/audio/controller/RightsController.java

@@ -147,7 +147,7 @@ public class RightsController {
         rights.setCreated(new Timestamp(new Date().getTime()));
         rights = rightsService.Insert(rights);
 
-        TrailController.Insert(adminService, trailService, request, "rights", rights.getId(), " 新建渠道对资源的访问权限:" + rights.toString());
+        TrailController.Insert(adminService, trailService, request, "rights", rights.getId(), " 新建渠道对资源的访问权限:" + rights.getNameChannel()+",资源:"+rights.getNameGroup());
 
         HttpUtil.responseOkData(request, response, rights);
         return;
@@ -163,7 +163,7 @@ public class RightsController {
         rights = (Rights) Common.CopyValue(rights, rightsOld);
         rights = rightsService.Insert(rights);
 
-        TrailController.Insert(adminService, trailService, request, "rights", rights.getId(), " 更新渠道对资源的访问权限:" + rights.toString());
+        TrailController.Insert(adminService, trailService, request, "rights", rights.getId(), " 更新渠道对资源的访问权限:" + rights.getNameChannel()+",资源:"+rights.getNameGroup());
 
         HttpUtil.responseOkData(request, response, rights);
         return;