Compare commits

..

No commits in common. "2756006a7ffd27b65aa116537c5d0a904bf4ede1" and "7ea566bd9b81cf186348590c3a42b96e5e39402a" have entirely different histories.

4 changed files with 763 additions and 778 deletions

View File

@ -218,11 +218,8 @@ func CreateBundleBalance(data model.BundleBalance) error {
return app.ModuleClients.BundleDB.Create(&data).Error
}
func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLogPo, total int64, err error) {
session := app.ModuleClients.BundleDB.
Table("cast_cost_log ccl").
Select("ccl.*,cwl.cost_type").
Joins("left join cast_work_log cwl on cwl.work_uuid = ccl.work_uuid")
func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLog, total int64, err error) {
session := app.ModuleClients.BundleDB.Model(&model.CostLog{})
if req.WorkTitle != "" {
session = session.Where("work_title like ?", "%"+req.WorkTitle+"%")
}

View File

@ -46,7 +46,6 @@ func (m *CastWorkExtra) TableName() string {
type CostLogPo struct {
CostLog
ArtistConfirmedTime int64 `gorm:"column:artist_confirmed_time;type:bigint(20);default:0;comment:艺人确认时间;NOT NULL" json:"artist_confirmed_time"`
CostType int `gorm:"column:cost_type;type:int(11)" json:"costType"`
}
type CastWorkImage struct {

View File

@ -786,7 +786,6 @@ message WorkCastItem{
string operatorPhone = 14; //
uint32 status = 15; // 1 2
string artistConfirmedTime = 16; //
uint32 costType = 17;
}
message GetImageWorkDetailReq {

File diff suppressed because it is too large Load Diff