|
|
@ -9,6 +9,7 @@ import ( |
|
|
|
meta "leit.com/LAPP_CHEERSSON_BACKEND/meta/ap" |
|
|
|
model "leit.com/LAPP_CHEERSSON_BACKEND/models/ap" |
|
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/utils" |
|
|
|
"strings" |
|
|
|
"xorm.io/core" |
|
|
|
) |
|
|
|
|
|
|
@ -361,7 +362,10 @@ func (impl *CustDemandVerDetailDAOImplement) SelectDeviation(customerId string, |
|
|
|
session = session.In("VersionId", versionIds) |
|
|
|
} |
|
|
|
if !utils.ValueIsEmpty(artId) { |
|
|
|
session = session.And("ArtId = ? ", artId) |
|
|
|
artIds := strings.Split(artId,",") |
|
|
|
if len(artIds) >0 { |
|
|
|
session = session.In("ArtId", artIds) |
|
|
|
} |
|
|
|
} |
|
|
|
if !utils.ValueIsEmpty(nowDate) { |
|
|
|
session = session.And("DemandDate >= ? ", nowDate) |
|
|
|