...
|
...
|
@@ -19,7 +19,7 @@ type DividendsReturnedOrderService struct { |
|
|
func (dividendsReturnedOrderService *DividendsReturnedOrderService) CreateDividendsReturnedOrder(createDividendsReturnedOrderCommand *command.CreateDividendsReturnedOrderCommand) (interface{}, error) {
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createDividendsReturnedOrderCommand.Operator)
|
|
|
dividendsReturnedDate := time.Unix(createDividendsReturnedOrderCommand.DividendsReturnedDate/1e3, 0)
|
|
|
orderDate := time.Unix(createDividendsReturnedOrderCommand.OrderDate/1e3, 0)
|
|
|
orderDate := time.Unix(createDividendsReturnedOrderCommand.OrderTime/1e3, 0)
|
|
|
var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood
|
|
|
for _, v := range createDividendsReturnedOrderCommand.OrderGoods {
|
|
|
good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{
|
...
|
...
|
@@ -38,7 +38,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) CreateDivide |
|
|
OriginalOrderNum: createDividendsReturnedOrderCommand.OriginalOrderNum,
|
|
|
OrderGoods: orderGooods,
|
|
|
DividendsReturnedDate: dividendsReturnedDate,
|
|
|
OrderData: orderDate,
|
|
|
OrderTime: orderDate,
|
|
|
OrgId: int(createDividendsReturnedOrderCommand.Operator.OrgId),
|
|
|
Remarks: createDividendsReturnedOrderCommand.Remarks,
|
|
|
RegionName: createDividendsReturnedOrderCommand.RegionName,
|
...
|
...
|
@@ -97,7 +97,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SearchDivide |
|
|
func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDividendsReturnedOrder(updateDividendsReturnedOrderCommand *command.UpdateDividendsReturnedOrderCommand) (interface{}, error) {
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(updateDividendsReturnedOrderCommand.Operator)
|
|
|
dividendsReturnedDate := time.Unix(updateDividendsReturnedOrderCommand.DividendsReturnedDate/1e3, 0)
|
|
|
orderDate := time.Unix(updateDividendsReturnedOrderCommand.OrderDate/1e3, 0)
|
|
|
orderDate := time.Unix(updateDividendsReturnedOrderCommand.OrderTime/1e3, 0)
|
|
|
var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood
|
|
|
for _, v := range updateDividendsReturnedOrderCommand.OrderGoods {
|
|
|
good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{
|
...
|
...
|
@@ -117,7 +117,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide |
|
|
OriginalOrderNum: updateDividendsReturnedOrderCommand.OriginalOrderNum,
|
|
|
OrderGoods: orderGooods,
|
|
|
DividendsReturnedDate: dividendsReturnedDate,
|
|
|
OrderData: orderDate,
|
|
|
OrderTime: orderDate,
|
|
|
OrgId: int(updateDividendsReturnedOrderCommand.Operator.OrgId),
|
|
|
Remarks: updateDividendsReturnedOrderCommand.Remarks,
|
|
|
RegionName: updateDividendsReturnedOrderCommand.RegionName,
|
...
|
...
|
|