|
@ -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";
|