|
@@ -317,11 +317,11 @@ func (r *ErmcpModel) buildSql(nContractType, nQueryType int32) string {
|
|
|
|
|
|
|
|
var orderBy string
|
|
var orderBy string
|
|
|
var status string
|
|
var status string
|
|
|
- if 1 == nQueryType {
|
|
|
|
|
|
|
+ if nQueryType == 1 {
|
|
|
// 全部
|
|
// 全部
|
|
|
status = "2,3"
|
|
status = "2,3"
|
|
|
orderBy = " order by t.audittime desc"
|
|
orderBy = " order by t.audittime desc"
|
|
|
- } else if 2 == nQueryType {
|
|
|
|
|
|
|
+ } else if nQueryType == 2 {
|
|
|
// 待点价
|
|
// 待点价
|
|
|
status = "2"
|
|
status = "2"
|
|
|
str = str + " and t.qty - t.pricedqty > 0 and t.pricetype !=1 "
|
|
str = str + " and t.qty - t.pricedqty > 0 and t.pricetype !=1 "
|