Commit 4b01ac49 by wangnb

包活干V2.0.0:服务项目兼容处理--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28437 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e8863111
......@@ -111,8 +111,9 @@ public class ServiceItemController extends BaseController {
@AuthCheck
@RequestMapping(value = "/getAll", method = RequestMethod.GET)
public R getServiceItemByType(Integer type) {
if(type == null){ //历史原因,前端不改
type = 1;
//历史原因,前端不改 null查询安装单类型 -1查询全部
if(type == null || type == -1){
type = type == null ? 1 : null;
}
return R.ok().data(serviceItemService.selectByType(type));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!