Преглед изворни кода

添加子订单表新操作人和新操作人字段,转发和收回都更新这两字段

hxl13994548489 пре 2 година
родитељ
комит
52afc6e6e7

+ 4 - 1
sql/Online.sql

@@ -75,7 +75,7 @@ CREATE TABLE `sys_user_link_pl_agreement`  (
 
 --  add by hxl   2024-04-18 添加子订单表操作人和操作时间和操作人名称
 ALTER TABLE ins_area_company ADD COLUMN operator_id VARCHAR(30) COMMENT '操作人';
-ALTER TABLE ins_area_company ADD COLUMN operator_name VARCHAR(30) COMMENT '操作人名称';
+ALTER TABLE ins_area_company ADD COLUMN operator_name VARCHAR(100) COMMENT '操作人名称';
 ALTER TABLE ins_area_company ADD COLUMN operator_time datetime COMMENT '操作时间';
 
 --  add  by  hxl  2024-04-18 添加子订单转发收回记录表
@@ -110,3 +110,6 @@ ALTER TABLE ptl_agreement ADD COLUMN products_code VARCHAR(30) COMMENT '产品
 -- add by hxl  2024-04-19  添加后线人员协议配置菜单
 INSERT INTO `sys_menu` (`name`, `parent_id`, `url`, `perms`, `type`, `icon`, `order_num`, `create_by`, `create_time`, `last_update_by`, `last_update_time`, `del_flag`) VALUES ('后线人员协议配置', '232', '/agreementManage/carInsurance/backlineAllocation', NULL, 1, NULL, 0, NULL, NULL, NULL, NULL, 0);
 
+--  add by hxl   2024-04-18 添加子订单表新操作人和新操作人名称
+ALTER TABLE ins_area_company ADD COLUMN new_operator_id VARCHAR(30) COMMENT '新操作人';
+ALTER TABLE ins_area_company ADD COLUMN new_operator_name VARCHAR(100) COMMENT '新操作人名称';

+ 6 - 6
src/main/java/com/ydtech/modules/order/service/impl/OrderTaskPoolsServiceImpl.java

@@ -184,7 +184,7 @@ public class OrderTaskPoolsServiceImpl extends BaseController implements OrderTa
         insAreaCompany.setNewOperatorId(taskForwardingVo.getAuditId());
         insAreaCompany.setNewOperatorName(sysUserNew.getName());
         insAreaCompanyService.updateById(insAreaCompany);
-        return HttpResult.ok("保存成功");
+        return HttpResult.ok("转发成功");
     }
     /**
      *  @version
@@ -217,12 +217,12 @@ public class OrderTaskPoolsServiceImpl extends BaseController implements OrderTa
         //插入轨迹表
         InsOrderSetUserHis  his=new InsOrderSetUserHis(insOrders.getOrderno(), insOrders.getQuoteno(), one.getNewOperatorId(), one.getOldOperatorId(), new Date(), sysUser.getId(),taskForwardingVo.getSubOrderId(),one.getOldOperatorName()+"回收"+one.getNewOperatorName()+"任务",one.getOldOperatorName(),one.getNewOperatorName());
         insOrderSetUserHisService.addOrUpdate(his);
-        insAreaCompany.setOperatorId(null);
+        insAreaCompany.setOperatorId("");
         insAreaCompany.setOperatorTime(new Date());
-        insAreaCompany.setOperatorName(null);
-        insAreaCompany.setNewOperatorId(null);
-        insAreaCompany.setNewOperatorName(null);
+        insAreaCompany.setOperatorName("");
+        insAreaCompany.setNewOperatorId("");
+        insAreaCompany.setNewOperatorName("");
         insAreaCompanyService.updateById(insAreaCompany);
-        return HttpResult.ok("保存成功");
+        return HttpResult.ok("收回成功");
     }
 }