|
@@ -307,7 +307,9 @@ func UpdateParticipateSetInfo(in *bxcore.ParticipateSetUpInfoReq) error {
|
|
|
"i_positionid": in.PositionId,
|
|
|
}
|
|
|
if in.PositionType > 0 {
|
|
|
- query["i_entid"] = in.EntId
|
|
|
+ query = map[string]interface{}{
|
|
|
+ "i_entid": in.EntId,
|
|
|
+ }
|
|
|
}
|
|
|
upsert := map[string]interface{}{
|
|
|
"i_entid": in.EntId,
|
|
@@ -354,7 +356,9 @@ func GetParticipateSetInfo(in *bxcore.ParticipateSetUpInfoReq) (*bxcore.Particip
|
|
|
"i_positionid": in.PositionId,
|
|
|
}
|
|
|
if in.PositionType > 0 {
|
|
|
- query["i_entid"] = in.EntId
|
|
|
+ query = map[string]interface{}{
|
|
|
+ "i_entid": in.EntId,
|
|
|
+ }
|
|
|
}
|
|
|
if setInfo, ok := IC.Mgo.FindOne(PartTable, query); ok {
|
|
|
var (
|