正在显示
4 个修改的文件
包含
13 行增加
和
8 行删除
@@ -7,6 +7,10 @@ import ( | @@ -7,6 +7,10 @@ import ( | ||
7 | 7 | ||
8 | type UpdateDictionaryCommand struct { | 8 | type UpdateDictionaryCommand struct { |
9 | //操作人 | 9 | //操作人 |
10 | - Operator domain.Operator `json:"-"` | ||
11 | - allied_creation_basic.ReqDictionaryUpdate | 10 | + Operator domain.Operator `json:"-"` |
11 | + DictionaryId int64 `json:"-"` // 字典编号 主键 | ||
12 | + DictCode string `json:"dictCode"` // 字典编码 | ||
13 | + DictName string `json:"dictName"` // 字典名称 | ||
14 | + Describe string `json:"describe"` // 备注信息 | ||
15 | + DictItems []allied_creation_basic.DictionaryItem `json:"dictItems"` // 字典值列表 | ||
12 | } | 16 | } |
@@ -27,10 +27,11 @@ func ToDividendsEstimateDividendItem(param *allied_creation_cooperation.DataDivi | @@ -27,10 +27,11 @@ func ToDividendsEstimateDividendItem(param *allied_creation_cooperation.DataDivi | ||
27 | CustomerName: v.CustomerName, | 27 | CustomerName: v.CustomerName, |
28 | DividendsIncentivesAmount: v.OrderAmount, | 28 | DividendsIncentivesAmount: v.OrderAmount, |
29 | OrderOrReturnedOrderNum: v.OrderNumber, | 29 | OrderOrReturnedOrderNum: v.OrderNumber, |
30 | - OrderTime: v.OrderDate.UnixNano() / 1e6, | ||
31 | - OriginalOrderNum: v.OriginalOrderNum, | ||
32 | - RegionName: v.RegionName, | 30 | + |
31 | + OriginalOrderNum: v.OriginalOrderNum, | ||
32 | + RegionName: v.RegionName, | ||
33 | } | 33 | } |
34 | + item.OrderTime = v.OrderDate.UnixNano() / 1e6 | ||
34 | listdata = append(listdata, item) | 35 | listdata = append(listdata, item) |
35 | } | 36 | } |
36 | 37 |
@@ -44,7 +44,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderAdd(param ReqDivid | @@ -44,7 +44,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsOrderAdd(param ReqDivid | ||
44 | 44 | ||
45 | // DividendsOrderUpdate 更新分红订单 | 45 | // DividendsOrderUpdate 更新分红订单 |
46 | func (gateway HttplibAlliedCreationCooperation) DividendsOrderUpdate(param ReqDividendsOrderUpdate) (*DataDividendsOrderUpdate, error) { | 46 | func (gateway HttplibAlliedCreationCooperation) DividendsOrderUpdate(param ReqDividendsOrderUpdate) (*DataDividendsOrderUpdate, error) { |
47 | - param.SalesmanUid = "1" //TODO 调试用删除 | 47 | + |
48 | url := gateway.baseUrL + "/dividends-orders/" + strconv.Itoa(param.DividendsOrderId) | 48 | url := gateway.baseUrL + "/dividends-orders/" + strconv.Itoa(param.DividendsOrderId) |
49 | method := "PUT" | 49 | method := "PUT" |
50 | req := gateway.CreateRequest(url, method) | 50 | req := gateway.CreateRequest(url, method) |
@@ -135,7 +135,7 @@ func (controller ExcelDataController) ImportDividendsOrder() { | @@ -135,7 +135,7 @@ func (controller ExcelDataController) ImportDividendsOrder() { | ||
135 | for _, v := range excelData { | 135 | for _, v := range excelData { |
136 | if allEmpty := controller.fieldValueAllEmpty(v); allEmpty { | 136 | if allEmpty := controller.fieldValueAllEmpty(v); allEmpty { |
137 | //以全字段空跳过 | 137 | //以全字段空跳过 |
138 | - continue | 138 | + break |
139 | } | 139 | } |
140 | //TODO 按需转化 | 140 | //TODO 按需转化 |
141 | item := allied_creation_cooperation.ImportDividendsOrderData{ | 141 | item := allied_creation_cooperation.ImportDividendsOrderData{ |
@@ -200,7 +200,7 @@ func (controller ExcelDataController) ImportDividendsReturnedOrder() { | @@ -200,7 +200,7 @@ func (controller ExcelDataController) ImportDividendsReturnedOrder() { | ||
200 | for _, v := range excelData { | 200 | for _, v := range excelData { |
201 | if allEmpty := controller.fieldValueAllEmpty(v); allEmpty { | 201 | if allEmpty := controller.fieldValueAllEmpty(v); allEmpty { |
202 | //以全字段空跳过 | 202 | //以全字段空跳过 |
203 | - continue | 203 | + break |
204 | } | 204 | } |
205 | //TODO 按需转化 | 205 | //TODO 按需转化 |
206 | item := allied_creation_cooperation.ImportDividendsReturnedOrderData{ | 206 | item := allied_creation_cooperation.ImportDividendsReturnedOrderData{ |
-
请 注册 或 登录 后发表评论