作者 tangxuhui

数据结构调整

... ... @@ -7,6 +7,10 @@ import (
type UpdateDictionaryCommand struct {
//操作人
Operator domain.Operator `json:"-"`
allied_creation_basic.ReqDictionaryUpdate
Operator domain.Operator `json:"-"`
DictionaryId int64 `json:"-"` // 字典编号 主键
DictCode string `json:"dictCode"` // 字典编码
DictName string `json:"dictName"` // 字典名称
Describe string `json:"describe"` // 备注信息
DictItems []allied_creation_basic.DictionaryItem `json:"dictItems"` // 字典值列表
}
... ...
... ... @@ -27,10 +27,11 @@ func ToDividendsEstimateDividendItem(param *allied_creation_cooperation.DataDivi
CustomerName: v.CustomerName,
DividendsIncentivesAmount: v.OrderAmount,
OrderOrReturnedOrderNum: v.OrderNumber,
OrderTime: v.OrderDate.UnixNano() / 1e6,
OriginalOrderNum: v.OriginalOrderNum,
RegionName: v.RegionName,
OriginalOrderNum: v.OriginalOrderNum,
RegionName: v.RegionName,
}
item.OrderTime = v.OrderDate.UnixNano() / 1e6
listdata = append(listdata, item)
}
... ...
... ... @@ -44,7 +44,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderAdd(param ReqDivid
// DividendsOrderUpdate 更新分红订单
func (gateway HttplibAlliedCreationCooperation) DividendsOrderUpdate(param ReqDividendsOrderUpdate) (*DataDividendsOrderUpdate, error) {
param.SalesmanUid = "1" //TODO 调试用删除
url := gateway.baseUrL + "/dividends-orders/" + strconv.Itoa(param.DividendsOrderId)
method := "PUT"
req := gateway.CreateRequest(url, method)
... ...
... ... @@ -135,7 +135,7 @@ func (controller ExcelDataController) ImportDividendsOrder() {
for _, v := range excelData {
if allEmpty := controller.fieldValueAllEmpty(v); allEmpty {
//以全字段空跳过
continue
break
}
//TODO 按需转化
item := allied_creation_cooperation.ImportDividendsOrderData{
... ... @@ -200,7 +200,7 @@ func (controller ExcelDataController) ImportDividendsReturnedOrder() {
for _, v := range excelData {
if allEmpty := controller.fieldValueAllEmpty(v); allEmpty {
//以全字段空跳过
continue
break
}
//TODO 按需转化
item := allied_creation_cooperation.ImportDividendsReturnedOrderData{
... ...