Commit 01cc90d7 by zhengxj

finish 订单详情 on 统一参数形式 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17785 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c666acb8
......@@ -30,7 +30,6 @@ import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
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.constants.ResultObject;
......@@ -92,7 +91,7 @@ public class OrganizationController extends BaseController{
}
@RequestMapping(value = "/add", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject add(@RequestParam(value = "SysOrganization", required = true) 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();
......@@ -111,7 +110,7 @@ public class OrganizationController extends BaseController{
}
@RequestMapping(value = "/update", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject update(@RequestParam(value = "sysOrganization", required = false) SysOrganization sysOrganization) {
public ResultObject update( SysOrganization sysOrganization) {
organizationService.updateByPrimaryKeySelective(sysOrganization);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!