Commit b7f7735f by zhengxj

finish 组织编辑 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17827 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent fc5b337a
......@@ -28,7 +28,6 @@ import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
......@@ -92,7 +91,7 @@ public class OrganizationController extends BaseController{
}
@RequestMapping(value = "/add", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject add( @RequestBody SysOrganization sysOrganization) {
public ResultObject add( SysOrganization sysOrganization) {
int i = organizationService.insertSelective(sysOrganization);
String msg = i == 0 ? ResultCodeEnum.FAIL.getMsg() : ResultCodeEnum.SUCCESS.getMsg();
int code = i == 0 ? ResultCodeEnum.FAIL.getCode() : ResultCodeEnum.SUCCESS.getCode();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!