From d21ddeeb855f1a85dfed4e00d04d818aaf434da5 Mon Sep 17 00:00:00 2001 From: xiepeng Date: Thu, 14 Mar 2024 09:04:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=88=B7=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AssignedManageController.java | 1 + .../FreighttTrailerController.java | 28 ++ .../OperatingVehiclesController.java | 44 ++ .../scrapManage/ScrapManageController.java | 169 ++++++++ .../scrapManage/ScrapManageMapper.java | 35 ++ .../scrapManage/ScrapManageService.java | 35 ++ .../impl/ScrapManageServiceImpl.java | 46 ++ .../assignedManage/AssignedManageMapper.xml | 4 + .../OperatingVehiclesMapper.xml | 4 +- .../datasource/scrapManage/ScrapManage.xml | 403 ++++++++++++++++++ 10 files changed, 768 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/zcloud/controller/scrapManage/ScrapManageController.java create mode 100644 src/main/java/com/zcloud/mapper/datasource/scrapManage/ScrapManageMapper.java create mode 100644 src/main/java/com/zcloud/service/scrapManage/ScrapManageService.java create mode 100644 src/main/java/com/zcloud/service/scrapManage/impl/ScrapManageServiceImpl.java create mode 100644 src/main/resources/mybatis/datasource/scrapManage/ScrapManage.xml diff --git a/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java b/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java index 1c1b171..eee2aa5 100644 --- a/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java +++ b/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java @@ -118,6 +118,7 @@ public class AssignedManageController extends BaseController { String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); pd = assignedManageService.findById(pd); map.put("pd", pd); map.put("result", errInfo); diff --git a/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java b/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java index 57dc26f..697a843 100644 --- a/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java +++ b/src/main/java/com/zcloud/controller/freighttrailer/FreighttTrailerController.java @@ -5,6 +5,7 @@ import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.logs.LogAnno; import com.zcloud.service.freighttrailer.FreightTrailerService; +import com.zcloud.service.scrapManage.ScrapManageService; import com.zcloud.service.system.ImgFilesService; import com.zcloud.util.*; import org.springframework.beans.factory.annotation.Autowired; @@ -26,6 +27,9 @@ public class FreighttTrailerController extends BaseController { @Autowired private ImgFilesService imgfilesService; + @Autowired + private ScrapManageService scrapManageService; + /** * 新增 * @@ -69,6 +73,30 @@ public class FreighttTrailerController extends BaseController { String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + if(Tools.notEmpty(pd.getString("FREIGHTTRAILER_ID"))) { + PageData findPageData = freightTrailerService.findById(pd); + PageData scrapAddData = new PageData(); + scrapAddData.put("SCRAP_ID",this.get32UUID()); + scrapAddData.put("RECORD_NUMBER", findPageData.get("NUM")); + scrapAddData.put("FRAMES_NUMBER", findPageData.get("VIN")); + scrapAddData.put("PLATE_NUMBER", findPageData.get("PLATE_NUMBER")); + scrapAddData.put("SCRAP_VEHICLEMODEL", "货运挂车"); + scrapAddData.put("VEHICLEOWNER", findPageData.get("CAR_OWNERS")); + scrapAddData.put("CONTACT_NUMBER", findPageData.get("CONTACT_PHONE")); + scrapAddData.put("SCRAP_DATE", DateUtil.date2Str(new Date())); + scrapAddData.put("REGISTRANT", Jurisdiction.getUsername()); + scrapAddData.put("CREATTIME", DateUtil.date2Str(new Date())); + scrapAddData.put("OPERATTIME", DateUtil.date2Str(new Date())); + scrapAddData.put("VEHICLEOWNER_NUMBER", findPageData.get("CAR_OWNERS_TEL")); + scrapAddData.put("FIRSTSHOW_DATE", findPageData.get("INITIAL_REGISTRATION_DATE")); + scrapAddData.put("BRAND", findPageData.get("TRAILER_BRAND")); + scrapAddData.put("VEHICLE_MODEL", findPageData.get("TRAILER_MODEL")); + scrapAddData.put("TRANSACTION_DATE", DateUtil.date2Str(new Date())); + scrapAddData.put("CORPINFO_ID", findPageData.get("CORPINFO_ID")); + scrapAddData.put("SCRAP_VEHICLE", findPageData.get("PLATE_NUMBER")); + scrapAddData.put("ISDELETE", "0"); + scrapManageService.save(scrapAddData); + } pd.put("DELETEOR", Jurisdiction.getUSER_ID()); //删除人id pd.put("DELETEORNAME", Jurisdiction.getUsername()); //删除人 pd.put("DELETTIME", DateUtil.date2Str(new Date())); //删除时间 diff --git a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java index 7f4c4d1..f977103 100644 --- a/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java +++ b/src/main/java/com/zcloud/controller/operatingvehicles/OperatingVehiclesController.java @@ -5,6 +5,7 @@ import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.logs.LogAnno; import com.zcloud.service.operatingvehicles.OperatingVehiclesService; +import com.zcloud.service.scrapManage.ScrapManageService; import com.zcloud.util.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -28,6 +29,9 @@ public class OperatingVehiclesController extends BaseController { @Autowired private Smb smb; + @Autowired + private ScrapManageService scrapManageService; + /**新增 * @param * @throws Exception @@ -99,6 +103,31 @@ public class OperatingVehiclesController extends BaseController { String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + if(Tools.notEmpty(pd.getString("OPERATING_ID"))) { + PageData findPageData = operatingVehiclesService.findById(pd); + PageData scrapAddData = new PageData(); + scrapAddData.put("SCRAP_ID",this.get32UUID()); + scrapAddData.put("RECORD_NUMBER", findPageData.get("GOODSSELFNUMBER")); + scrapAddData.put("FRAMES_NUMBER", findPageData.get("FRAMES_NUMBER")); + scrapAddData.put("PLATE_NUMBER", findPageData.get("PLATE_NUMBER")); + scrapAddData.put("SCRAP_VEHICLEMODEL", "运输车辆"); + scrapAddData.put("VEHICLEOWNER", findPageData.get("VEHICLEOWNER")); + scrapAddData.put("CONTACT_NUMBER", findPageData.get("CONTACT_NUMBER")); + scrapAddData.put("SCRAP_DATE", DateUtil.date2Str(new Date())); + scrapAddData.put("REGISTRANT", Jurisdiction.getUsername()); + scrapAddData.put("CREATTIME", DateUtil.date2Str(new Date())); + scrapAddData.put("OPERATTIME", DateUtil.date2Str(new Date())); + scrapAddData.put("VEHICLEOWNER_NUMBER", findPageData.get("VEHICLEOWNER_NUMBER")); + scrapAddData.put("FIRSTSHOW_DATE", findPageData.get("FIRSTSHOW_DATE")); + scrapAddData.put("BRAND", findPageData.get("VEHICLE_BRAND")); + scrapAddData.put("VEHICLE_MODEL", findPageData.get("VEHICLE_MODEL")); + scrapAddData.put("TRANSACTION_DATE", DateUtil.date2Str(new Date())); + scrapAddData.put("CORPINFO_ID", findPageData.get("CORPINFO_ID")); + scrapAddData.put("SCRAP_VEHICLE", findPageData.get("PLATE_NUMBER")); + scrapAddData.put("ISDELETE", "0"); + scrapManageService.save(scrapAddData); + } pd.put("DELETOR", Jurisdiction.getUSER_ID()); pd.put("DELETORNAME", Jurisdiction.getUsername()); pd.put("DELETTIME", DateUtil.date2Str(new Date())); @@ -171,6 +200,7 @@ public class OperatingVehiclesController extends BaseController { String errInfo = "success"; PageData pd = new PageData(); pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); pd = operatingVehiclesService.findById(pd); map.put("pd", pd); map.put("result", errInfo); @@ -207,6 +237,20 @@ public class OperatingVehiclesController extends BaseController { return map; } + @RequestMapping(value = "/findById") + @ResponseBody + public Object findById() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID()); + pd = operatingVehiclesService.findById(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /*@RequestMapping(value = "/list") @ResponseBody public Object list(Page page) throws Exception { diff --git a/src/main/java/com/zcloud/controller/scrapManage/ScrapManageController.java b/src/main/java/com/zcloud/controller/scrapManage/ScrapManageController.java new file mode 100644 index 0000000..9ab9029 --- /dev/null +++ b/src/main/java/com/zcloud/controller/scrapManage/ScrapManageController.java @@ -0,0 +1,169 @@ +package com.zcloud.controller.scrapManage; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.logs.LogAnno; +import com.zcloud.service.assignedManage.AssignedManageService; +import com.zcloud.service.freighttrailer.FreightTrailerService; +import com.zcloud.service.operatingvehicles.OperatingVehiclesService; +import com.zcloud.service.scrapManage.ScrapManageService; +import com.zcloud.util.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.util.ObjectUtils; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.multipart.MultipartFile; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/scrapmanage") +public class ScrapManageController extends BaseController { + + @Autowired + private ScrapManageService scrapManageService; + + @Autowired + private FreightTrailerService freightTrailerService; + + @Autowired + private OperatingVehiclesService operatingVehiclesService; + + @Autowired + private Smb smb; + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("SCRAP_ID", this.get32UUID()); //车船税主键 + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + scrapManageService.save(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /**删除 + * @param + * @throws Exception + */ + @RequestMapping(value="/delete") + @ResponseBody + public Object delete() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DELETOR", Jurisdiction.getUSER_ID()); + pd.put("DELETORNAME", Jurisdiction.getUsername()); + pd.put("DELETTIME", DateUtil.date2Str(new Date())); + scrapManageService.delete(pd); + map.put("result", errInfo); //返回结果 + return map; + } + + /**修改 + * @param + * @throws Exception + */ + @RequestMapping(value="/edit") + @ResponseBody + public Object edit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除) + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id + pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id + pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间 + scrapManageService.edit(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + /**去修改页面获取数据 + * @param + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); + pd = scrapManageService.findById(pd); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value="/list") + @ResponseBody + public Object list(Page page) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = scrapManageService.list(page); //列出MajorDangerSource列表 + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value = "/freightVehicleList") + @ResponseBody + public Object freightVehicleList() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + String corpId = Jurisdiction.getCORPINFO_ID(); + List freightlist = freightTrailerService.trailerList(corpId); //货运挂车列表 + map.put("list", freightlist); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value = "/operationVehicleList") + @ResponseBody + public Object operationVehicleList() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + String corpId = Jurisdiction.getCORPINFO_ID(); + List freightlist = operatingVehiclesService.operationVehicleList(corpId); //货运挂车列表 + map.put("list", freightlist); + map.put("result", errInfo); + return map; + } + + +} diff --git a/src/main/java/com/zcloud/mapper/datasource/scrapManage/ScrapManageMapper.java b/src/main/java/com/zcloud/mapper/datasource/scrapManage/ScrapManageMapper.java new file mode 100644 index 0000000..994c29c --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/scrapManage/ScrapManageMapper.java @@ -0,0 +1,35 @@ +package com.zcloud.mapper.datasource.scrapManage; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface ScrapManageMapper{ + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); + + List datalistPage(Page page); +} diff --git a/src/main/java/com/zcloud/service/scrapManage/ScrapManageService.java b/src/main/java/com/zcloud/service/scrapManage/ScrapManageService.java new file mode 100644 index 0000000..983e940 --- /dev/null +++ b/src/main/java/com/zcloud/service/scrapManage/ScrapManageService.java @@ -0,0 +1,35 @@ +package com.zcloud.service.scrapManage; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface ScrapManageService { + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**删除 + * @param pd + * @throws Exception + */ + public void delete(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + public PageData findById(PageData pd)throws Exception; + + public List list(Page page); +} diff --git a/src/main/java/com/zcloud/service/scrapManage/impl/ScrapManageServiceImpl.java b/src/main/java/com/zcloud/service/scrapManage/impl/ScrapManageServiceImpl.java new file mode 100644 index 0000000..69e3d18 --- /dev/null +++ b/src/main/java/com/zcloud/service/scrapManage/impl/ScrapManageServiceImpl.java @@ -0,0 +1,46 @@ +package com.zcloud.service.scrapManage.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.assignedManage.AssignedManageMapper; +import com.zcloud.mapper.datasource.scrapManage.ScrapManageMapper; +import com.zcloud.service.assignedManage.AssignedManageService; +import com.zcloud.service.scrapManage.ScrapManageService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@Service +@Transactional //开启事物 +public class ScrapManageServiceImpl implements ScrapManageService { + + @Autowired + private ScrapManageMapper scrapManageMapper; + + @Override + public void save(PageData pd) throws Exception { + scrapManageMapper.save(pd); + } + + @Override + public void delete(PageData pd) throws Exception { + scrapManageMapper.delete(pd); + } + + @Override + public void edit(PageData pd) throws Exception { + scrapManageMapper.edit(pd); + } + + @Override + public PageData findById(PageData pd) throws Exception { + return scrapManageMapper.findById(pd); + } + + @Override + public List list(Page page) { + return scrapManageMapper.datalistPage(page); + } +} diff --git a/src/main/resources/mybatis/datasource/assignedManage/AssignedManageMapper.xml b/src/main/resources/mybatis/datasource/assignedManage/AssignedManageMapper.xml index bfab614..87535d1 100644 --- a/src/main/resources/mybatis/datasource/assignedManage/AssignedManageMapper.xml +++ b/src/main/resources/mybatis/datasource/assignedManage/AssignedManageMapper.xml @@ -242,6 +242,10 @@ f where f.ASSIGNED_ID = #{ASSIGNED_ID} + and + f.ISDELETE = '0' + and + f.CORPINFO_ID = #{CORPINFO_ID} diff --git a/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml b/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml index 6753c3f..b8c3e26 100644 --- a/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml +++ b/src/main/resources/mybatis/datasource/operatingvehicles/OperatingVehiclesMapper.xml @@ -277,7 +277,9 @@ from f where - f.OPERATING_ID = #{OPERATING_ID} + f.OPERATING_ID = #{OPERATING_ID} AND + f.ISDELETE = '0' AND + f.CORPINFO_ID = #{CORPINFO_ID} diff --git a/src/main/resources/mybatis/datasource/scrapManage/ScrapManage.xml b/src/main/resources/mybatis/datasource/scrapManage/ScrapManage.xml new file mode 100644 index 0000000..3547ae4 --- /dev/null +++ b/src/main/resources/mybatis/datasource/scrapManage/ScrapManage.xml @@ -0,0 +1,403 @@ + + + + + + + BUS_TRAFFIC_SCRAP_MANAGEMENT + + + + + SYS_DICTIONARIES + + + + + f.SCRAP_ID, + f.RECORD_NUMBER, + f.PLATE_NUMBER, + f.SCRAP_VEHICLEMODEL, + f.VEHICLEOWNER, + f.CONTACT_NUMBER, + f.SCRAP_DATE, + f.REGISTRANT, + f.CORPINFO_ID, + f.TRANSPORT_ENTERPRISES, + f.SCRAP_VEHICLE, + f.VEHICLEOWNER_NUMBER, + f.DRIVINGLICENSE_PHOTO, + f.FRAMES_NUMBER, + f.BRAND, + f.EMISSION_STANDARD, + f.POWER_TYPE, + f.FIRSTSHOW_DATE, + f.SCRAP_MATERIAL, + f.REMARK, + f.ENGINE_NUMBER, + f.VEHICLE_MODEL, + f.TRANSACTION_DATE, + f.ISDELETE, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.DELETOR, + f.DELETORNAME, + f.DELETTIME + + + + + SCRAP_ID, + RECORD_NUMBER, + PLATE_NUMBER, + SCRAP_VEHICLEMODEL, + VEHICLEOWNER, + CONTACT_NUMBER, + SCRAP_DATE, + REGISTRANT, + CORPINFO_ID, + TRANSPORT_ENTERPRISES, + SCRAP_VEHICLE, + VEHICLEOWNER_NUMBER, + DRIVINGLICENSE_PHOTO, + FRAMES_NUMBER, + BRAND, + EMISSION_STANDARD, + POWER_TYPE, + FIRSTSHOW_DATE, + SCRAP_MATERIAL, + REMARK, + ENGINE_NUMBER, + VEHICLE_MODEL, + TRANSACTION_DATE, + ISDELETE, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + DELETOR, + DELETORNAME, + DELETTIME + + + + + #{SCRAP_ID}, + #{RECORD_NUMBER}, + #{PLATE_NUMBER}, + #{SCRAP_VEHICLEMODEL}, + #{VEHICLEOWNER}, + #{CONTACT_NUMBER}, + #{SCRAP_DATE}, + #{REGISTRANT}, + #{CORPINFO_ID}, + #{TRANSPORT_ENTERPRISES}, + #{SCRAP_VEHICLE}, + #{VEHICLEOWNER_NUMBER}, + #{DRIVINGLICENSE_PHOTO}, + #{FRAMES_NUMBER}, + #{BRAND}, + #{EMISSION_STANDARD}, + #{POWER_TYPE}, + #{FIRSTSHOW_DATE}, + #{SCRAP_MATERIAL}, + #{REMARK}, + #{ENGINE_NUMBER}, + #{VEHICLE_MODEL}, + #{TRANSACTION_DAT}, + #{ISDELETE}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + + update + + set + ISDELETE = '1' + where + SCRAP_ID = #{SCRAP_ID} + + + + + update + + set + SCRAP_ID = #{SCRAP_ID}, + RECORD_NUMBER = #{RECORD_NUMBER}, + PLATE_NUMBER = #{PLATE_NUMBER}, + SCRAP_VEHICLEMODEL = #{SCRAP_VEHICLEMODEL}, + VEHICLEOWNER = #{VEHICLEOWNER}, + CONTACT_NUMBER = #{CONTACT_NUMBER}, + SCRAP_DATE = #{SCRAP_DATE}, + REGISTRANT = #{REGISTRANT}, + CORPINFO_ID = #{CORPINFO_ID}, + TRANSPORT_ENTERPRISES = #{TRANSPORT_ENTERPRISES}, + SCRAP_VEHICLE = #{SCRAP_VEHICLE}, + VEHICLEOWNER_NUMBER = #{VEHICLEOWNER_NUMBER}, + DRIVINGLICENSE_PHOTO = #{DRIVINGLICENSE_PHOTO}, + FRAMES_NUMBER = #{FRAMES_NUMBER}, + BRAND = #{BRAND}, + EMISSION_STANDARD = #{EMISSION_STANDARD}, + POWER_TYPE = #{POWER_TYPE}, + FIRSTSHOW_DATE = #{FIRSTSHOW_DATE}, + SCRAP_MATERIAL = #{SCRAP_MATERIAL}, + REMARK = #{REMARK}, + ENGINE_NUMBER = #{ENGINE_NUMBER}, + VEHICLE_MODEL = #{VEHICLE_MODEL}, + TRANSACTION_DATE = #{TRANSACTION_DATE}, + ISDELETE = #{ISDELETE}, + CREATOR = #{CREATOR}, + CREATORNAME = #{CREATORNAME}, + CREATTIME = #{CREATTIME}, + OPERATOR = #{OPERATOR}, + OPERATORNAME = #{OPERATORNAME}, + OPERATTIME = #{OPERATTIME}, + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETTIME =#{DELETTIME}, + where + SCRAP_ID = #{SCRAP_ID} + + + + + + + + + + + + + + +