aa
This commit is contained in:
@@ -4901,8 +4901,14 @@ func AuditStoreMap(ctx *jxcontext.Context, ID int, vendorOrgCode, vendorStoreID
|
||||
if vendorStoreID == "" {
|
||||
return fmt.Errorf("请输入绑定的平台门店ID!")
|
||||
}
|
||||
storeMap := &model.StoreMap{}
|
||||
AddStoreVendorMap(ctx, db, storeMapAudit.VendorID, vendorOrgCode, storeMapAudit.StoreID, storeMap)
|
||||
storeMap := &model.StoreMap{
|
||||
VendorStoreID: vendorStoreID,
|
||||
IsSync: 0,
|
||||
AutoPickup: 1,
|
||||
DeliveryCompetition: 1,
|
||||
PricePercentage: 100,
|
||||
}
|
||||
_, err = AddStoreVendorMap(ctx, db, storeMapAudit.VendorID, vendorOrgCode, storeMapAudit.StoreID, storeMap)
|
||||
} else {
|
||||
if comment == "" {
|
||||
fmt.Errorf("审核不通过请输入原因!")
|
||||
@@ -4914,3 +4920,7 @@ func AuditStoreMap(ctx *jxcontext.Context, ID int, vendorOrgCode, vendorStoreID
|
||||
dao.UpdateEntity(db, storeMapAudit, "AuditStatus", "AuditAt", "AuditOperator")
|
||||
return err
|
||||
}
|
||||
|
||||
func GetStoreMapAudit(ctx *jxcontext.Context, storeIDs, vendorIDs, auditStatuss []int, fromTime, toTime string, offset, pageSize int) (page *model.PagedInfo, err error) {
|
||||
return dao.GetStoreMapAudit(dao.GetDB(), storeIDs, vendorIDs, auditStatuss, utils.Str2Time(fromTime), utils.Str2Time(toTime), offset, pageSize)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user