|
@@ -7,7 +7,6 @@ import (
|
|
|
"database/sql"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
- "github.com/zeromicro/go-zero/core/logx"
|
|
|
IC "jyBXCore/rpc/init"
|
|
|
"jyBXCore/rpc/model/es"
|
|
|
"jyBXCore/rpc/type/bxcore"
|
|
@@ -59,7 +58,7 @@ func TransferParticipateInfo(projectId string, in *bxcore.ParticipateActionReq)
|
|
|
)
|
|
|
partInfo := IC.BaseMysql.SelectBySqlByTx(tx, "SELECT id,position_id FROM "+ParticipateUserTable+" WHERE project_id = ? AND ent_id = ? AND state > -1", projectId, in.EntId)
|
|
|
if partInfo == nil || len(*partInfo) == 0 {
|
|
|
- logx.Info("当前项目不满足划转条件")
|
|
|
+ log.Println("当前项目不满足划转条件")
|
|
|
return false
|
|
|
} else {
|
|
|
for _, v := range *partInfo {
|
|
@@ -72,7 +71,7 @@ func TransferParticipateInfo(projectId string, in *bxcore.ParticipateActionReq)
|
|
|
}
|
|
|
}
|
|
|
if len(fromEntUserNames) == 0 {
|
|
|
- logx.Info("原参标人信息查询有误")
|
|
|
+ log.Println("原参标人信息查询有误")
|
|
|
return false
|
|
|
}
|
|
|
//是否保留原参标人
|
|
@@ -94,7 +93,7 @@ func TransferParticipateInfo(projectId string, in *bxcore.ParticipateActionReq)
|
|
|
for _, toEntUserId := range strings.Split(in.ToEntUserId, ",") {
|
|
|
toEntUserId = encrypt.SE.Decode4HexByCheck(toEntUserId)
|
|
|
if toEntUserId == "" {
|
|
|
- logx.Info("划转对象不能为空", in.ProjectIds, in.EntId)
|
|
|
+ log.Println("划转对象不能为空", in.ProjectIds, in.EntId)
|
|
|
continue
|
|
|
}
|
|
|
//查询划转人信息
|
|
@@ -152,10 +151,10 @@ func TransferParticipateInfo(projectId string, in *bxcore.ParticipateActionReq)
|
|
|
"record_content": fmt.Sprintf(content, strings.Join(fromEntUserNames, "、"), strings.Join(toEntUserNames, "、"), lastNotes),
|
|
|
"create_date": date.FormatDate(&now, date.Date_Full_Layout),
|
|
|
}) > 0
|
|
|
-
|
|
|
+ log.Println(b1, "--", b2, "--", b3)
|
|
|
return b1 && b2 && b3
|
|
|
}) {
|
|
|
- logx.Info(in.PositionId, "---终止---", projectId)
|
|
|
+ log.Println(in.PositionId, "---终止---", projectId)
|
|
|
return fmt.Errorf("终止参标更新信息出错")
|
|
|
}
|
|
|
return nil
|
|
@@ -199,7 +198,7 @@ func CancelParticipateInfo(in *bxcore.ParticipateActionReq, roleId int64) error
|
|
|
}) > 0
|
|
|
return b1 && b2
|
|
|
}) {
|
|
|
- logx.Info(in.PositionId, "---终止---", in.ProjectIds)
|
|
|
+ log.Println(in.PositionId, "---终止---", in.ProjectIds)
|
|
|
return fmt.Errorf("终止参标更新信息出错")
|
|
|
}
|
|
|
return nil
|
|
@@ -261,7 +260,7 @@ func SaveParticipateInfo(in *bxcore.ParticipateActionReq) error {
|
|
|
b3 = UpdateProjectInfo(in.ProjectIds, es.GetProjectInfo(in.ProjectIds)) == nil
|
|
|
return b1 && b2 && b3
|
|
|
}) {
|
|
|
- logx.Info(in.PositionId, "---保存---", in.ProjectIds)
|
|
|
+ log.Println(in.PositionId, "---保存---", in.ProjectIds)
|
|
|
return fmt.Errorf("保存参标信息出错")
|
|
|
}
|
|
|
return nil
|
|
@@ -381,22 +380,22 @@ func GetParticipateSetInfo(in *bxcore.ParticipateSetUpInfoReq) (*bxcore.Particip
|
|
|
if (*setInfo)["o_bidtype"] != nil {
|
|
|
if sbb, err := json.Marshal((*setInfo)["o_bidtype"]); err == nil {
|
|
|
if err := json.Unmarshal(sbb, &bidType); err != nil {
|
|
|
- logx.Info("bidType json un err:", err.Error())
|
|
|
+ log.Println("bidType json un err:", err.Error())
|
|
|
return nil, err
|
|
|
}
|
|
|
} else {
|
|
|
- logx.Info("bidType json err:", err.Error())
|
|
|
+ log.Println("bidType json err:", err.Error())
|
|
|
return nil, err
|
|
|
}
|
|
|
}
|
|
|
if (*setInfo)["o_remindrule"] != nil {
|
|
|
if sbr, err := json.Marshal((*setInfo)["o_remindrule"]); err == nil {
|
|
|
if err := json.Unmarshal(sbr, &remindRule); err != nil {
|
|
|
- logx.Info("remindRule json un err:", err.Error())
|
|
|
+ log.Println("remindRule json un err:", err.Error())
|
|
|
return nil, err
|
|
|
}
|
|
|
} else {
|
|
|
- logx.Info("remindRule json err:", err.Error())
|
|
|
+ log.Println("remindRule json err:", err.Error())
|
|
|
return nil, err
|
|
|
}
|
|
|
}
|
|
@@ -516,7 +515,7 @@ func ParticipateListSql(in *bxcore.ParticipateListReq) string {
|
|
|
startTimeInt, _ := strconv.ParseInt(startTime, 10, 64)
|
|
|
endTimeInt, _ := strconv.ParseInt(endTime, 10, 64)
|
|
|
if startTimeInt > 0 && endTimeInt > 0 && startTimeInt > endTimeInt {
|
|
|
- logx.Info(fmt.Sprintf("投标截止日期 %d 开始时间 大于 结束时间%d!!!", startTimeInt, endTimeInt))
|
|
|
+ log.Println(fmt.Sprintf("投标截止日期 %d 开始时间 大于 结束时间%d!!!", startTimeInt, endTimeInt))
|
|
|
} else {
|
|
|
switch in.BidEndStatus {
|
|
|
case 0:
|
|
@@ -623,7 +622,7 @@ func ParticipateListSql(in *bxcore.ParticipateListReq) string {
|
|
|
default:
|
|
|
conditionSql += ` ORDER BY pt.bid_end_time ASC,pt.bid_open_time ASC,pbr.create_date DESC`
|
|
|
}
|
|
|
- logx.Info(conditionSql)
|
|
|
+ log.Println(conditionSql)
|
|
|
return conditionSql
|
|
|
}
|
|
|
|