|
@ -690,6 +690,11 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
|
|
|
List<Map<String,Object>> states = new ArrayList<>();
|
|
|
|
|
|
Map<String,Object> map0 = new HashMap<>();
|
|
|
map0.put("name","续方申请通过");
|
|
|
map0.put("code",PrescriptionLog.PrescriptionLogStatus.wait_pay.getValue());
|
|
|
states.add(map0);
|
|
|
|
|
|
Map<String,Object> map1 = new HashMap<>();
|
|
|
map1.put("name","订单已支付");
|
|
|
map1.put("code",PrescriptionLog.PrescriptionLogStatus.pay_success.getValue());
|
|
@ -711,9 +716,9 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
states.add(map4);
|
|
|
|
|
|
Map<String,Object> map5 = new HashMap<>();
|
|
|
map2.put("name","配药完成");
|
|
|
map2.put("code",PrescriptionLog.PrescriptionLogStatus.finish.getValue());
|
|
|
states.add(map2);
|
|
|
map5.put("name","配送完成");
|
|
|
map5.put("code",PrescriptionLog.PrescriptionLogStatus.finish.getValue());
|
|
|
states.add(map5);
|
|
|
//设置配送状态下拉框
|
|
|
rs.put("states",states);
|
|
|
|
|
@ -778,8 +783,8 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
param.add("%"+nameKey+"%");
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(teamCode)){
|
|
|
pre_sql.append(" AND p.admin_team_id = ? ");
|
|
|
param.add("%"+teamCode+"%");
|
|
|
pre_sql.append(" AND pr.admin_team_id = ? ");
|
|
|
param.add(teamCode);
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(startDate)){
|
|
|
pre_sql.append(" AND pr.create_time >= ? ");
|
|
@ -815,12 +820,15 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
}
|
|
|
|
|
|
public JSONObject getCountExpressage(String teamCode){
|
|
|
StringBuffer pre_sql = new StringBuffer("SELECT count(1) AS count FROM " +
|
|
|
" wlyy_prescription pr " +
|
|
|
" JOIN wlyy_prescription_expressage e ON pr.code = e.prescription_code " +
|
|
|
" WHERE pr.admin_team_id = ? "+
|
|
|
" AND pr.dispensary_type =3" +
|
|
|
" AND e.expressage_code IS NULL");
|
|
|
StringBuffer pre_sql = new StringBuffer("SELECT " +
|
|
|
" count(1) AS count " +
|
|
|
" FROM " +
|
|
|
" wlyy_prescription pr " +
|
|
|
" JOIN wlyy_prescription_expressage e ON pr. CODE = e.prescription_code " +
|
|
|
" WHERE " +
|
|
|
" pr.admin_team_id = ? " +
|
|
|
" AND pr.dispensary_type = 3 " +
|
|
|
" AND e.expressage_code IS NULL");
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(pre_sql.toString(),new Object[]{teamCode});
|
|
|
|
|
|
if(list!=null&&list.size()>0){
|