|
|
@@ -86,9 +86,9 @@ func GetErmcpGoodses(lastUpdateTime string) ([]ErmcpGoods, error) {
|
|
|
|
|
|
// 对比数据库与终端的更新时间戳
|
|
|
if len(lastUpdateTime) > 0 {
|
|
|
- ermcpGoods := make([]ErmcpGoods, 0)
|
|
|
- engine.Table("GOODS G").Where(fmt.Sprintf("G.MODIFYTIME > to_date('%s','yyyy-MM-dd hh24:mi:ss')", lastUpdateTime)).Find(&ermcpGoods)
|
|
|
- if len(ermcpGoods) == 0 {
|
|
|
+ goods := make([]Goods, 0)
|
|
|
+ engine.Table("GOODS G").Where(fmt.Sprintf("G.MODIFYTIME > to_date('%s','yyyy-MM-dd hh24:mi:ss')", lastUpdateTime)).Find(&goods)
|
|
|
+ if len(goods) == 0 {
|
|
|
return make([]ErmcpGoods, 0), nil
|
|
|
}
|
|
|
}
|