|
|
@ -106,7 +106,7 @@ func (impl *ReclinerReclstDAOImplement) SelectOne(recNr int) (*model.ReclinerRec |
|
|
|
******************************************************************************/ |
|
|
|
func (impl *ReclinerReclstDAOImplement) SelectSeriOne(orderId string) (*model.ReclinerReclst, error) { |
|
|
|
var data model.ReclinerReclst |
|
|
|
ok, err := impl.session.Table(impl.meta.TableName).Where("PlantNr = ? and SerialOrderId = ? and RecType = ?",impl.plantNr, orderId,model.QM_SERI_TYPE).Get(&data) |
|
|
|
ok, err := impl.session.Table(impl.meta.TableName).Where("PlantNr = ? and SerialOrderId = ? and RecType = ?", impl.plantNr, orderId, model.QM_SERI_TYPE).Get(&data) |
|
|
|
if err != nil { |
|
|
|
return nil, grmi.NewDataBaseError(err) |
|
|
|
} |
|
|
@ -319,7 +319,6 @@ func (impl *ReclinerReclstDAOImplement) UpdateWhere(predicates []grmi.Predicate, |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************** |
|
|
|
* |
|
|
|
* @Reference LAPP_GAAS_GFrame_BACKEND/dao/log/PackOrderDAO.SelectUnPrint |
|
|
@ -327,7 +326,7 @@ func (impl *ReclinerReclstDAOImplement) UpdateWhere(predicates []grmi.Predicate, |
|
|
|
******************************************************************************/ |
|
|
|
func (impl *ReclinerReclstDAOImplement) SelectUnPrint(num int) ([]model.ReclinerReclst, error) { |
|
|
|
|
|
|
|
session := impl.session.Table(impl.meta.TableName).Where("PlantNr = ? and Status = ?", impl.plantNr, 0, common.UN_PRINT).Asc("RecNr") |
|
|
|
session := impl.session.Table(impl.meta.TableName).Where("PlantNr = ? and Status = ?", impl.plantNr, common.UN_PRINT).Asc("RecNr") |
|
|
|
|
|
|
|
data := make([]model.ReclinerReclst, 0) |
|
|
|
err := session.Limit(num).Find(&data) |
|
|
@ -351,4 +350,4 @@ func (impl *ReclinerReclstDAOImplement) UpdateUnPrint(recIds []int) error { |
|
|
|
return grmi.NewDataBaseError(err) |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |