|
@@ -0,0 +1,31 @@
|
|
|
+package com.business.controller;
|
|
|
+
|
|
|
+import com.business.service.AddLog_Service;
|
|
|
+import com.sooka.system.domain.BaseBusinessEntity;
|
|
|
+import com.sooka.system.service.impl.Guiji_Base_Service;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import javax.websocket.server.ServerEndpoint;
|
|
|
+
|
|
|
+import static com.sooka.common.utils.ServletUtils.getSession;
|
|
|
+
|
|
|
+@RequestMapping("/business/app/AddLogController")
|
|
|
+@RestController
|
|
|
+public class AddLogController {
|
|
|
+
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ AddLog_Service addLog_service;
|
|
|
+
|
|
|
+ @RequestMapping("add_log")
|
|
|
+ public void add_log(@RequestBody BaseBusinessEntity baseBusinessEntity) {
|
|
|
+ getSession().setAttribute("loginusername","admin_guiji");
|
|
|
+ addLog_service.add_log(baseBusinessEntity);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|