|
@@ -1,11 +1,12 @@
|
|
package service
|
|
package service
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "strings"
|
|
|
|
+ "time"
|
|
|
|
+
|
|
"app.yhyue.com/moapp/jyResourcesCenter/entity"
|
|
"app.yhyue.com/moapp/jyResourcesCenter/entity"
|
|
"app.yhyue.com/moapp/jyResourcesCenter/rpc/resourcesCenter"
|
|
"app.yhyue.com/moapp/jyResourcesCenter/rpc/resourcesCenter"
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
- "strings"
|
|
|
|
- "time"
|
|
|
|
)
|
|
)
|
|
|
|
|
|
// @Author jianghan
|
|
// @Author jianghan
|
|
@@ -197,6 +198,10 @@ func entCharge(data *resourcesCenter.ChargeReq) (resp *resourcesCenter.ChargeRes
|
|
UserId: data.UserId,
|
|
UserId: data.UserId,
|
|
AccountType: 1,
|
|
AccountType: 1,
|
|
EntId: data.EntId,
|
|
EntId: data.EntId,
|
|
|
|
+ EntUserId: data.EntUserId,
|
|
|
|
+ }
|
|
|
|
+ if data.EntUserId > 0 {
|
|
|
|
+ jyOrm.Table("entniche_user").Select("CONCAT(NAME,'(',phone,')')").Where("id=?", data.EntUserId).Get(&detailed.Operator)
|
|
}
|
|
}
|
|
updateNum, err = souceOrm.Table(ConsumeRecord).Insert(&detailed)
|
|
updateNum, err = souceOrm.Table(ConsumeRecord).Insert(&detailed)
|
|
if err != nil || updateNum <= 0 {
|
|
if err != nil || updateNum <= 0 {
|