main
黄海 2 years ago
parent 78c7c92dfe
commit b38cafc1d2

@ -1900,6 +1900,16 @@ public class CollectController extends Controller {
renderJson(map);
}
/**
*
* http://10.10.21.20:9000/QingLong/collect/getAllBureau
*/
@Before({GET.class, RepeatIntercetpor.class})
public void getAllBureau() {
List<Record> list = cm.getAllBureau();
renderJson(CommonUtil.renderJsonForLayUI(list));
}
/**
*
* http://10.10.21.20:9000/QingLong/collect/getTyAllBureau

@ -2551,11 +2551,7 @@ public class CollectModel {
* @return
*/
public Map<String, Record> getAllMatchBureau() {
GlobalModel gm = new GlobalModel();
String city_id = gm.getGlobalValueByKey("install_area");
String sql = "select org_id,org_name,third_party_id from t_base_organization where city_id=? and bureau_id=org_id";
List<Record> list = Db.find(sql, city_id);
List<Record> list = getAllBureau();
Map<String, Record> _map = new HashMap<>();
for (Record record : list) {
String third_party_id = record.getStr("third_party_id");
@ -2564,4 +2560,17 @@ public class CollectModel {
}
return _map;
}
/**
*
* @return
*/
public List<Record> getAllBureau() {
GlobalModel gm = new GlobalModel();
String city_id = gm.getGlobalValueByKey("install_area");
String sql = "select org_id,org_name,third_party_id,CASE WHEN third_party_id IS NULL THEN 0 ELSE 1 END AS is_match from t_base_organization where city_id=? and bureau_id=org_id and is_virtual=0";
List<Record> list = Db.find(sql, city_id);
return list;
}
}
Loading…
Cancel
Save