Commit 1ae2b7fd by zhengxj

finish 添加日志记录 on 20190308 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18335 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent aa375b4a
......@@ -33,6 +33,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.glsx.common.annotation.Log;
import com.glsx.common.constants.Constants;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.utils.StringUtils;
import com.glsx.common.utils.UserUtils;
......@@ -92,6 +94,7 @@ public class OrganizationController extends BaseController{
}
}
@Log(menuName="系统管理-字典数据", operateType = Constants.SYS_LOG_OPERATE_TYPE_SAVE)
@RequestMapping(value = "/add", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject add( SysOrganization sysOrganization) {
......@@ -106,6 +109,7 @@ public class OrganizationController extends BaseController{
return new ResultObject(code, msg);
}
@Log(menuName="系统管理-字典数据", operateType = Constants.SYS_LOG_OPERATE_TYPE_DELETE)
@RequestMapping(value = "/deleteById", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject deleteById( SysOrganization organization) {
if (organization==null||organization.getId() == null) {
......@@ -117,6 +121,7 @@ public class OrganizationController extends BaseController{
return new ResultObject(code, msg);
}
@Log(menuName="系统管理-字典数据", operateType = Constants.SYS_LOG_OPERATE_TYPE_UPDATE)
@RequestMapping(value = "/update", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject update( SysOrganization sysOrganization) {
sysOrganization.setUpdateTime(new Date());
......
......@@ -14,6 +14,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.glsx.common.annotation.Log;
import com.glsx.common.constants.Constants;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.utils.StringUtils;
import com.glsx.usercenter.constants.ResultCodeEnum;
......@@ -73,6 +75,7 @@ public class SysMenuController extends BaseController {
}
}
@Log(menuName="系统管理-字典数据", operateType = Constants.SYS_LOG_OPERATE_TYPE_SAVE)
@RequestMapping(value = "/add", method = { RequestMethod.POST })
public ResultObject add( SysMenu sysMenu) {
int i = menuService.insertSelective(sysMenu);
......@@ -81,6 +84,7 @@ public class SysMenuController extends BaseController {
return new ResultObject(code, msg);
}
@Log(menuName="系统管理-字典数据", operateType = Constants.SYS_LOG_OPERATE_TYPE_DELETE)
@RequestMapping(value = "/deleteById", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject deleteById(@RequestParam(value = "id", required = false) Integer id) {
if (id == null) {
......@@ -92,6 +96,7 @@ public class SysMenuController extends BaseController {
return new ResultObject(code, msg);
}
@Log(menuName="系统管理-字典数据", operateType = Constants.SYS_LOG_OPERATE_TYPE_UPDATE)
@RequestMapping(value = "/update", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject update( SysMenu sysMenu) {
menuService.updateByPrimaryKey(sysMenu);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!