Commit db96a22b authored by 廖旭伟's avatar 廖旭伟

修改项目信息以及项目数据接口

parent 5ca2743a
...@@ -62,8 +62,12 @@ public class CustomerLoginController extends BaseCRUDJsonBodyMappingController<C ...@@ -62,8 +62,12 @@ public class CustomerLoginController extends BaseCRUDJsonBodyMappingController<C
} }
@RequestMapping("logout") @RequestMapping("logout")
public void logout() throws Exception { public String logout() throws Exception {
recordSysLog(request, "退出登录"); recordSysLog(request, "退出登录");
super.removeCurrUser(request); super.removeCurrUser(request);
JSONObject ret = new JSONObject();
ret.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
ret.put(KEY_RESULT_MSG, "用户退出系统成功!");
return ret.toJSONString();
} }
} }
...@@ -109,9 +109,13 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi ...@@ -109,9 +109,13 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
} }
@RequestMapping("logout") @RequestMapping("logout")
public void logout() throws Exception { public String logout() throws Exception {
recordSysLog(request, "退出登录"); recordSysLog(request, "退出登录");
super.removeCurrUser(request); super.removeCurrUser(request);
JSONObject ret = new JSONObject();
ret.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
ret.put(KEY_RESULT_MSG, "用户退出系统成功!");
return ret.toJSONString();
} }
@RequestMapping("index") @RequestMapping("index")
......
...@@ -69,7 +69,7 @@ public class GoviewProjectEntity extends GoviewProjectVo { ...@@ -69,7 +69,7 @@ public class GoviewProjectEntity extends GoviewProjectVo {
this.customerId = customerId; this.customerId = customerId;
} }
/** /**
* 获取 项目状态[0未发布,1发布] * 获取 项目状态[-1未发布,1发布]
* @return Integer * @return Integer
*/ */
public Integer getState(){ public Integer getState(){
......
...@@ -20,6 +20,6 @@ public class GoviewProjectServiceImpl extends AbstractCRUDServiceImpl<GoviewProj ...@@ -20,6 +20,6 @@ public class GoviewProjectServiceImpl extends AbstractCRUDServiceImpl<GoviewProj
@Override @Override
protected void saveBefore(GoviewProjectEntity entity, Context context) throws AppException { protected void saveBefore(GoviewProjectEntity entity, Context context) throws AppException {
this.validData(entity, context); this.validData(entity, context);
entity.setCustomerId(this.getContextUserId(context)); entity.setState(-1);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment