|
@ -171,10 +171,10 @@ public class MedOrderService {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
public JSONObject readCardInfo(String orgCode,String cardNo ,String card_sn,String mdtrt_cert_type,String idcard) throws Exception {
|
|
|
|
|
|
public JSONObject readCardInfo(String orgCode,String cardNo ,String card_sn,String mdtrt_cert_type,String idcard,String equ_num) throws Exception {
|
|
JSONObject result = new JSONObject();
|
|
JSONObject result = new JSONObject();
|
|
String sql = " select dp.* from t_mediicine_device de INNER JOIN t_mediicine_device_param dp on de.id = dp.device_id " +
|
|
String sql = " select dp.* from t_mediicine_device de INNER JOIN t_mediicine_device_param dp on de.id = dp.device_id " +
|
|
"where de.del=1 and dp.del=1 and de.belong_community='"+orgCode+"' ";
|
|
|
|
|
|
"where de.del=1 and dp.del=1 and de.equ_num='"+equ_num+"' ";
|
|
List<Map<String,Object>> deviceParams = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> deviceParams = jdbcTemplate.queryForList(sql);
|
|
if (deviceParams.size()==0){
|
|
if (deviceParams.size()==0){
|
|
throw new Exception("药柜参数获取错误");
|
|
throw new Exception("药柜参数获取错误");
|
|
@ -292,7 +292,7 @@ public class MedOrderService {
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public com.alibaba.fastjson.JSONArray getSettlementInfoFirst(String recipe_no,String card_sn,String mdtrt_cert_type,String idcard) throws Exception {
|
|
|
|
|
|
public com.alibaba.fastjson.JSONArray getSettlementInfoFirst(String recipe_no,String card_sn,String mdtrt_cert_type,String idcard,String equ_num) throws Exception {
|
|
JSONArray result = new JSONArray();
|
|
JSONArray result = new JSONArray();
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByLog_no(recipe_no);
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByLog_no(recipe_no);
|
|
if (null==ylzMedicalRelationDO){
|
|
if (null==ylzMedicalRelationDO){
|
|
@ -302,7 +302,7 @@ public class MedOrderService {
|
|
String orgCode = ylzMedicalRelationDO.getOrgCode();
|
|
String orgCode = ylzMedicalRelationDO.getOrgCode();
|
|
logger.info("获取患者待结算信息结束!");
|
|
logger.info("获取患者待结算信息结束!");
|
|
String sql = " select dp.* from t_mediicine_device de INNER JOIN t_mediicine_device_param dp on de.id = dp.device_id " +
|
|
String sql = " select dp.* from t_mediicine_device de INNER JOIN t_mediicine_device_param dp on de.id = dp.device_id " +
|
|
"where de.del=1 and dp.del=1 and de.belong_community='"+orgCode+"' ";
|
|
|
|
|
|
"where de.del=1 and dp.del=1 and de.equ_num='"+equ_num+"' ";
|
|
List<Map<String,Object>> deviceParams = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> deviceParams = jdbcTemplate.queryForList(sql);
|
|
if (deviceParams.size()==0){
|
|
if (deviceParams.size()==0){
|
|
throw new Exception("药柜参数获取错误");
|
|
throw new Exception("药柜参数获取错误");
|
|
@ -462,7 +462,7 @@ public class MedOrderService {
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public com.alibaba.fastjson.JSONArray getSettlementInfoSecond(String recipe_no,String mdtrt_cert_type,String readcardResult,String registerResult) throws Exception {
|
|
|
|
|
|
public com.alibaba.fastjson.JSONArray getSettlementInfoSecond(String recipe_no,String mdtrt_cert_type,String readcardResult,String registerResult,String equ_num) throws Exception {
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByLog_no(recipe_no);
|
|
YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findByLog_no(recipe_no);
|
|
JSONArray result = new JSONArray();
|
|
JSONArray result = new JSONArray();
|
|
JSONObject resultTmp = new JSONObject();
|
|
JSONObject resultTmp = new JSONObject();
|
|
@ -484,7 +484,7 @@ public class MedOrderService {
|
|
List<YlzMedicalIcdDO> ylzMedicalIcdDOS = ylzMedicailIcdDao.findByMedicalId(ylzMedicalRelationDO.getId());
|
|
List<YlzMedicalIcdDO> ylzMedicalIcdDOS = ylzMedicailIcdDao.findByMedicalId(ylzMedicalRelationDO.getId());
|
|
|
|
|
|
String sql = " select dp.* from t_mediicine_device de INNER JOIN t_mediicine_device_param dp on de.id = dp.device_id " +
|
|
String sql = " select dp.* from t_mediicine_device de INNER JOIN t_mediicine_device_param dp on de.id = dp.device_id " +
|
|
"where de.del=1 and dp.del=1 and de.belong_community='"+ylzMedicalRelationDO.getOrgCode()+"' ";
|
|
|
|
|
|
"where de.del=1 and dp.del=1 and de.equ_num='"+equ_num+"' ";
|
|
List<Map<String,Object>> deviceParams = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> deviceParams = jdbcTemplate.queryForList(sql);
|
|
if (deviceParams.size()==0){
|
|
if (deviceParams.size()==0){
|
|
throw new Exception("药柜参数获取错误");
|
|
throw new Exception("药柜参数获取错误");
|