From 52f9908cf1f565da1d0068329c7218038dade6eb Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期一, 10 四月 2023 15:02:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TCarController.java | 61 ------------------------------ 1 files changed, 0 insertions(+), 61 deletions(-) diff --git a/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TCarController.java b/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TCarController.java index 5039c59..2f13bf5 100644 --- a/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TCarController.java +++ b/management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TCarController.java @@ -13,15 +13,12 @@ import com.stylefeng.guns.modular.system.dao.CarInsuranceMapper; import com.stylefeng.guns.modular.system.model.*; import com.stylefeng.guns.modular.system.service.*; -import com.stylefeng.guns.modular.system.util.PushMinistryOfTransportUtil; import com.stylefeng.guns.modular.system.util.ResultUtil; import org.apache.commons.lang.time.DateUtils; -import org.apache.poi.hdf.extractor.TC; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; -import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import org.springframework.ui.Model; @@ -79,14 +76,8 @@ @Autowired private ITServerCarmodelService itServerCarmodelService; - @Autowired - private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; - @Resource private CarInsuranceMapper carInsuranceMapper; - - @Value("${pushMinistryOfTransport}") - private boolean pushMinistryOfTransport; /** * 跳转到车辆管理首页 @@ -281,24 +272,8 @@ public ResultUtil saveCarInsurance(CarInsurance carInsurance){ if(carInsurance.getId() == null){ carInsuranceMapper.insert(carInsurance); - new Thread(new Runnable() { - @Override - public void run() { - if(pushMinistryOfTransport){//上传数据 - pushMinistryOfTransportUtil.baseInfoVehicleInsurance(carInsurance.getId(), 1); - } - } - }).start(); }else{ carInsuranceMapper.updateById(carInsurance); - new Thread(new Runnable() { - @Override - public void run() { - if(pushMinistryOfTransport){//上传数据 - pushMinistryOfTransportUtil.baseInfoVehicleInsurance(carInsurance.getId(), 2); - } - } - }).start(); } return ResultUtil.success(); @@ -349,14 +324,6 @@ @RequestMapping(value = "/delCarInsurance", method = RequestMethod.POST) public ResultUtil delCarInsurance(Integer id){ carInsuranceMapper.deleteById(id); - new Thread(new Runnable() { - @Override - public void run() { - if(pushMinistryOfTransport){//上传数据 - pushMinistryOfTransportUtil.baseInfoVehicleInsurance(id, 3); - } - } - }).start(); return ResultUtil.success(); } @@ -448,16 +415,6 @@ } tCarServiceService.insert(service); } - - new Thread(new Runnable() { - @Override - public void run() { - if(pushMinistryOfTransport){//上传数据 - pushMinistryOfTransportUtil.baseInfoCompanyStat(); - pushMinistryOfTransportUtil.baseInfoVehicle(tCar.getId()); - } - } - }).start(); return SUCCESS_TIP; } @@ -477,16 +434,6 @@ // obj.setCarId(null); tDriverService.updateById(obj); } - - new Thread(new Runnable() { - @Override - public void run() { - if(pushMinistryOfTransport){//上传数据 - pushMinistryOfTransportUtil.baseInfoCompanyStat(); - pushMinistryOfTransportUtil.baseInfoVehicle(tCar.getId()); - } - } - }).start(); return SUCCESS_TIP; } @@ -544,14 +491,6 @@ } tCarService.updateById(tCar); - new Thread(new Runnable() { - @Override - public void run() { - if(pushMinistryOfTransport){ - pushMinistryOfTransportUtil.baseInfoVehicle(tCar.getId()); - } - } - }).start(); return SUCCESS_TIP; } -- Gitblit v1.7.1