123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package main
- import (
- util "jygit.jydev.jianyu360.cn/data_processing/common_utils"
- "testing"
- )
- func TestMethod(t *testing.T) {
- initSeg()
- InitEs()
- //util.Debug(Method("万宁市城南路市政道路高低压电力线路改造工程"))
- //wds, query := Method1("1#、2#厂房扩建项目")
- //util.Debug(wds)
- //util.Debug(query)
- //binfo := Es.GetNoLimit("projectset", query)
- //if binfo != nil && len(*binfo) > 0 {
- // util.Debug(len(*binfo))
- //}
- Method3(map[string]interface{}{"projectname": "万宁市城南路市政道路高低压电力线路改造工程"})
- }
- func TestMethod2(t *testing.T) {
- util.Debug(regDel.ReplaceAllString("12厂房扩建项目", ""))
- util.Debug(filterMethod(map[string]interface{}{"projectname": "1#、2#厂房扩建项目"}))
- util.Debug(combArr([]string{
- "崇仁县",
- "石庄",
- "乡",
- "2022",
- "年",
- "新",
- "农村",
- "建设工程",
- "石庄村",
- "程坊",
- "组"}))
- }
|