瀏覽代碼

Merge branch 'dev' of wangzhinan/patient-co-management into dev

huangwenjie 7 年之前
父節點
當前提交
3721409e05

+ 8 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/third/health/bank/CreditLogService.java

@ -92,12 +92,15 @@ public class CreditLogService {
     * @param object
     * @return
     */
    public JSONObject insert(JSONObject object){
    public JSONObject insert(JSONObject object) throws Exception {
        init();
        String response = null;
        String integrate = getIntegrate("health:blank:integrate:"+object.getString("flag"));
        String patientId = object.getString("patientId");
        Patient patient = patientDao.findByCode(patientId);
        if (patient == null){
            throw new Exception("该居民不存在");
        }
        object.put("name",patient.getName());
        object.put("integrate",integrate);
        String url =baseUrl + "createCreditsDetail";
@ -145,9 +148,12 @@ public class CreditLogService {
     * @param object
     * @return
     */
    public JSONObject selectAccount(JSONObject object){
    public JSONObject selectAccount(JSONObject object) throws Exception {
        String patientId = object.getString("patientId");
        Patient patient = patientDao.findByCode(patientId);
        if (patient == null){
            throw new Exception("该居民不存在");
        }
        object.put("name",patient.getName());
        String response = null;
        String url =baseUrl + "selectAccount";