1997
|
func UpdateAutoReduceDetail(good_id int64, count int64, record_time int64, patient_id int64) (models.DialysisBeforePrepare, error) {
|
1997
|
func UpdateAutoReduceDetail(good_id int64, count int64, record_time int64, patient_id int64) (models.DialysisBeforePrepare, error) {
|
1999
|
- err := XTWriteDB().Model(&detail).Where("good_id = ? and status = 1 and record_date = ? and patient_id", good_id, record_time, patient_id).Updates(map[string]interface{}{"count": count}).Error
|
|
|
|
|
1999
|
+ err := XTWriteDB().Model(&detail).Where("good_id = ? and status = 1 and record_date = ? and patient_id = ?", good_id, record_time, patient_id).Updates(map[string]interface{}{"count": count}).Error
|