diff --git a/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingItemController.java b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingItemController.java new file mode 100644 index 0000000..bd84392 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingItemController.java @@ -0,0 +1,180 @@ +package com.zcloud.controller.comprehensive; + +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.comprehensive.TrafficDrivingItemService; +import com.zcloud.service.comprehensive.TrafficDrivingSignService; +import com.zcloud.service.comprehensive.TrafficSecurityWaybillRegistrationService; +import com.zcloud.util.Const; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +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 org.springframework.web.multipart.MultipartRequest; + +import java.util.*; + +@Controller +@RequestMapping("/app/drivingitem") +public class AppTrafficDrivingItemController extends BaseController { + @Autowired + private TrafficDrivingItemService trafficDrivingItemService; + @Autowired + private TrafficDrivingSignService trafficDrivingSignService; + @Autowired + private TrafficSecurityWaybillRegistrationService trafficSecurityWaybillRegistrationService; + @Autowired + private Smb smb; + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add(MultipartRequest request) throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + List fileList = new ArrayList(); + String SIGNTIME[] = pd.getString("SIGNTIME").split(","); + + for (int i = 0; i < SIGNTIME.length; i++) { + fileList.add(request.getFile("file" + i)); + } + pd.put("DRIVING_SIGN_ID", this.get32UUID()); + pd.put("ISDELETE", "0"); //是否删除 + pd.put("CREATORNAME", pd.getString("USER_NAME")); //是否发送短信0不发1发 + pd.put("CREATOR", pd.getString("USER_ID")); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", pd.getString("USER_ID")); //操作人 + pd.put("OPERATORNAME", pd.getString("USER_NAME")); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + pd.put("PRACTITIONER", pd.getString("USER_ID")); //操作时间 + trafficDrivingItemService.save(pd, fileList.toArray(new MultipartFile[fileList.size()])); + + map.put("pd",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("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingItemService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingItem") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingItemService.listForDrivingItem(page); + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + /** + * 获取排查项类型 + * + * @param + * @throws Exception + */ + @RequestMapping(value = "/getDrivingItem") + @ResponseBody + public Object getRisk() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd = trafficSecurityWaybillRegistrationService.findById(pd); // 根据ID读取 + List varList = trafficDrivingItemService.listAllType(pd); + List vList = trafficDrivingSignService.listByID(pd); + if(vList != null && vList.size()>0){ + if(vList.size()==0){ + pd.put("IsExist",1); + }else if(vList.size()==1){ + pd.put("IsExist",2); + }else{ + pd.put("IsExist",3); + } + }else{ + pd.put("IsExist",0); + } + map.put("pd", pd); + map.put("varList", varList); + 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());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingItemService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingItemService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingTypeController.java b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingTypeController.java new file mode 100644 index 0000000..53fc410 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficDrivingTypeController.java @@ -0,0 +1,152 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.comprehensive.TrafficDrivingTypeService; +import com.zcloud.util.Const; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Smb; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +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("/app/drivingtype") +public class AppTrafficDrivingTypeController extends BaseController { + @Autowired + private TrafficDrivingTypeService trafficDrivingTypeService; + @Autowired + private Smb smb; + + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DRIVINGTYPE_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //主键 + pd.put("ISDELETE", "0"); //是否删除 + pd.put("CREATORNAME", Jurisdiction.getUsername()); //是否发送短信0不发1发 + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.save(pd); + + map.put("pd",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("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingType") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingTypeService.listForDrivingType(page); + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping("/saveFile") + @ResponseBody + public Object saveFile(@RequestParam(value="file",required=false) MultipartFile file) throws Exception{ + Map map = new HashMap<>(); + String errorInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + String ffile = DateUtil.getDays(); + String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")); + smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile); + map.put("FILE_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName); + map.put("result",errorInfo); + 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());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingTypeService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingTypeService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/AppTrafficSecurityWaybillRegistrationController.java b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficSecurityWaybillRegistrationController.java new file mode 100644 index 0000000..398d907 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/AppTrafficSecurityWaybillRegistrationController.java @@ -0,0 +1,120 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.comprehensive.TrafficDrivingCommitmentService; +import com.zcloud.service.comprehensive.TrafficSecurityWaybillRegistrationService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import com.zcloud.util.Tools; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/app/waybillregistration") +public class AppTrafficSecurityWaybillRegistrationController extends BaseController { + + @Autowired + private TrafficSecurityWaybillRegistrationService trafficSecurityWaybillRegistrationService; + @Autowired + private TrafficDrivingCommitmentService trafficDrivingCommitmentService; + + + @RequestMapping(value = "/listForSecurityWaybillre") + @ResponseBody + public Object listForSecurityWaybillRegistra(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + String TITLE = pd.getString("TITLE"); // 关键词检索条件 + if (Tools.notEmpty(TITLE)) + pd.put("TITLE", TITLE.trim()); + + String REPLYSTATUS = pd.getString("REPLYSTATUS"); // 关键词检索条件 + if (Tools.notEmpty(REPLYSTATUS)) + pd.put("REPLYSTATUS", REPLYSTATUS.trim()); + String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件 + if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim()); + page.setPd(pd); + List varList = trafficSecurityWaybillRegistrationService.listForSecurityWaybill(page); + + map.put("varList", varList); + map.put("page", page); + map.put("result", errInfo); + return map; + } + + @RequestMapping(value = "/forSecurityPerson") + @ResponseBody + public Object forSecurityPerson() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); + pd = trafficSecurityWaybillRegistrationService.forSecurityPerson(pd); + pd.put("PRACTITIONER", Jurisdiction.getName()); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/getDetail") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficSecurityWaybillRegistrationService.findById(pd); // 根据ID读取 + List commitmentList = trafficDrivingCommitmentService.getDrivingCommitment(pd); + map.put("commitmentList", commitmentList); + map.put("pd", pd); + map.put("result", errInfo); + return map; + } + + //新增 + @RequestMapping(value = "/add") + @ResponseBody + public Object add() throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = this.getPageData(); + String waybillregistrationId = this.get32UUID(); + + pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id + pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名 + pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 运输企业 + pd.put("WAYBILLREGISTRATION_ID", waybillregistrationId); // 主键 + pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间 + pd.put("WAYBILLNUMBER", this.get32UUID()); // 添加时间 + pd.put("ISDELETE", "0"); + Date shippingDate = DateUtil.str2Date(pd.getString("SHIPPINGDATE")); + if (shippingDate != null && shippingDate.after(new Date())) { + pd.put("WAYBILLSTATUS", "1"); + } else { + pd.put("WAYBILLSTATUS", "0"); + } + + trafficSecurityWaybillRegistrationService.save(pd); + + map.put("result", errInfo); + map.put("pd", pd); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingCommitmentController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingCommitmentController.java new file mode 100644 index 0000000..7d466a2 --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingCommitmentController.java @@ -0,0 +1,137 @@ +package com.zcloud.controller.comprehensive; + +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.comprehensive.TrafficDrivingCommitmentService; +import com.zcloud.util.*; +import org.apache.commons.lang.StringUtils; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.crypto.hash.SimpleHash; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +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("/drivingcommitment") +public class TrafficDrivingCommitmentController extends BaseController { + @Autowired + private TrafficDrivingCommitmentService trafficDrivingCommitmentService; + + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DRIVINGCOMMITMENT_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //主键 + pd.put("ISDELETE", "0"); //是否删除 + pd.put("INQUIRYCONCLUSION","正常"); + pd.put("CREATORNAME", Jurisdiction.getUsername()); //是否发送短信0不发1发 + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingCommitmentService.save(pd); + + map.put("pd",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("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingCommitmentService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingCommitment") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingCommitmentService.listForDrivingCommitment(page); + map.put("varList", varList); + map.put("page", page); + 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());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingCommitmentService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingCommitmentService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingTypeController.java b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingTypeController.java new file mode 100644 index 0000000..8b892bc --- /dev/null +++ b/src/main/java/com/zcloud/controller/comprehensive/TrafficDrivingTypeController.java @@ -0,0 +1,131 @@ +package com.zcloud.controller.comprehensive; + +import com.zcloud.controller.base.BaseController; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.service.comprehensive.TrafficDrivingTypeService; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Jurisdiction; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; + +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Controller +@RequestMapping("/drivingtype") +public class TrafficDrivingTypeController extends BaseController { + @Autowired + private TrafficDrivingTypeService trafficDrivingTypeService; + + + + /**新增 + * @param + * @throws Exception + */ + @RequestMapping(value="/add") + @ResponseBody + @Transactional + public Object add() throws Exception{ + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + pd.put("DRIVINGTYPE_ID", this.get32UUID()); + pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //主键 + pd.put("ISDELETE", "0"); //是否删除 + pd.put("CREATORNAME", Jurisdiction.getUsername()); //是否发送短信0不发1发 + pd.put("CREATOR", Jurisdiction.getUSER_ID()); //创建人 + pd.put("CREATTIME", DateUtil.date2Str(new Date())); //创建时间 + pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.save(pd); + + map.put("pd",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("OPERATOR", Jurisdiction.getUSER_ID()); //操作人 + pd.put("OPERATORNAME", Jurisdiction.getUsername()); //操作人 + pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //操作时间 + trafficDrivingTypeService.edit(pd); + + map.put("pd",pd); + map.put("result", errInfo); + return map; + } + + + + //列表 + @RequestMapping(value = "/listForSafetyDrivingType") + @ResponseBody + public Object listForSecurityNotice(Page page) throws Exception { + Map map = new HashMap(); + String errInfo = "success"; + PageData pd = new PageData(); + pd = this.getPageData(); + + page.setPd(pd); + List varList = trafficDrivingTypeService.listForDrivingType(page); + map.put("varList", varList); + map.put("page", page); + 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());//删除人id + pd.put("DELETORNAME", Jurisdiction.getUsername());//删除人姓名 + pd.put("DELETETIME", DateUtil.date2Str(new Date()));//删除时间 + trafficDrivingTypeService.delete(pd); + map.put("result", errInfo); + return map; + } + + /** + * 查看详情 + * @return + * @throws Exception + */ + @RequestMapping(value="/goEdit") + @ResponseBody + public Object goEdit() throws Exception { + Map map = new HashMap<>(); + String errInfo = "success"; + PageData pd = this.getPageData(); + pd = trafficDrivingTypeService.findById(pd); // 根据ID读取 + map.put("pd", pd); + map.put("result", errInfo); + return map; + } +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingCommitmentMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingCommitmentMapper.java new file mode 100644 index 0000000..d5906b9 --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingCommitmentMapper.java @@ -0,0 +1,44 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingCommitmentMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + List getDrivingCommitment(PageData pd); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingItemMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingItemMapper.java new file mode 100644 index 0000000..dbba01d --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingItemMapper.java @@ -0,0 +1,44 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingItemMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + List listAllType(PageData pd); + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingSignMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingSignMapper.java new file mode 100644 index 0000000..7027d5c --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingSignMapper.java @@ -0,0 +1,47 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingSignMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + + List listByID(PageData pd); + + List listAllType(PageData pd); + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingTypeMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingTypeMapper.java new file mode 100644 index 0000000..911fe4d --- /dev/null +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficDrivingTypeMapper.java @@ -0,0 +1,43 @@ +package com.zcloud.mapper.datasource.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +@Mapper +public interface TrafficDrivingTypeMapper { + + /**新增 + * @param pd + * @throws Exception + */ + void save(PageData pd); + + /**修改 + * @param pd + * @throws Exception + */ + void edit(PageData pd); + + + /** + * 列表 + * @param page + * @return + */ + List datalistPage(Page page); + + /**删除 + * @param pd + * @throws Exception + */ + void delete(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java index 0c4b5fe..d6e4c3d 100644 --- a/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.java @@ -18,5 +18,13 @@ public interface TrafficSecurityWaybillRegistrationMapper { void save(PageData pd); + void editStatus(PageData pd); + PageData forSecurityPerson(PageData pd); + + /**通过id获取数据 + * @param pd + * @throws Exception + */ + PageData findById(PageData pd); } diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingCommitmentService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingCommitmentService.java new file mode 100644 index 0000000..04c32aa --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingCommitmentService.java @@ -0,0 +1,28 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; + +import java.util.List; + +public interface TrafficDrivingCommitmentService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + List listForDrivingCommitment(Page page); + + List getDrivingCommitment(PageData pd); + + void delete(PageData pd); + + PageData findById(PageData pd); +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingItemService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingItemService.java new file mode 100644 index 0000000..98200f3 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingItemService.java @@ -0,0 +1,34 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +public interface TrafficDrivingItemService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd, MultipartFile[] files)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**排查项类型 + * @param pd + * @throws Exception + */ + public List listAllType(PageData pd)throws Exception; + + + List listForDrivingItem(Page page); + + void delete(PageData pd); + + PageData findById(PageData pd) throws Exception; +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingSignService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingSignService.java new file mode 100644 index 0000000..1aa2704 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingSignService.java @@ -0,0 +1,34 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +public interface TrafficDrivingSignService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd, MultipartFile[] files)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + /**排查项类型 + * @param pd + * @throws Exception + */ + public List listByID(PageData pd)throws Exception; + + + List listForDrivingItem(Page page); + + void delete(PageData pd); + + PageData findById(PageData pd) throws Exception; +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingTypeService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingTypeService.java new file mode 100644 index 0000000..3431655 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficDrivingTypeService.java @@ -0,0 +1,28 @@ +package com.zcloud.service.comprehensive; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +public interface TrafficDrivingTypeService { + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception; + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception; + + + List listForDrivingType(Page page); + + void delete(PageData pd); + + PageData findById(PageData pd) throws Exception; +} diff --git a/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java b/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java index f145a3f..bec3643 100644 --- a/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java +++ b/src/main/java/com/zcloud/service/comprehensive/TrafficSecurityWaybillRegistrationService.java @@ -11,4 +11,6 @@ public interface TrafficSecurityWaybillRegistrationService { void save(PageData pd); PageData forSecurityPerson(PageData pd); + + PageData findById(PageData pd); } diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingCommitmentServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingCommitmentServiceImpl.java new file mode 100644 index 0000000..1efc04e --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingCommitmentServiceImpl.java @@ -0,0 +1,62 @@ +package com.zcloud.service.comprehensive.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingCommitmentMapper; +import com.zcloud.service.comprehensive.TrafficDrivingCommitmentService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class TrafficDrivingCommitmentServiceImpl implements TrafficDrivingCommitmentService { + + @Autowired + private TrafficDrivingCommitmentMapper trafficDrivingCommitmentMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + trafficDrivingCommitmentMapper.save(pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingCommitmentMapper.edit(pd); + } + + /** + * 列表 + * @param page + * @return + */ + @Override + public List listForDrivingCommitment(Page page) { + return trafficDrivingCommitmentMapper.datalistPage(page); + } + + public List getDrivingCommitment(PageData pd) { + return trafficDrivingCommitmentMapper.getDrivingCommitment(pd); + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingCommitmentMapper.delete(pd); + } + + @Override + public PageData findById(PageData pd) { + return trafficDrivingCommitmentMapper.findById(pd); + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingItemServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingItemServiceImpl.java new file mode 100644 index 0000000..2730d1a --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingItemServiceImpl.java @@ -0,0 +1,107 @@ +package com.zcloud.service.comprehensive.impl; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingItemMapper; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingSignMapper; +import com.zcloud.mapper.datasource.comprehensive.TrafficSecurityWaybillRegistrationMapper; +import com.zcloud.service.comprehensive.TrafficDrivingItemService; +import com.zcloud.util.Const; +import com.zcloud.util.DateUtil; +import com.zcloud.util.Smb; +import com.zcloud.util.UuidUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import java.util.ArrayList; +import java.util.List; + +@Service +public class TrafficDrivingItemServiceImpl implements TrafficDrivingItemService { + + @Autowired + private TrafficDrivingItemMapper trafficDrivingItemMapper; + @Autowired + private TrafficDrivingSignMapper trafficDrivingSignMapper; + @Autowired + private com.zcloud.mapper.datasource.comprehensive.TrafficSecurityWaybillRegistrationMapper TrafficSecurityWaybillRegistrationMapper; + @Autowired + private Smb smb; + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd, MultipartFile[] files)throws Exception{ + List filePaths = new ArrayList<>(); + for (int i = 0; i < files.length; i++) { + //保存签名文件 + String ffile = DateUtil.getDays(); + String fileName = UuidUtil.get32UUID() + files[i].getOriginalFilename().substring(files[i].getOriginalFilename().lastIndexOf(".")); + smb.sshSftp(files[i], fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile); + filePaths.add(Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName); + } + pd.put("SIGN_TIME", pd.getString("SIGNTIME")); + pd.put("SIGN_PATH", String.join(",",filePaths)); + trafficDrivingSignMapper.save(pd); + TrafficSecurityWaybillRegistrationMapper.editStatus(pd); + if (pd.get("checklist") != null && !pd.get("checklist").equals("")) { //安全措施确认步骤 + List list = (List) JSON.parse(pd.get("checklist").toString()); + for (JSONObject json : list) { + PageData checklist = new PageData(); + checklist.put("DRIVING_SIGN_ID",pd.get("DRIVING_SIGN_ID")); + checklist.put("DRIVINGTYPE_ID",json.get("DRIVINGTYPE_ID")); + checklist.put("REMARK", json.get("REMARK")); + checklist.put("STATUS", json.get("ISNORMAL")); + checklist.put("OPERATTIME", json.get("OPERATTIME")); + checklist.put("OPERATORNAME", json.get("OPERATORNAME")); + checklist.put("OPERATOR", json.get("OPERATOR")); + checklist.put("ISDELETE", json.get("ISDELETE")); + checklist.put("DRIVING_ITEM_ID", UuidUtil.get32UUID()); + trafficDrivingItemMapper.save(checklist); + } + } + } + + + public List listAllType(PageData pd)throws Exception{ + return trafficDrivingItemMapper.listAllType(pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingItemMapper.edit(pd); + } + + /** + * 列表 + * @param page + * @return + */ + @Override + public List listForDrivingItem(Page page) { + return trafficDrivingItemMapper.datalistPage(page); + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingItemMapper.delete(pd); + } + + + @Override + public PageData findById(PageData pd) throws Exception { + PageData pageData = trafficDrivingItemMapper.findById(pd); + return pageData; + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingSignServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingSignServiceImpl.java new file mode 100644 index 0000000..34fbd85 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingSignServiceImpl.java @@ -0,0 +1,65 @@ +package com.zcloud.service.comprehensive.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingSignMapper; +import com.zcloud.service.comprehensive.TrafficDrivingSignService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import java.util.List; + +@Service +public class TrafficDrivingSignServiceImpl implements TrafficDrivingSignService { + + @Autowired + private TrafficDrivingSignMapper trafficDrivingSignMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + trafficDrivingSignMapper.save(pd); + } + + @Override + public void save(PageData pd, MultipartFile[] files) throws Exception { + + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingSignMapper.edit(pd); + } + + + @Override + public List listByID(PageData pd) throws Exception{ + return trafficDrivingSignMapper.listByID(pd); + } + + @Override + public List listForDrivingItem(Page page) { + return null; + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingSignMapper.delete(pd); + } + + @Override + public PageData findById(PageData pd) { + return trafficDrivingSignMapper.findById(pd); + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingTypeServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingTypeServiceImpl.java new file mode 100644 index 0000000..2969d03 --- /dev/null +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficDrivingTypeServiceImpl.java @@ -0,0 +1,58 @@ +package com.zcloud.service.comprehensive.impl; + +import com.zcloud.entity.Page; +import com.zcloud.entity.PageData; +import com.zcloud.mapper.datasource.comprehensive.TrafficDrivingTypeMapper; +import com.zcloud.service.comprehensive.TrafficDrivingTypeService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class TrafficDrivingTypeServiceImpl implements TrafficDrivingTypeService { + + @Autowired + private TrafficDrivingTypeMapper trafficDrivingTypeMapper; + + + /**新增 + * @param pd + * @throws Exception + */ + public void save(PageData pd)throws Exception{ + trafficDrivingTypeMapper.save(pd); + } + + /**修改 + * @param pd + * @throws Exception + */ + public void edit(PageData pd)throws Exception{ + trafficDrivingTypeMapper.edit(pd); + } + + /** + * 列表 + * @param page + * @return + */ + @Override + public List listForDrivingType(Page page) { + return trafficDrivingTypeMapper.datalistPage(page); + } + + /** + * 删除 + * @param pd + */ + @Override + public void delete(PageData pd) { + trafficDrivingTypeMapper.delete(pd); + } + + @Override + public PageData findById(PageData pd) { + return trafficDrivingTypeMapper.findById(pd); + } +} diff --git a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java index 4b8d04d..ee6f8ae 100644 --- a/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java +++ b/src/main/java/com/zcloud/service/comprehensive/impl/TrafficSecurityWaybillRegistrationServiceImpl.java @@ -28,4 +28,8 @@ public class TrafficSecurityWaybillRegistrationServiceImpl implements TrafficSec public PageData forSecurityPerson(PageData pd) { return TrafficSecurityWaybillRegistrationMapper.forSecurityPerson(pd); } + @Override + public PageData findById(PageData pd) { + return TrafficSecurityWaybillRegistrationMapper.findById(pd); + } } diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingCommitmentMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingCommitmentMapper.xml new file mode 100644 index 0000000..c462ffd --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingCommitmentMapper.xml @@ -0,0 +1,138 @@ + + + + + + BUS_TRAFFIC_DRIVING_COMMITMENT + + + + + SYS_DICTIONARIES + + + + + f.DRIVINGCOMMITMENT_ID, + f.INQUIRYCONTENT, + f.INQUIRYCONCLUSION, + f.CORPINFO_ID, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME + + + + + DRIVINGCOMMITMENT_ID, + INQUIRYCONTENT, + INQUIRYCONCLUSION, + CORPINFO_ID, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME + + + + + #{DRIVINGCOMMITMENT_ID}, + #{INQUIRYCONTENT}, + #{INQUIRYCONCLUSION}, + #{CORPINFO_ID}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + INQUIRYCONTENT = #{INQUIRYCONTENT}, + INQUIRYCONCLUSION = #{INQUIRYCONCLUSION}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME} + where + DRIVINGCOMMITMENT_ID = #{DRIVINGCOMMITMENT_ID} + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETETIME = #{DELETETIME} + where + DRIVINGCOMMITMENT_ID = #{DRIVINGCOMMITMENT_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingItemMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingItemMapper.xml new file mode 100644 index 0000000..9ea1620 --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingItemMapper.xml @@ -0,0 +1,143 @@ + + + + + + BUS_TRAFFIC_DRIVING_ITEM + + + + + SYS_DICTIONARIES + + + + + f.DRIVING_ITEM_ID, + f.DRIVINGTYPE_ID, + f.DRIVING_SIGN_ID, + f.STATUS, + f.REMARK, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME + + + + + DRIVING_ITEM_ID, + DRIVINGTYPE_ID, + DRIVING_SIGN_ID, + STATUS, + REMARK, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME + + + + + #{DRIVING_ITEM_ID}, + #{DRIVINGTYPE_ID}, + #{DRIVING_SIGN_ID}, + #{STATUS}, + #{REMARK}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + DRIVING_ITEM_ID = #{DRIVING_ITEM_ID}, + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID}, + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID}, + STATUS = #{STATUS}, + REMARK = #{REMARK}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME} + where + DRIVING_ITEM_ID = #{DRIVING_ITEM_ID} + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETETIME = #{DELETETIME} + where + DRIVING_ITEM_ID = #{DRIVING_ITEM_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingSignMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingSignMapper.xml new file mode 100644 index 0000000..d49d5c5 --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingSignMapper.xml @@ -0,0 +1,165 @@ + + + + + + BUS_TRAFFIC_DRIVING_SIGN + + + + + SYS_DICTIONARIES + + + + + f.DRIVING_SIGN_ID, + f.IMG_PATH, + f.CORPINFO_ID, + f.SIGN_TIME, + f.SIGN_PATH, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME, + f.PRACTITIONER, + f.WAYBILLREGISTRATION_ID, + f.CHECKTYPE_ID + + + + + DRIVING_SIGN_ID, + IMG_PATH, + CORPINFO_ID, + SIGN_TIME, + SIGN_PATH, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME, + PRACTITIONER, + WAYBILLREGISTRATION_ID, + CHECKTYPE_ID + + + + + #{DRIVING_SIGN_ID}, + #{IMG_PATH}, + #{CORPINFO_ID}, + #{SIGN_TIME}, + #{SIGN_PATH}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME}, + #{PRACTITIONER}, + #{WAYBILLREGISTRATION_ID}, + #{CHECKTYPE_ID} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID}, + PRACTITIONER = #{PRACTITIONER}, + IMG_PATH = #{IMG_PATH}, + CORPINFO_ID = #{CORPINFO_ID}, + SIGN_TIME = #{SIGN_TIME}, + SIGN_PATH = #{SIGN_PATH}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME}, + WAYBILLREGISTRATION_ID = #{WAYBILLREGISTRATION_ID}, + CHECKTYPE_ID = #{CHECKTYPE_ID} + where + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID} + + + + + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETETIME = #{DELETETIME} + where + DRIVING_SIGN_ID = #{DRIVING_SIGN_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingTypeMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingTypeMapper.xml new file mode 100644 index 0000000..35d3341 --- /dev/null +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficDrivingTypeMapper.xml @@ -0,0 +1,136 @@ + + + + + + BUS_TRAFFIC_DRIVING_TYPE + + + + + SYS_DICTIONARIES + + + + + f.DRIVINGTYPE_ID, + f.CHECKTYPE_ID, + f.CHECKITEMNAME, + f.REMARKS, + f.CORPINFO_ID, + f.ISDELETE, + f.DELETOR, + f.DELETORNAME, + f.DELETETIME, + f.CREATOR, + f.CREATORNAME, + f.CREATTIME, + f.OPERATOR, + f.OPERATORNAME, + f.OPERATTIME + + + + + DRIVINGTYPE_ID, + CHECKTYPE_ID, + CHECKITEMNAME, + REMARKS, + CORPINFO_ID, + ISDELETE, + DELETOR, + DELETORNAME, + DELETETIME, + CREATOR, + CREATORNAME, + CREATTIME, + OPERATOR, + OPERATORNAME, + OPERATTIME + + + + + #{DRIVINGTYPE_ID}, + #{CHECKTYPE_ID}, + #{CHECKITEMNAME}, + #{REMARKS}, + #{CORPINFO_ID}, + #{ISDELETE}, + #{DELETOR}, + #{DELETORNAME}, + #{DELETETIME}, + #{CREATOR}, + #{CREATORNAME}, + #{CREATTIME}, + #{OPERATOR}, + #{OPERATORNAME}, + #{OPERATTIME} + + + + + insert into + + ( + + ) values ( + + ) + + + + update + + set + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID}, + CHECKTYPE_ID = #{CHECKTYPE_ID}, + CHECKITEMNAME = #{CHECKITEMNAME}, + REMARKS = #{REMARKS}, + CORPINFO_ID = #{CORPINFO_ID}, + OPERATORNAME = #{OPERATORNAME}, + OPERATOR = #{OPERATOR}, + OPERATTIME = #{OPERATTIME} + where + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID} + + + + + + + + + + update + + set + ISDELETE = '1', + DELETOR = #{DELETOR}, + DELETORNAME = #{DELETORNAME}, + DELETETIME = #{DELETETIME} + where + DRIVINGTYPE_ID = #{DRIVINGTYPE_ID} + + diff --git a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml index ee13e92..f11297d 100644 --- a/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml +++ b/src/main/resources/mybatis/datasource/comprehensive/TrafficSecurityWaybillRegistrationMapper.xml @@ -132,14 +132,26 @@ ) + + update + + set + WAYBILLSTATUS = #{WAYBILLSTATUS} + where + WAYBILLREGISTRATION_ID = #{WAYBILLREGISTRATION_ID} + + select + + from + f + where + f.WAYBILLREGISTRATION_ID = #{WAYBILLREGISTRATION_ID} + +