|
|
@@ -254,8 +254,7 @@ func (s DeliverOrderProgressService) Start(ctx context.Context, req *work.Delive
|
|
|
}, "id = ?", req.Id)
|
|
|
} else {
|
|
|
_, err = tx.Update("deliver_order_imp_progress", map[string]interface{}{
|
|
|
- "progress_status": "20",
|
|
|
- "deliver_status": "15",
|
|
|
+ "progress_status": "15",
|
|
|
"expect_install_time": req.ExpectInstallTime,
|
|
|
"remark": req.Remark,
|
|
|
}, "id = ?", req.Id)
|
|
|
@@ -288,7 +287,7 @@ func (s DeliverOrderProgressService) ConfirmInstallInfo(ctx context.Context, req
|
|
|
|
|
|
txerr := s.Dao.DB.Transaction(ctx, func(ctx context.Context, tx *gdb.TX) error {
|
|
|
_, err = tx.Update("deliver_order_imp_progress", map[string]interface{}{
|
|
|
- "deliver_status": "20",
|
|
|
+ "progress_status": "20",
|
|
|
"rea_start_date": gtime.Now(),
|
|
|
"install_begin_time": req.InstallBeginTime,
|
|
|
"install_end_time": req.InstallBeginTime,
|
|
|
@@ -707,11 +706,11 @@ func (s DeliverOrderProgressService) AuditInstall(ctx context.Context, req *work
|
|
|
|
|
|
txerr := s.Dao.DB.Transaction(ctx, func(ctx context.Context, tx *gdb.TX) error {
|
|
|
_, err = tx.Update("deliver_order_imp_progress", map[string]interface{}{
|
|
|
- "deliver_status": "70", // 发货状态(10未开始、15待确认、20进行中、30已发货、40产品已验收、50确认已到货、60安装完成、70安装审批通过)
|
|
|
- "audit_user_id": s.userInfo.Id,
|
|
|
- "audit_user": s.userInfo.NickName,
|
|
|
- "audit_time": gtime.Now(),
|
|
|
- "audit_desc": req.Remark,
|
|
|
+ "progress_status": "40", // 状态(10未开始、15待确认、20进行中、30已完成、40安装审批通过)
|
|
|
+ "audit_user_id": s.userInfo.Id,
|
|
|
+ "audit_user": s.userInfo.NickName,
|
|
|
+ "audit_time": gtime.Now(),
|
|
|
+ "audit_desc": req.Remark,
|
|
|
}, "id = ?", req.Id)
|
|
|
if err != nil {
|
|
|
return err
|