forked from ixre/go2o
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ixre#21 from jsix/develop
Develop
- Loading branch information
Showing
333 changed files
with
10,958 additions
and
18,434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ExportItemConfig> | ||
<ColumnMappingString></ColumnMappingString> | ||
<Query> | ||
<![CDATA[ | ||
SELECT m.name,r.* FROM mm_member m INNER JOIN pf_riseinfo r ON r.person_id=m.id | ||
INNER JOIN mm_relation rl ON rl.member_id=m.id | ||
WHERE rl.reg_partner_id={partner_id} AND ('{keyword}' = '' OR (m.usr LIKE '%{keyword}%' OR m.name LIKE '%{keyword}%' OR m.phone | ||
LIKE '%{keyword}%')) ORDER BY {order} LIMIT {page_start},{page_size} | ||
]]> | ||
</Query> | ||
<Import><![CDATA[]]></Import> | ||
<Total> | ||
<![CDATA[ SELECT COUNT(0) FROM mm_member m INNER JOIN pf_riseinfo r ON r.person_id=m.id | ||
INNER JOIN mm_relation rl ON rl.member_id=m.id | ||
WHERE rl.reg_partner_id={partner_id} AND ('{keyword}' = '' OR (m.usr LIKE '%{keyword}%' OR m.name LIKE '%{keyword}%' OR m.phone | ||
LIKE '%{keyword}%')) | ||
]]> | ||
</Total> | ||
</ExportItemConfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ExportItemConfig> | ||
<ColumnMappingString></ColumnMappingString> | ||
<Query> | ||
<![CDATA[ | ||
SELECT r.* FROM mm_member m INNER JOIN pf_riselog r ON r.person_id=m.id | ||
INNER JOIN mm_relation rl ON rl.member_id=m.id | ||
WHERE rl.reg_partner_id={partner_id} AND r.person_id={person_id} | ||
AND ({type}=-1 OR {type}=type) AND ('{keyword}' = '' | ||
OR (r.title LIKE '%{keyword}%')) ORDER BY log_time DESC LIMIT {page_start},{page_size} | ||
]]> | ||
</Query> | ||
<Import><![CDATA[]]></Import> | ||
<Total> | ||
<![CDATA[ SELECT COUNT(0) FROM mm_member m INNER JOIN pf_riselog r ON r.person_id=m.id | ||
INNER JOIN mm_relation rl ON rl.member_id=m.id | ||
WHERE rl.reg_partner_id={partner_id} AND r.person_id={person_id} | ||
AND ({type}=-1 OR {type}=type) AND ('{keyword}' = '' | ||
OR (r.title LIKE '%{keyword}%')) | ||
]]> | ||
</Total> | ||
</ExportItemConfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ExportItemConfig> | ||
<ColumnMappingString></ColumnMappingString> | ||
<Query> | ||
<![CDATA[ | ||
SELECT r.*,m.name,m.phone FROM mm_member m INNER JOIN pf_riselog r ON r.person_id=m.id | ||
INNER JOIN mm_relation rl ON rl.member_id=m.id | ||
WHERE rl.reg_partner_id={partner_id} AND r.type IN({type}) | ||
AND ({state}=-1 OR {state}=r.state) AND ('{keyword}' = '' | ||
OR (r.title LIKE '%{keyword}%' OR m.name LIKE '%{keyword}%' | ||
OR m.phone LIKE '%{keyword}%' OR m.usr LIKE '%{keyword}%')) | ||
ORDER BY log_time DESC LIMIT {page_start},{page_size} | ||
]]> | ||
</Query> | ||
<Import><![CDATA[]]></Import> | ||
<Total> | ||
<![CDATA[ SELECT COUNT(0) FROM mm_member m INNER JOIN pf_riselog r ON r.person_id=m.id | ||
INNER JOIN mm_relation rl ON rl.member_id=m.id | ||
WHERE rl.reg_partner_id={partner_id} AND r.type IN({type}) | ||
AND ({state}=-1 OR {state}=r.state) AND ('{keyword}' = '' | ||
OR (r.title LIKE '%{keyword}%' OR m.name LIKE '%{keyword}%' | ||
OR m.phone LIKE '%{keyword}%' OR m.usr LIKE '%{keyword}%')) | ||
]]> | ||
</Total> | ||
</ExportItemConfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/** | ||
* Copyright 2014 @ z3q.net. | ||
* name : | ||
* author : jarryliu | ||
* date : 2013-12-16 21:45 | ||
* description : | ||
* history : | ||
*/ | ||
|
||
package main | ||
|
||
import ( | ||
"flag" | ||
"fmt" | ||
"github.com/jsix/gof" | ||
"github.com/jsix/gof/storage" | ||
"go2o/src/app/cache" | ||
"go2o/src/core" | ||
"go2o/src/core/service/dps" | ||
"log" | ||
"os" | ||
"runtime" | ||
"go2o/src/fix" | ||
"go2o/src/app/front/partner" | ||
"github.com/jsix/gof/web/session" | ||
) | ||
|
||
func main() { | ||
var ( | ||
ch chan bool = make(chan bool) | ||
confFile string | ||
httpPort int | ||
debug bool | ||
trace bool | ||
help bool | ||
newApp *core.MainApp | ||
) | ||
|
||
flag.IntVar(&httpPort, "port", 14281, "web server port") | ||
flag.BoolVar(&debug, "debug", false, "enable debug") | ||
flag.BoolVar(&trace, "trace", false, "enable trace") | ||
flag.BoolVar(&help, "help", false, "command usage") | ||
flag.StringVar(&confFile, "conf", "app.conf", "") | ||
flag.Parse() | ||
|
||
if help { | ||
flag.Usage() | ||
return | ||
} | ||
|
||
log.SetOutput(os.Stdout) | ||
log.SetFlags(log.LstdFlags | log.Ltime | log.Ldate | log.Lshortfile) | ||
|
||
runtime.GOMAXPROCS(runtime.NumCPU()) | ||
newApp = core.NewMainApp(confFile) | ||
if !newApp.Init(debug, trace) { | ||
os.Exit(1) | ||
} | ||
fix.CustomFix() | ||
go fix.SignalNotify(ch) | ||
|
||
gof.CurrentApp = newApp | ||
dps.Init(newApp) | ||
core.RegisterTypes() | ||
cache.Initialize(storage.NewRedisStorage(newApp.Redis())) | ||
session.Set(newApp.Storage(),"") | ||
go partner.Listen(ch, newApp, fmt.Sprintf(":%d", httpPort)) | ||
|
||
<-ch | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* Copyright 2014 @ z3q.net. | ||
* name : | ||
* author : jarryliu | ||
* date : 2013-12-16 21:45 | ||
* description : | ||
* history : | ||
*/ | ||
|
||
package main | ||
|
||
import ( | ||
"flag" | ||
"fmt" | ||
"go2o/src/core" | ||
"log" | ||
"os" | ||
"runtime" | ||
"go2o/src/fix" | ||
"go2o/src/app/front/pub" | ||
) | ||
|
||
func main() { | ||
var ( | ||
ch chan bool = make(chan bool) | ||
confFile string | ||
httpPort int | ||
help bool | ||
newApp *core.MainApp | ||
) | ||
|
||
flag.IntVar(&httpPort, "port", 14280, "web server port") | ||
flag.BoolVar(&help, "help", false, "command usage") | ||
flag.StringVar(&confFile, "conf", "app.conf", "") | ||
flag.Parse() | ||
|
||
if help { | ||
flag.Usage() | ||
return | ||
} | ||
log.SetOutput(os.Stdout) | ||
log.SetFlags(log.LstdFlags | log.Ltime | log.Ldate | log.Lshortfile) | ||
runtime.GOMAXPROCS(runtime.NumCPU()) | ||
newApp = core.NewMainApp(confFile) | ||
go fix.SignalNotify(ch) | ||
go pub.Listen(ch, newApp, fmt.Sprintf(":%d", httpPort)) | ||
|
||
<-ch | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.