|
@@ -188,7 +188,7 @@ func (p *ParStage) UpdateStage() {
|
|
updateSelectSlq = fmt.Sprintf("%s%s", updateSelectSlq, add)
|
|
updateSelectSlq = fmt.Sprintf("%s%s", updateSelectSlq, add)
|
|
}
|
|
}
|
|
if s := IC.BaseMysql.SelectBySql(updateSelectSlq, p.EntId, p.ProjectId); len(*s) > 0 {
|
|
if s := IC.BaseMysql.SelectBySql(updateSelectSlq, p.EntId, p.ProjectId); len(*s) > 0 {
|
|
- updateInsertMap["update_date"] = date.FormatDateByInt64(&lastDate, date.Date_Short_Layout)
|
|
|
|
|
|
+ updateInsertMap["update_date"] = date.FormatDateByInt64(&lastDate, date.Date_Full_Layout)
|
|
if ok := IC.BaseMysql.Update(ParticipateStage, map[string]interface{}{
|
|
if ok := IC.BaseMysql.Update(ParticipateStage, map[string]interface{}{
|
|
"id": gconv.Int64((*s)[0]["id"]),
|
|
"id": gconv.Int64((*s)[0]["id"]),
|
|
}, updateInsertMap); !ok {
|
|
}, updateInsertMap); !ok {
|
|
@@ -196,7 +196,7 @@ func (p *ParStage) UpdateStage() {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
updateInsertMap["create_date"] = date.FormatDate(&now, date.Date_Full_Layout)
|
|
updateInsertMap["create_date"] = date.FormatDate(&now, date.Date_Full_Layout)
|
|
- updateInsertMap["update_date"] = date.FormatDateByInt64(&lastDate, date.Date_Short_Layout)
|
|
|
|
|
|
+ updateInsertMap["update_date"] = date.FormatDateByInt64(&lastDate, date.Date_Full_Layout)
|
|
if i := IC.BaseMysql.Insert(ParticipateStage, updateInsertMap); i == 0 {
|
|
if i := IC.BaseMysql.Insert(ParticipateStage, updateInsertMap); i == 0 {
|
|
log.Println("参标操作记录 插入异常:", updateInsertMap)
|
|
log.Println("参标操作记录 插入异常:", updateInsertMap)
|
|
}
|
|
}
|