|
@ -3,6 +3,7 @@ package com.yihu.wlyy.service.template;
|
|
|
import com.yihu.wlyy.entity.template.DoctorGuidanceTemp;
|
|
|
import com.yihu.wlyy.repository.template.DoctorGuidanceTempDao;
|
|
|
import com.yihu.wlyy.service.BaseService;
|
|
|
import com.yihu.wlyy.util.CodeFomat;
|
|
|
import com.yihu.wlyy.util.CommonUtil;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -59,6 +60,7 @@ public class DoctorGuidanceTempService extends BaseService {
|
|
|
Map temp = (Map) jdbcTemplate.queryForMap(sql, modelCode);
|
|
|
String modelName = (String) temp.get("model_name");
|
|
|
String content = (String) temp.get("content");
|
|
|
content = CodeFomat.chineseToDate(content);
|
|
|
String imagesUrl = (String) temp.get("images_url");
|
|
|
// 多图按逗号分割保存成数组
|
|
|
String[] imagesArray = null;
|
|
@ -86,6 +88,7 @@ public class DoctorGuidanceTempService extends BaseService {
|
|
|
* @return
|
|
|
*/
|
|
|
public DoctorGuidanceTemp add(String doctor, String content, String modelName, String imagesUrl) {
|
|
|
content = CodeFomat.dateToChinese(content);
|
|
|
DoctorGuidanceTemp guidanceTemp = new DoctorGuidanceTemp();
|
|
|
String imageUrls = "";
|
|
|
String imageRow = "";
|