|
@@ -386,10 +386,10 @@ func (mae *MarketAnalysisEntity) SaveAnalysisRecord() error {
|
|
"s_matchingMode": mae.BaseParam.MatchingMode,
|
|
"s_matchingMode": mae.BaseParam.MatchingMode,
|
|
"s_userId": mae.UId,
|
|
"s_userId": mae.UId,
|
|
"s_parentId": mae.Pid,
|
|
"s_parentId": mae.Pid,
|
|
- "i_state": 1, //状态:默认0:生成中;1:已生成;2:已取消;-1:生成失败
|
|
|
|
- "l_updateTime": time.Now().Unix(), //生成时间 or 取消时间
|
|
|
|
|
|
+ "i_state": qutil.If(mae.Source == "analysisPDF", 1, mae.State), //状态:默认0:生成中;1:已生成;2:已取消;-1:生成失败
|
|
|
|
+ "l_updateTime": time.Now().Unix(), //生成时间 or 取消时间
|
|
"l_createTime": time.Now().Unix(),
|
|
"l_createTime": time.Now().Unix(),
|
|
- "i_offline": 2,
|
|
|
|
|
|
+ "i_offline": qutil.If(mae.Source == "analysisPDF", 2, mae.Offline),
|
|
"s_mgoUserId": mae.MgoUserId,
|
|
"s_mgoUserId": mae.MgoUserId,
|
|
"i_positionId": mae.PositionId,
|
|
"i_positionId": mae.PositionId,
|
|
"s_phone": mae.Phone,
|
|
"s_phone": mae.Phone,
|