Commit 4cd9e144 by shiwenbo

购砂单位为购砂单位系统提供根据购砂单位id查询购砂单位详情的接口

parent 864f1021
......@@ -7,7 +7,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import com.beecode.bcp.type.KObject;
import com.xyst.dinas.biz.service.DinasOrganizationService;
import com.xyst.dinas.project.dao.ProjectFiledDao;
import com.xyst.dinas.project.dao.PurchaseSandCompanyDao;
import com.xyst.dinas.project.service.PurchaseSandCompanyService;
......@@ -30,4 +29,9 @@ public class PurchaseSandCompanyServiceImpl implements PurchaseSandCompanyServic
return flag;
}
@Override
public KObject getById(String id) {
return purchaseSandCompanyDao.load(UUID.fromString(id));
}
}
package com.xyst.dinas.project.service;
import com.beecode.bcp.type.KObject;
public interface PurchaseSandCompanyService {
Boolean verifyName(String name);
KObject getById(String id);
}
package com.xyst.dinas.project.web;
import java.util.UUID;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
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.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.beecode.inz.basis.team.pojo.ResponseObj;
import com.beecode.inz.common.exception.BusinessException;
import com.xyst.dinas.biz.enumeration.BizErrorCodeEnum;
import com.xyst.dinas.biz.service.PositionService;
import com.xyst.dinas.project.enumeration.ProjectErrorCodeEnum;
import com.xyst.dinas.project.service.ProjectFiledService;
import com.xyst.dinas.project.service.PurchaseSandCompanyService;
@RestController
......@@ -42,4 +33,16 @@ public class PurchaseSandCompanyController {
}
return null;
}
/**
* @Description: 通过购砂单位id查询购砂单位信息
* @param id
* @return return_type
* @throws
*/
@ResponseBody
@RequestMapping(value = "/sand/user/project/purchaseSandCompany/getById", method = RequestMethod.GET)
public Object getById(@RequestParam("id") String id) {
return purchaseSandCompanyService.getById(id);
}
}
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