|
@ -28,6 +28,7 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.data.redis.core.StringRedisTemplate;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@ -79,7 +80,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
@Autowired
|
|
|
private JwPrescriptionService jwPrescriptionService;
|
|
|
@Autowired
|
|
|
private RedisTemplate redisTemplate;
|
|
|
private StringRedisTemplate redisTemplate;
|
|
|
@Autowired
|
|
|
private PresModeAdapter presModeAdapter;
|
|
|
|
|
@ -134,12 +135,13 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
StringBuffer sql = new StringBuffer(" SELECT pr.code FORM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND r.status = 0");
|
|
|
List<Map<String,Object>> mp = jdbcTemplate.queryForList(sql.toString(),new Object[]{r.getString("code")});
|
|
|
if(mp!=null&&mp.size()>0){
|
|
|
//审核中的标识
|
|
|
r.put("reviewedState",'0');
|
|
|
}else{
|
|
|
//非发起申请
|
|
|
r.put("reviewedState",'1');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return pres;
|
|
|
// //基卫接口
|
|
|
// List<Map<String,Object>> prescriptions = new ArrayList<>();
|
|
@ -1002,4 +1004,9 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
public JSONObject drugToRate(String code){
|
|
|
String val = redisTemplate.opsForValue().get("wlyy:dict:recipeFrequency:"+code);
|
|
|
return new JSONObject(val);
|
|
|
}
|
|
|
}
|