Merge branch 'dev' of http://gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway into dev
正在显示
5 个修改的文件
包含
12 行增加
和
7 行删除
@@ -8,5 +8,9 @@ import ( | @@ -8,5 +8,9 @@ import ( | ||
8 | type UpdateDictionaryCommand struct { | 8 | type UpdateDictionaryCommand struct { |
9 | //操作人 | 9 | //操作人 |
10 | Operator domain.Operator `json:"-"` | 10 | Operator domain.Operator `json:"-"` |
11 | - allied_creation_basic.ReqDictionaryUpdate | 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, | 30 | + |
31 | OriginalOrderNum: v.OriginalOrderNum, | 31 | OriginalOrderNum: v.OriginalOrderNum, |
32 | RegionName: v.RegionName, | 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) |
@@ -31,7 +31,7 @@ func (controller *DictionaryController) UpdateDictionary() { | @@ -31,7 +31,7 @@ func (controller *DictionaryController) UpdateDictionary() { | ||
31 | if err != nil { | 31 | if err != nil { |
32 | log.Logger.Debug("json err:" + err.Error()) | 32 | log.Logger.Debug("json err:" + err.Error()) |
33 | } | 33 | } |
34 | - dictionaryId, _ := controller.GetInt64("::dictionaryId") | 34 | + dictionaryId, _ := controller.GetInt64(":dictionaryId") |
35 | updateCommand.Operator = controller.GetOperator() | 35 | updateCommand.Operator = controller.GetOperator() |
36 | updateCommand.DictionaryId = dictionaryId | 36 | updateCommand.DictionaryId = dictionaryId |
37 | data, err := dictionaryService.UpdateDictionay(updateCommand) | 37 | data, err := dictionaryService.UpdateDictionay(updateCommand) |
@@ -54,7 +54,7 @@ func (controller *DictionaryController) GetDictionary() { | @@ -54,7 +54,7 @@ func (controller *DictionaryController) GetDictionary() { | ||
54 | dictionaryService := service.NewDictionayService(nil) | 54 | dictionaryService := service.NewDictionayService(nil) |
55 | getQuery := &query.GetDictionaryQuery{} | 55 | getQuery := &query.GetDictionaryQuery{} |
56 | 56 | ||
57 | - dictionaryId, _ := controller.GetInt64("::dictionaryId") | 57 | + dictionaryId, _ := controller.GetInt64(":dictionaryId") |
58 | getQuery.DictionaryId = int(dictionaryId) | 58 | getQuery.DictionaryId = int(dictionaryId) |
59 | getQuery.Operator = controller.GetOperator() | 59 | getQuery.Operator = controller.GetOperator() |
60 | data, err := dictionaryService.GetDictionay(getQuery) | 60 | data, err := dictionaryService.GetDictionay(getQuery) |
@@ -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{ |
-
请 注册 或 登录 后发表评论