forked from integrated_whb/integrated_whb
Merge remote-tracking branch 'origin/dev' into dev
commit
8feddb6b97
|
@ -0,0 +1,185 @@
|
|||
package com.zcloud.controller.beidou;
|
||||
|
||||
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.beidou.BeidouService;
|
||||
import com.zcloud.service.maintenance.MaintenanceService;
|
||||
import com.zcloud.service.system.ImgFilesService;
|
||||
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.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("/beidou")
|
||||
public class BeidouController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BeidouService beidouService;
|
||||
@Autowired
|
||||
private ImgFilesService imgfilesService;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/add")
|
||||
// @RequiresPermissions( value = {"question:add" , "courseware:add"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "新增")
|
||||
public Object add() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("BEIDOU_ID", this.get32UUID()); //主键
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人
|
||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
||||
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
pd.put("ARCHIVES_TYPE", "正常"); //档案状态
|
||||
|
||||
beidouService.save(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/delete")
|
||||
// @RequiresPermissions( value = {"question:del" , "courseware:del"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "删除")
|
||||
public Object delete() throws Exception {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("DELETEOR", Jurisdiction.getUSER_ID()); //删除人id
|
||||
pd.put("DELETEORNAME", Jurisdiction.getUsername()); //删除人
|
||||
pd.put("DELETTIME", DateUtil.date2Str(new Date())); //删除时间
|
||||
beidouService.delete(pd);
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "修改")
|
||||
public Object edit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
beidouService.edit(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit2")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "修改")
|
||||
public Object edit2() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
beidouService.edit2(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/list")
|
||||
// @RequiresPermissions( value = {"question:list" , "courseware:list"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "列表")
|
||||
public Object list(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = beidouService.list(page); //列出Question列表
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 去修改页面获取数据
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/goEdit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "去修改页面获取数据")
|
||||
public Object goEdit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd = beidouService.findById(pd); //根据ID读取
|
||||
|
||||
pd.put("FOREIGN_KEY", pd.getString("BEIDOU_ID"));
|
||||
pd.put("TYPE",128);
|
||||
List<PageData> beidouinfoImgs = imgfilesService.listAll(pd);//北斗资料图片
|
||||
map.put("pd", pd);
|
||||
map.put("beidouinfoImgs", beidouinfoImgs);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -157,4 +157,24 @@ public class TrafficSafetyAssessmentController extends BaseController {
|
|||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/delete")
|
||||
@ResponseBody
|
||||
public Object delete() throws Exception{
|
||||
Map<String,String> map = new HashMap<String,String>();
|
||||
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()));//删除时间
|
||||
safetyAssessmentService.delete(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -156,4 +156,24 @@ public class TrafficSafetyProductionController extends BaseController {
|
|||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/delete")
|
||||
@ResponseBody
|
||||
public Object delete() throws Exception{
|
||||
Map<String,String> map = new HashMap<String,String>();
|
||||
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()));//删除时间
|
||||
safetyProductionService.delete(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.service.comprehensive.TrafficSecurityAccidentInvestigationService;
|
||||
import com.zcloud.service.comprehensive.TrafficSecurityViolationRegistrationService;
|
||||
import com.zcloud.util.*;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
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.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("/accidentinvestigation")
|
||||
public class TrafficSecurityAccidentInvestigationController extends BaseController {
|
||||
@Autowired
|
||||
private TrafficSecurityAccidentInvestigationService accidentInvestigationService;
|
||||
@Autowired
|
||||
private Smb smb;
|
||||
|
||||
@RequestMapping(value = "/add")
|
||||
@ResponseBody
|
||||
public Object add(@RequestParam(value="FFILEONE",required=false) MultipartFile fileOne,
|
||||
@RequestParam(value="FFILETWO",required=false) MultipartFile fileTwo) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
|
||||
String accidentinvestigation_id = this.get32UUID();
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名
|
||||
pd.put("ACCIDENTINVESTIGATION_ID", accidentinvestigation_id); // 主键
|
||||
pd.put("INCIDENTNUMBER", this.get32UUID()); // 事故编号
|
||||
pd.put("CERTIFICATIONNUMBER", this.get32UUID()); // 认定书编号
|
||||
pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间
|
||||
pd.put("DEPARTMENT", Jurisdiction.getCORPINFO_ID()); // 部门
|
||||
pd.put("ISDELETE", "0");
|
||||
|
||||
String ffile = DateUtil.getDays();
|
||||
if (fileOne != null && StringUtils.isNotBlank(pd.getString("CREATORNAME"))){
|
||||
String suffixName = fileOne.getOriginalFilename().substring(fileOne.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
||||
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName)) {
|
||||
errInfo = "fail";
|
||||
map.put("result", errInfo);
|
||||
map.put("msg", "文件格式不正确!");
|
||||
return map;
|
||||
}
|
||||
String fileName = this.get32UUID() + fileOne.getOriginalFilename().substring(fileOne.getOriginalFilename().lastIndexOf("."));
|
||||
smb.sshSftp(fileOne, fileName, Const.FILEPATHFILE + pd.getString("TRANSPORTATIONCOMPANY") + "/" + ffile);
|
||||
pd.put("ACCIDENTREPORTRECORD", Const.FILEPATHFILE + pd.getString("TRANSPORTATIONCOMPANY") + "/" + ffile + "/" + fileName);
|
||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||
}
|
||||
if (fileTwo != null && StringUtils.isNotBlank(pd.getString("CREATORNAME"))){
|
||||
String suffixName = fileTwo.getOriginalFilename().substring(fileTwo.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
||||
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName)) {
|
||||
errInfo = "fail";
|
||||
map.put("result", errInfo);
|
||||
map.put("msg", "文件格式不正确!");
|
||||
return map;
|
||||
}
|
||||
String fileName = this.get32UUID() + fileTwo.getOriginalFilename().substring(fileTwo.getOriginalFilename().lastIndexOf("."));
|
||||
smb.sshSftp(fileTwo, fileName, Const.FILEPATHFILE + pd.getString("TRANSPORTATIONCOMPANY") + "/" + ffile);
|
||||
pd.put("ACCIDENTANALYSISRECORD", Const.FILEPATHFILE + pd.getString("TRANSPORTATIONCOMPANY") + "/" + ffile + "/" + fileName);
|
||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||
}
|
||||
|
||||
accidentInvestigationService.save(pd);
|
||||
map.put("result", errInfo);
|
||||
map.put("pd", pd);
|
||||
return map;
|
||||
}
|
||||
|
||||
//列表
|
||||
@RequestMapping(value = "/listForAccidentInvestigation")
|
||||
@ResponseBody
|
||||
public Object listForAccidentInvestigation(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
|
||||
String USER_ID = pd.getString("USER_ID");
|
||||
if (Tools.notEmpty(USER_ID))
|
||||
pd.put("USER_ID", USER_ID.trim());
|
||||
|
||||
String ACCIDENTDATE = pd.getString("ACCIDENTDATE"); // 运输车辆
|
||||
if (Tools.notEmpty(ACCIDENTDATE))
|
||||
pd.put("ACCIDENTDATE", ACCIDENTDATE.trim());
|
||||
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = accidentInvestigationService.listForAccidentInvestigation(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<String,String> map = new HashMap<String,String>();
|
||||
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()));//删除时间
|
||||
accidentInvestigationService.delete(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看详情
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/goEdit")
|
||||
@ResponseBody
|
||||
public Object goEdit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
pd = accidentInvestigationService.findById(pd); // 根据ID读取
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
//修改
|
||||
@RequestMapping(value = "/edit")
|
||||
@ResponseBody
|
||||
public Object edit(@RequestParam(value="FFILE",required=false) MultipartFile file) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); // 修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getName()); // 修改人姓名
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间
|
||||
|
||||
String ffile = DateUtil.getDays();
|
||||
if (file != null && StringUtils.isNotBlank(pd.getString("OPERATORNAME"))){
|
||||
pd.put("COMPLETIONSTATUS", "1");
|
||||
String suffixName = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
||||
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName)) {
|
||||
errInfo = "fail";
|
||||
map.put("result", errInfo);
|
||||
map.put("msg", "文件格式不正确!");
|
||||
return map;
|
||||
}
|
||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||
}
|
||||
|
||||
accidentInvestigationService.edit(pd);
|
||||
|
||||
map.put("result", errInfo);
|
||||
map.put("pd", pd);
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,181 @@
|
|||
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.TrafficSecurityManagementAgreementService;
|
||||
import com.zcloud.util.*;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
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.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("/managementagreement")
|
||||
public class TrafficSecurityManagementAgreementController extends BaseController {
|
||||
@Autowired
|
||||
private TrafficSecurityManagementAgreementService managementAgreementService;
|
||||
@Autowired
|
||||
private Smb smb;
|
||||
|
||||
//新增
|
||||
@RequestMapping(value = "/add")
|
||||
@ResponseBody
|
||||
public Object add(@RequestParam(value="FFILE",required=false) MultipartFile file) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
String managementagreementId = this.get32UUID();
|
||||
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名
|
||||
pd.put("OPERATINGCOMPANY", Jurisdiction.getCORPINFO_ID()); // 经营企业
|
||||
pd.put("MANAGEMENTAGREEMENT_ID", managementagreementId); // 主键
|
||||
pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间
|
||||
pd.put("COMPLETIONSTATUS", "0");
|
||||
pd.put("ISDELETE", "0");
|
||||
|
||||
if (DateUtil.compareDate(DateUtil.getDay(), pd.getString("EXPIRYDATE"))) {
|
||||
pd.put("VALIDSTATUS", "0");
|
||||
} else {
|
||||
pd.put("VALIDSTATUS", "1");
|
||||
}
|
||||
String ffile = DateUtil.getDays();
|
||||
|
||||
if (file != null && StringUtils.isNotBlank(pd.getString("CREATORNAME"))){
|
||||
pd.put("COMPLETIONSTATUS", "1");
|
||||
String suffixName = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
||||
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName)) {
|
||||
errInfo = "fail";
|
||||
map.put("result", errInfo);
|
||||
map.put("msg", "文件格式不正确!");
|
||||
return map;
|
||||
}
|
||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||
}
|
||||
|
||||
managementAgreementService.save(pd);
|
||||
|
||||
map.put("result", errInfo);
|
||||
map.put("pd", pd);
|
||||
return map;
|
||||
}
|
||||
|
||||
//修改
|
||||
@RequestMapping(value = "/edit")
|
||||
@ResponseBody
|
||||
public Object edit(@RequestParam(value="FFILE",required=false) MultipartFile file) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); // 修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getName()); // 修改人姓名
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间
|
||||
pd.put("OPERATINGCOMPANY", Jurisdiction.getCORPINFO_ID()); // 经营企业
|
||||
pd.put("ISDELETE", "0");
|
||||
String ffile = DateUtil.getDays();
|
||||
|
||||
if (file != null && StringUtils.isNotBlank(pd.getString("OPERATORNAME"))){
|
||||
pd.put("COMPLETIONSTATUS", "1");
|
||||
String suffixName = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
||||
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName)) {
|
||||
errInfo = "fail";
|
||||
map.put("result", errInfo);
|
||||
map.put("msg", "文件格式不正确!");
|
||||
return map;
|
||||
}
|
||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||
}
|
||||
|
||||
managementAgreementService.edit(pd);
|
||||
|
||||
map.put("result", errInfo);
|
||||
map.put("pd", pd);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
* @param page
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/listForManagementAgreementlist")
|
||||
@ResponseBody
|
||||
public Object listForManagementAgreementlist(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
|
||||
String SYSTEMNAME = pd.getString("SYSTEMNAME"); // 关键词检索条件
|
||||
if (Tools.notEmpty(SYSTEMNAME))
|
||||
pd.put("SYSTEMNAME", SYSTEMNAME.trim());
|
||||
|
||||
String COMPLETIONSTATUS = pd.getString("COMPLETIONSTATUS"); // 关键词检索条件
|
||||
if (Tools.notEmpty(COMPLETIONSTATUS))
|
||||
pd.put("COMPLETIONSTATUS", COMPLETIONSTATUS.trim());
|
||||
|
||||
String VALIDSTATUS = pd.getString("VALIDSTATUS"); // 关键词检索条件
|
||||
if (Tools.notEmpty(VALIDSTATUS))
|
||||
pd.put("VALIDSTATUS", VALIDSTATUS.trim());
|
||||
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = managementAgreementService.listForManagementAgreementlist(page);
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
//详情
|
||||
@RequestMapping(value="/goEdit")
|
||||
@ResponseBody
|
||||
public Object goEdit() throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd = managementAgreementService.findById(pd); //根据ID读取
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/delete")
|
||||
@ResponseBody
|
||||
public Object delete() throws Exception{
|
||||
Map<String,String> map = new HashMap<String,String>();
|
||||
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()));//删除时间
|
||||
managementAgreementService.delete(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -160,4 +160,24 @@ public class TrafficSecurityManagementStaffingController extends BaseController
|
|||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/delete")
|
||||
@ResponseBody
|
||||
public Object delete() throws Exception{
|
||||
Map<String,String> map = new HashMap<String,String>();
|
||||
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()));//删除时间
|
||||
securityManagementStaffingService.delete(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,163 @@
|
|||
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.TrafficSecurityViolationRegistrationService;
|
||||
import com.zcloud.util.*;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
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.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("/violationregistration")
|
||||
public class TrafficSecurityViolationRegistrationController extends BaseController {
|
||||
@Autowired
|
||||
private TrafficSecurityViolationRegistrationService violationRegistrationService;
|
||||
@Autowired
|
||||
private Smb smb;
|
||||
|
||||
@RequestMapping(value = "/add")
|
||||
@ResponseBody
|
||||
public Object add(@RequestParam(value="FFILE",required=false) MultipartFile file) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
|
||||
String registration_id = this.get32UUID();
|
||||
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名
|
||||
pd.put("REGISTRATION_ID", registration_id); // 主键
|
||||
pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间
|
||||
pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 运输企业
|
||||
pd.put("ISDELETE", "0");
|
||||
|
||||
String ffile = DateUtil.getDays();
|
||||
if (file != null && StringUtils.isNotBlank(pd.getString("CREATORNAME"))){
|
||||
String suffixName = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
||||
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName)) {
|
||||
errInfo = "fail";
|
||||
map.put("result", errInfo);
|
||||
map.put("msg", "文件格式不正确!");
|
||||
return map;
|
||||
}
|
||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("TRANSPORTATIONCOMPANY") + "/" + ffile);
|
||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("TRANSPORTATIONCOMPANY") + "/" + ffile + "/" + fileName);
|
||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||
}
|
||||
|
||||
violationRegistrationService.save(pd);
|
||||
map.put("result", errInfo);
|
||||
map.put("pd", pd);
|
||||
return map;
|
||||
}
|
||||
|
||||
//列表
|
||||
@RequestMapping(value = "/listForViolationRegistration")
|
||||
@ResponseBody
|
||||
public Object listForViolationRegistration(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
|
||||
String USER_ID = pd.getString("USER_ID"); // 运输企业
|
||||
if (Tools.notEmpty(USER_ID))
|
||||
pd.put("USER_ID", USER_ID.trim());
|
||||
|
||||
String PENALTYTIME = pd.getString("PENALTYTIME"); // 运输车辆
|
||||
if (Tools.notEmpty(PENALTYTIME))
|
||||
pd.put("PENALTYTIME", PENALTYTIME.trim());
|
||||
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = violationRegistrationService.listForViolationRegistration(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<String,String> map = new HashMap<String,String>();
|
||||
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()));//删除时间
|
||||
violationRegistrationService.delete(pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看详情
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/goEdit")
|
||||
@ResponseBody
|
||||
public Object goEdit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
pd = violationRegistrationService.findById(pd); // 根据ID读取
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
//修改
|
||||
@RequestMapping(value = "/edit")
|
||||
@ResponseBody
|
||||
public Object edit(@RequestParam(value="FFILE",required=false) MultipartFile file) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); // 修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getName()); // 修改人姓名
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间
|
||||
|
||||
String ffile = DateUtil.getDays();
|
||||
if (file != null && StringUtils.isNotBlank(pd.getString("OPERATORNAME"))){
|
||||
pd.put("COMPLETIONSTATUS", "1");
|
||||
String suffixName = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1).toLowerCase();
|
||||
if (!"pdf".equals(suffixName) && !"jpg".equals(suffixName) && !"jpeg".equals(suffixName) && !"png".equals(suffixName)) {
|
||||
errInfo = "fail";
|
||||
map.put("result", errInfo);
|
||||
map.put("msg", "文件格式不正确!");
|
||||
return map;
|
||||
}
|
||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||
}
|
||||
|
||||
violationRegistrationService.edit(pd);
|
||||
|
||||
map.put("result", errInfo);
|
||||
map.put("pd", pd);
|
||||
return map;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,189 @@
|
|||
package com.zcloud.controller.insure;
|
||||
|
||||
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.inspectAnnually.InspectAnnuallyService;
|
||||
import com.zcloud.service.insure.InsureService;
|
||||
import com.zcloud.service.system.ImgFilesService;
|
||||
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.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("/insure")
|
||||
public class InsureController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private InsureService insureService;
|
||||
@Autowired
|
||||
private ImgFilesService imgfilesService;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/add")
|
||||
// @RequiresPermissions( value = {"question:add" , "courseware:add"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "保险管理", instructionsOperate = "保险管理", instructionsType = "新增")
|
||||
public Object add() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("INSURE_ID", this.get32UUID()); //主键
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人
|
||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
||||
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
pd.put("ARCHIVES_TYPE", "正常"); //档案状态
|
||||
|
||||
insureService.save(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/delete")
|
||||
// @RequiresPermissions( value = {"question:del" , "courseware:del"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "保险管理", instructionsOperate = "保险管理", instructionsType = "删除")
|
||||
public Object delete() throws Exception {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("DELETEOR", Jurisdiction.getUSER_ID()); //删除人id
|
||||
pd.put("DELETEORNAME", Jurisdiction.getUsername()); //删除人
|
||||
pd.put("DELETTIME", DateUtil.date2Str(new Date())); //删除时间
|
||||
insureService.delete(pd);
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "保险管理", instructionsOperate = "保险管理", instructionsType = "修改")
|
||||
public Object edit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
insureService.edit(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit2")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "保险管理", instructionsOperate = "保险管理", instructionsType = "修改")
|
||||
public Object edit2() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
insureService.edit2(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/list")
|
||||
// @RequiresPermissions( value = {"question:list" , "courseware:list"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "保险管理", instructionsOperate = "保险管理", instructionsType = "列表")
|
||||
public Object list(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = insureService.list(page); //列出Question列表
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 去修改页面获取数据
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/goEdit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "保险管理", instructionsOperate = "保险管理", instructionsType = "去修改页面获取数据")
|
||||
public Object goEdit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd = insureService.findById(pd); //根据ID读取
|
||||
|
||||
pd.put("FOREIGN_KEY", pd.getString("INSURE_ID"));
|
||||
pd.put("TYPE",125);
|
||||
List<PageData> insureinfoImgs = imgfilesService.listAll(pd);//保险资料图片
|
||||
pd.put("TYPE",129);
|
||||
List<PageData> attachmentUploadImgs = imgfilesService.listAll(pd);//保险附件上传
|
||||
|
||||
map.put("pd", pd);
|
||||
map.put("insureinfoImgs", insureinfoImgs);
|
||||
map.put("attachmentUploadImgs", attachmentUploadImgs);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,184 @@
|
|||
package com.zcloud.controller.maintenance;
|
||||
|
||||
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.maintenance.MaintenanceService;
|
||||
import com.zcloud.service.system.ImgFilesService;
|
||||
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.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("/maintenance")
|
||||
public class MaintenanceController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private MaintenanceService maintenanceService;
|
||||
@Autowired
|
||||
private ImgFilesService imgfilesService;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/add")
|
||||
// @RequiresPermissions( value = {"question:add" , "courseware:add"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "维保管理", instructionsOperate = "维保管理", instructionsType = "新增")
|
||||
public Object add() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("MAINTENANCE_ID", this.get32UUID()); //主键
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人
|
||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
||||
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
pd.put("ARCHIVES_TYPE", "正常"); //档案状态
|
||||
|
||||
maintenanceService.save(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/delete")
|
||||
// @RequiresPermissions( value = {"question:del" , "courseware:del"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "维保管理", instructionsOperate = "维保管理", instructionsType = "删除")
|
||||
public Object delete() throws Exception {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("DELETEOR", Jurisdiction.getUSER_ID()); //删除人id
|
||||
pd.put("DELETEORNAME", Jurisdiction.getUsername()); //删除人
|
||||
pd.put("DELETTIME", DateUtil.date2Str(new Date())); //删除时间
|
||||
maintenanceService.delete(pd);
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "维保管理", instructionsOperate = "维保管理", instructionsType = "修改")
|
||||
public Object edit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
maintenanceService.edit(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit2")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "维保管理", instructionsOperate = "维保管理", instructionsType = "修改")
|
||||
public Object edit2() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
maintenanceService.edit2(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/list")
|
||||
// @RequiresPermissions( value = {"question:list" , "courseware:list"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "维保管理", instructionsOperate = "维保管理", instructionsType = "列表")
|
||||
public Object list(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = maintenanceService.list(page); //列出Question列表
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 去修改页面获取数据
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/goEdit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "维保管理", instructionsOperate = "维保管理", instructionsType = "去修改页面获取数据")
|
||||
public Object goEdit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd = maintenanceService.findById(pd); //根据ID读取
|
||||
|
||||
pd.put("FOREIGN_KEY", pd.getString("MAINTENANCE_ID"));
|
||||
pd.put("TYPE",127);
|
||||
List<PageData> maintenanceinfoImgs = imgfilesService.listAll(pd);//维保资料图片
|
||||
map.put("pd", pd);
|
||||
map.put("maintenanceinfoImgs", maintenanceinfoImgs);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,184 @@
|
|||
package com.zcloud.controller.operations;
|
||||
|
||||
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.operations.OperationsService;
|
||||
import com.zcloud.service.system.ImgFilesService;
|
||||
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.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("/operations")
|
||||
public class OperationsController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private OperationsService operationsService;
|
||||
@Autowired
|
||||
private ImgFilesService imgfilesService;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/add")
|
||||
// @RequiresPermissions( value = {"question:add" , "courseware:add"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "营运管理", instructionsOperate = "营运管理", instructionsType = "新增")
|
||||
public Object add() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATIONS_ID", this.get32UUID()); //主键
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人
|
||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
||||
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
pd.put("ARCHIVES_TYPE", "正常"); //档案状态
|
||||
|
||||
operationsService.save(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/delete")
|
||||
// @RequiresPermissions( value = {"question:del" , "courseware:del"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "营运管理", instructionsOperate = "营运管理", instructionsType = "删除")
|
||||
public Object delete() throws Exception {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("DELETEOR", Jurisdiction.getUSER_ID()); //删除人id
|
||||
pd.put("DELETEORNAME", Jurisdiction.getUsername()); //删除人
|
||||
pd.put("DELETTIME", DateUtil.date2Str(new Date())); //删除时间
|
||||
operationsService.delete(pd);
|
||||
map.put("result", errInfo); //返回结果
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "营运管理", instructionsOperate = "营运管理", instructionsType = "修改")
|
||||
public Object edit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
operationsService.edit(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/edit2")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "营运管理", instructionsOperate = "营运管理", instructionsType = "修改")
|
||||
public Object edit2() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
|
||||
pd.put("OPERATORNAME", Jurisdiction.getUsername()); //修改人
|
||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||
operationsService.edit2(pd);
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/list")
|
||||
// @RequiresPermissions( value = {"question:list" , "courseware:list"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "营运管理", instructionsOperate = "营运管理", instructionsType = "列表")
|
||||
public Object list(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = operationsService.list(page); //列出Question列表
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 去修改页面获取数据
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/goEdit")
|
||||
// @RequiresPermissions( value = {"question:edit" , "courseware:edit"}, logical = Logical.OR)
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "机务档案", menuServer = "营运管理", instructionsOperate = "营运管理", instructionsType = "去修改页面获取数据")
|
||||
public Object goEdit() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd = operationsService.findById(pd); //根据ID读取
|
||||
|
||||
pd.put("FOREIGN_KEY", pd.getString("OPERATIONS_ID"));
|
||||
pd.put("TYPE",126);
|
||||
List<PageData> operationsinfoImgs = imgfilesService.listAll(pd);//营运证资料图片
|
||||
map.put("pd", pd);
|
||||
map.put("operationsinfoImgs", operationsinfoImgs);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -62,7 +62,7 @@ public class ImgFilesController extends BaseController {
|
|||
// 保存文件
|
||||
File tempFile = new File(file.getOriginalFilename());
|
||||
FileUtils.copyInputStreamToFile(file.getInputStream(), tempFile);
|
||||
if(!FileUpload.isImage(tempFile) && !TYPE.equals("2") && !TYPE.equals("3")) {//四色图改为json文件,不用判断类型
|
||||
if(!FileUpload.isImage(tempFile) && !TYPE.equals("2") && !TYPE.equals("3") && !TYPE.equals("129")) {//四色图改为json文件,不用判断类型
|
||||
map.put("result", "failed");
|
||||
map.put("exception", "上传图片格式不正确,请重新上传");
|
||||
return map;
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
package com.zcloud.mapper.datasource.beidou;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface BeidouMapper {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void save(PageData pd);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void delete(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit2(PageData pd);
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
PageData findById(PageData pd);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -15,4 +15,6 @@ public interface TrafficSafetyAssessmentMapper {
|
|||
void edit(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
||||
|
|
|
@ -15,4 +15,6 @@ public interface TrafficSafetyProductionMapper {
|
|||
void edit(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
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 TrafficSecurityAccidentInvestigationMapper {
|
||||
void save(PageData pd);
|
||||
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
void edit(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
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 TrafficSecurityManagementAgreementMapper {
|
||||
void save(PageData pd);
|
||||
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
void edit(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
|
@ -15,4 +15,6 @@ public interface TrafficSecurityManagementStaffingMapper {
|
|||
void edit(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
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 TrafficSecurityViolationRegistrationMapper {
|
||||
void save(PageData pd);
|
||||
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
void edit(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.zcloud.mapper.datasource.insure;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息管理-货运挂车
|
||||
*/
|
||||
public interface InsureMapper {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void save(PageData pd);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void delete(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit2(PageData pd);
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
PageData findById(PageData pd);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.zcloud.mapper.datasource.maintenance;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface MaintenanceMapper {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void save(PageData pd);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void delete(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit2(PageData pd);
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
PageData findById(PageData pd);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.zcloud.mapper.datasource.operations;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息管理-货运挂车
|
||||
*/
|
||||
public interface OperationsMapper {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void save(PageData pd);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void delete(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit(PageData pd);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
void edit2(PageData pd);
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
List<PageData> datalistPage(Page page);
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
PageData findById(PageData pd);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.zcloud.service.beidou;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface BeidouService {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
package com.zcloud.service.beidou.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.beidou.BeidouMapper;
|
||||
import com.zcloud.service.beidou.BeidouService;
|
||||
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 BeidouServiceImpl implements BeidouService {
|
||||
|
||||
@Autowired
|
||||
private BeidouMapper beidouMapper;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void save(PageData pd) throws Exception {
|
||||
beidouMapper.save(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void delete(PageData pd) throws Exception {
|
||||
beidouMapper.delete(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit(PageData pd) throws Exception {
|
||||
beidouMapper.edit(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception {
|
||||
beidouMapper.edit2(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception {
|
||||
return beidouMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception {
|
||||
return beidouMapper.findById(pd);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -13,4 +13,6 @@ public interface TrafficSafetyAssessmentService {
|
|||
List<PageData> listForSafetyAssessment(Page page);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
||||
|
|
|
@ -13,4 +13,6 @@ public interface TrafficSafetyProductionService {
|
|||
List<PageData> listForSafetyProductionlist(Page page);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package com.zcloud.service.comprehensive;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TrafficSecurityAccidentInvestigationService {
|
||||
void save(PageData pd);
|
||||
|
||||
List<PageData> listForAccidentInvestigation(Page page);
|
||||
|
||||
void delete(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void edit(PageData pd);
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package com.zcloud.service.comprehensive;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TrafficSecurityManagementAgreementService {
|
||||
void save(PageData pd);
|
||||
|
||||
void edit(PageData pd);
|
||||
|
||||
List<PageData> listForManagementAgreementlist(Page page);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
|
@ -13,4 +13,6 @@ public interface TrafficSecurityManagementStaffingService {
|
|||
void edit(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void delete(PageData pd);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
package com.zcloud.service.comprehensive;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface TrafficSecurityViolationRegistrationService {
|
||||
void save(PageData pd);
|
||||
|
||||
List<PageData> listForViolationRegistration(Page page);
|
||||
|
||||
void delete(PageData pd);
|
||||
|
||||
PageData findById(PageData pd);
|
||||
|
||||
void edit(PageData pd);
|
||||
|
||||
}
|
|
@ -33,4 +33,9 @@ public class TrafficSafetyAssessmentServiceImpl implements TrafficSafetyAssessme
|
|||
public PageData findById(PageData pd) {
|
||||
return safetyAssessmentMapper.findById(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(PageData pd) {
|
||||
safetyAssessmentMapper.delete(pd);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,4 +32,9 @@ public class TrafficSafetyProductionServiceImpl implements TrafficSafetyProducti
|
|||
public PageData findById(PageData pd) {
|
||||
return speedProductionMapper.findById(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(PageData pd) {
|
||||
speedProductionMapper.delete(pd);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
package com.zcloud.service.comprehensive.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.comprehensive.TrafficSecurityAccidentInvestigationMapper;
|
||||
import com.zcloud.service.comprehensive.TrafficSecurityAccidentInvestigationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class TrafficSecurityAccidentInvestigationServiceImpl implements TrafficSecurityAccidentInvestigationService {
|
||||
|
||||
@Autowired
|
||||
private TrafficSecurityAccidentInvestigationMapper accidentInvestigationMapper;
|
||||
@Override
|
||||
public void save(PageData pd) {
|
||||
accidentInvestigationMapper.save(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> listForAccidentInvestigation(Page page) {
|
||||
return accidentInvestigationMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(PageData pd) {
|
||||
accidentInvestigationMapper.delete(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageData findById(PageData pd) {
|
||||
return accidentInvestigationMapper.findById(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(PageData pd) {
|
||||
accidentInvestigationMapper.edit(pd);
|
||||
}
|
||||
}
|
|
@ -1,15 +1,16 @@
|
|||
package com.zcloud.service.comprehensive;
|
||||
package com.zcloud.service.comprehensive.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.comprehensive.TrafficSecurityCommitmentMapper;
|
||||
import com.zcloud.service.comprehensive.TrafficSecurityCommitmentService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class TrafficSecurityCommitmentServiceImpl implements TrafficSecurityCommitmentService{
|
||||
public class TrafficSecurityCommitmentServiceImpl implements TrafficSecurityCommitmentService {
|
||||
@Autowired
|
||||
private TrafficSecurityCommitmentMapper securityCommitmentMapper;
|
||||
|
|
@ -1,15 +1,16 @@
|
|||
package com.zcloud.service.comprehensive;
|
||||
package com.zcloud.service.comprehensive.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.comprehensive.TrafficSecurityEmployeesDetailsMapper;
|
||||
import com.zcloud.service.comprehensive.TrafficSecurityEmployeesDetailsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class TrafficSecurityEmployeesDetailsImpl implements TrafficSecurityEmployeesDetailsService{
|
||||
public class TrafficSecurityEmployeesDetailsImpl implements TrafficSecurityEmployeesDetailsService {
|
||||
@Autowired
|
||||
private TrafficSecurityEmployeesDetailsMapper ecoDetailsMapper;
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.service.comprehensive.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.comprehensive.TrafficSecurityManagementAgreementMapper;
|
||||
import com.zcloud.service.comprehensive.TrafficSecurityManagementAgreementService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class TrafficSecurityManagementAgreementServiceImpl implements TrafficSecurityManagementAgreementService {
|
||||
@Autowired
|
||||
private TrafficSecurityManagementAgreementMapper managementAgreementMapper;
|
||||
@Override
|
||||
public void save(PageData pd) {
|
||||
managementAgreementMapper.save(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(PageData pd) {
|
||||
managementAgreementMapper.edit(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> listForManagementAgreementlist(Page page) {
|
||||
return managementAgreementMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageData findById(PageData pd) {
|
||||
return managementAgreementMapper.findById(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(PageData pd) {
|
||||
managementAgreementMapper.delete(pd);
|
||||
}
|
||||
}
|
|
@ -33,4 +33,9 @@ public class TrafficSecurityManagementStaffingServiceImpl implements TrafficSecu
|
|||
public PageData findById(PageData pd) {
|
||||
return securityManagementStaffingMapper.findById(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(PageData pd) {
|
||||
securityManagementStaffingMapper.delete(pd);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.service.comprehensive.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.comprehensive.TrafficSecurityViolationRegistrationMapper;
|
||||
import com.zcloud.service.comprehensive.TrafficSecurityViolationRegistrationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class TrafficSecurityViolationRegistrationServiceImpl implements TrafficSecurityViolationRegistrationService {
|
||||
@Autowired
|
||||
private TrafficSecurityViolationRegistrationMapper verificationRegistrationMapper;
|
||||
@Override
|
||||
public void save(PageData pd) {
|
||||
verificationRegistrationMapper.save(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> listForViolationRegistration(Page page) {
|
||||
return verificationRegistrationMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(PageData pd) {
|
||||
verificationRegistrationMapper.delete(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageData findById(PageData pd) {
|
||||
return verificationRegistrationMapper.findById(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(PageData pd) {
|
||||
verificationRegistrationMapper.edit(pd);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.zcloud.service.insure;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息管理-货运挂车
|
||||
*/
|
||||
public interface InsureService {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
package com.zcloud.service.insure.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.insure.InsureMapper;
|
||||
import com.zcloud.service.insure.InsureService;
|
||||
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 InsureServiceImpl implements InsureService {
|
||||
|
||||
@Autowired
|
||||
private InsureMapper insureMapper;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void save(PageData pd) throws Exception {
|
||||
insureMapper.save(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void delete(PageData pd) throws Exception {
|
||||
insureMapper.delete(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit(PageData pd) throws Exception {
|
||||
insureMapper.edit(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception {
|
||||
insureMapper.edit2(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception {
|
||||
return insureMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception {
|
||||
return insureMapper.findById(pd);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.zcloud.service.maintenance;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface MaintenanceService {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
package com.zcloud.service.maintenance.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.maintenance.MaintenanceMapper;
|
||||
import com.zcloud.service.maintenance.MaintenanceService;
|
||||
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 MaintenanceServiceImpl implements MaintenanceService {
|
||||
|
||||
@Autowired
|
||||
private MaintenanceMapper maintenanceMapper;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void save(PageData pd) throws Exception {
|
||||
maintenanceMapper.save(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void delete(PageData pd) throws Exception {
|
||||
maintenanceMapper.delete(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit(PageData pd) throws Exception {
|
||||
maintenanceMapper.edit(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception {
|
||||
maintenanceMapper.edit2(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception {
|
||||
return maintenanceMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception {
|
||||
return maintenanceMapper.findById(pd);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.zcloud.service.operations;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 企业信息管理-货运挂车
|
||||
*/
|
||||
public interface OperationsService {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception;
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,86 @@
|
|||
package com.zcloud.service.operations.impl;
|
||||
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.mapper.datasource.operations.OperationsMapper;
|
||||
import com.zcloud.service.operations.OperationsService;
|
||||
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 OperationsServiceImpl implements OperationsService {
|
||||
|
||||
@Autowired
|
||||
private OperationsMapper operationsMapper;
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void save(PageData pd) throws Exception {
|
||||
operationsMapper.save(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void delete(PageData pd) throws Exception {
|
||||
operationsMapper.delete(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit(PageData pd) throws Exception {
|
||||
operationsMapper.edit(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public void edit2(PageData pd) throws Exception {
|
||||
operationsMapper.edit2(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param page
|
||||
* @throws Exception
|
||||
*/
|
||||
public List<PageData> list(Page page) throws Exception {
|
||||
return operationsMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id获取数据
|
||||
*
|
||||
* @param pd
|
||||
* @throws Exception
|
||||
*/
|
||||
public PageData findById(PageData pd) throws Exception {
|
||||
return operationsMapper.findById(pd);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,215 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.beidou.BeidouMapper">
|
||||
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
bus_traffic_mechanical_beidou
|
||||
</sql>
|
||||
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
BEIDOU_ID,
|
||||
CORPINFO_ID,
|
||||
NUM,
|
||||
VEHICLE,
|
||||
CAR_OWNERS,
|
||||
TELEPHONE,
|
||||
REGISTRANT,
|
||||
NETWORK_ACCESS_COMPANY,
|
||||
PROCESSING_DATE,
|
||||
DUE_DATE,
|
||||
ACTUAL_COLLECTION,
|
||||
ALL_FEES,
|
||||
REMINDER_DAYS,
|
||||
REMINDER_DATE,
|
||||
REMINDER_STATUS,
|
||||
BEIDOUINFO,
|
||||
NOTES,
|
||||
ARCHIVES_TYPE,
|
||||
ISDELETE,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{BEIDOU_ID},
|
||||
#{CORPINFO_ID},
|
||||
#{NUM},
|
||||
#{VEHICLE},
|
||||
#{CAR_OWNERS},
|
||||
#{TELEPHONE},
|
||||
#{REGISTRANT},
|
||||
#{NETWORK_ACCESS_COMPANY},
|
||||
#{PROCESSING_DATE},
|
||||
#{DUE_DATE},
|
||||
#{ACTUAL_COLLECTION},
|
||||
#{ALL_FEES},
|
||||
#{REMINDER_DAYS},
|
||||
#{REMINDER_DATE},
|
||||
#{REMINDER_STATUS},
|
||||
#{BEIDOUINFO},
|
||||
#{NOTES},
|
||||
#{ARCHIVES_TYPE},
|
||||
#{ISDELETE},
|
||||
#{CREATOR},
|
||||
#{CREATORNAME},
|
||||
#{CREATTIME}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETEOR = #{DELETEOR},
|
||||
DELETEORNAME = #{DELETEORNAME},
|
||||
DELETTIME = #{DELETTIME}
|
||||
where
|
||||
BEIDOU_ID = #{BEIDOU_ID}
|
||||
</delete>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
NUM = #{NUM},
|
||||
VEHICLE = #{VEHICLE},
|
||||
CAR_OWNERS = #{CAR_OWNERS},
|
||||
TELEPHONE = #{TELEPHONE},
|
||||
REGISTRANT = #{REGISTRANT},
|
||||
NETWORK_ACCESS_COMPANY = #{NETWORK_ACCESS_COMPANY},
|
||||
PROCESSING_DATE = #{PROCESSING_DATE},
|
||||
DUE_DATE = #{DUE_DATE},
|
||||
ACTUAL_COLLECTION = #{ACTUAL_COLLECTION},
|
||||
ALL_FEES = #{ALL_FEES},
|
||||
REMINDER_DAYS = #{REMINDER_DAYS},
|
||||
REMINDER_DATE = #{REMINDER_DATE},
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
BEIDOUINFO = #{BEIDOUINFO},
|
||||
NOTES = #{NOTES},
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
BEIDOU_ID = #{BEIDOU_ID}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit2" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
<if test="REMINDER_STATUS != null">
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
</if>
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
BEIDOU_ID = #{BEIDOU_ID}
|
||||
</update>
|
||||
|
||||
<!-- 通过ID获取数据 -->
|
||||
<select id="findById" parameterType="pd" resultType="pd">
|
||||
select
|
||||
f.BEIDOU_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.NUM,
|
||||
f.VEHICLE,
|
||||
f.CAR_OWNERS,
|
||||
f.TELEPHONE,
|
||||
f.REGISTRANT,
|
||||
f.NETWORK_ACCESS_COMPANY,
|
||||
f.PROCESSING_DATE,
|
||||
f.DUE_DATE,
|
||||
f.ACTUAL_COLLECTION,
|
||||
f.ALL_FEES,
|
||||
f.REMINDER_DAYS,
|
||||
f.REMINDER_DATE,
|
||||
f.REMINDER_STATUS,
|
||||
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 128 and t.FOREIGN_KEY = f.BEIDOU_ID limit 1) as BEIDOUINFO,
|
||||
f.NOTES,
|
||||
f.ARCHIVES_TYPE,
|
||||
f.ISDELETE,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATTIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME,
|
||||
f.DELETEOR,
|
||||
f.DELETEORNAME,
|
||||
f.DELETTIME
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
where
|
||||
f.BEIDOU_ID = #{BEIDOU_ID}
|
||||
</select>
|
||||
|
||||
<!-- 列表
|
||||
BASICINFO_LICENSE_PLATE 车牌号
|
||||
CAR_OWNERS 车主业户
|
||||
REGISTRANT 登记人
|
||||
DUE_DATE 到期日期
|
||||
VEHICLE_MODEL 营运车型
|
||||
REMINDER_STATUS 提醒状态
|
||||
|
||||
-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.*,
|
||||
case when f.DUE_DATE < NOW() then 0 else 1 end as DUE_DATE_TYPE,
|
||||
v1.PLATE_NUMBER
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
INNER JOIN v_traffic v1 on f.VEHICLE=v1.ID
|
||||
where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
<if test="pd.BASICINFO_LICENSE_PLATE != null and pd.BASICINFO_LICENSE_PLATE != ''">
|
||||
and f.BASICINFO_LICENSE_PLATE LIKE CONCAT(CONCAT('%', #{pd.BASICINFO_LICENSE_PLATE}),'%')
|
||||
</if>
|
||||
<if test="pd.CAR_OWNERS != null and pd.CAR_OWNERS != ''">
|
||||
and f.CAR_OWNERS LIKE CONCAT(CONCAT('%', #{pd.CAR_OWNERS}),'%')
|
||||
</if>
|
||||
<if test="pd.REGISTRANT != null and pd.REGISTRANT != ''">
|
||||
and f.REGISTRANT LIKE CONCAT(CONCAT('%', #{pd.REGISTRANT}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE != null and pd.DUE_DATE != ''">
|
||||
and f.DUE_DATE = #{pd.DUE_DATE}
|
||||
</if>
|
||||
<if test="pd.VEHICLE_MODEL != null and pd.VEHICLE_MODEL != ''">
|
||||
and f.VEHICLE_MODEL LIKE CONCAT(CONCAT('%', #{pd.VEHICLE_MODEL}),'%')
|
||||
</if>
|
||||
<if test="pd.REMINDER_STATUS != null and pd.REMINDER_STATUS != ''">
|
||||
and f.REMINDER_STATUS = #{pd.REMINDER_STATUS}
|
||||
</if>
|
||||
<if test="pd.PLATE_NUMBER != null and pd.PLATE_NUMBER != ''">
|
||||
and v1.PLATE_NUMBER LIKE CONCAT(CONCAT('%', #{pd.PLATE_NUMBER}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE_TYPE != null and pd.DUE_DATE_TYPE != ''">
|
||||
and case when f.DUE_DATE < NOW() then 0 else 1 end = #{pd.DUE_DATE_TYPE}
|
||||
</if>
|
||||
ORDER BY f.CREATTIME DESC
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
|
@ -101,6 +101,18 @@
|
|||
SAFETYASSESSMENT_ID = #{SAFETYASSESSMENT_ID}
|
||||
</update>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETOR = #{DELETOR},
|
||||
DELETETIME = #{DELETETIME}
|
||||
where
|
||||
SAFETYASSESSMENT_ID = #{SAFETYASSESSMENT_ID}
|
||||
</delete>
|
||||
|
||||
<!--列表-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
|
|
|
@ -101,6 +101,18 @@
|
|||
SAFETYPRODUCTION_ID = #{SAFETYPRODUCTION_ID}
|
||||
</update>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETOR = #{DELETOR},
|
||||
DELETETIME = #{DELETETIME}
|
||||
where
|
||||
SAFETYPRODUCTION_ID = #{SAFETYPRODUCTION_ID}
|
||||
</delete>
|
||||
|
||||
<!--列表-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
|
|
|
@ -0,0 +1,359 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.comprehensive.TrafficSecurityAccidentInvestigationMapper">
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
BUS_TRAFFIC_ACCIDENT_INVESTIGATION
|
||||
</sql>
|
||||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
f.ACCIDENTINVESTIGATION_ID,
|
||||
f.ACCIDENTDATE,
|
||||
f.ACCIDENTLOCATION,
|
||||
f.INJUREDPART,
|
||||
f.CERTIFICATIONSTATUS,
|
||||
f.EDUCATIONSITUATION,
|
||||
f.ACCIDENTDESCRIPTION,
|
||||
f.ACCIDENTNATURE,
|
||||
f.USER_ID,
|
||||
f.CONFIRMATIONTIME,
|
||||
f.ACCIDENTANALYSIS,
|
||||
f.PUNISHMENTOPINION,
|
||||
f.RESPONSIBLEPERSON,
|
||||
f.SECONDARYRESPONSIBLEPERSON,
|
||||
f.PREVENTIVEMEASURES,
|
||||
f.COMPLETIONSTATUS,
|
||||
f.RECTIFICATIONRESPONSIBLEPERSON,
|
||||
f.RECTIFICATIONTIME,
|
||||
f.SUPERVISOROPINION,
|
||||
f.SUPERVISORLEADER,
|
||||
f.SUPERVISORCONFIRMATIONTIME,
|
||||
f.SAFETYSUPERVISIONOPINION,
|
||||
f.SAFETYSUPERVISIONDEPARTMENT,
|
||||
f.SAFETYSUPERVISIONCONFIRMATIONTIME,
|
||||
f.INSPECTOR,
|
||||
f.INSPECTORCONFIRMATIONTIME,
|
||||
f.CERTIFICATIONNUMBER,
|
||||
f.WORKINJURYIDENTIFICATIONLEVEL,
|
||||
f.ACCIDENTRECORDPERSON,
|
||||
f.REGISTRATIONDATE,
|
||||
f.ACCIDENTREPORTRECORD,
|
||||
f.ACCIDENTANALYSISRECORD,
|
||||
f.ACCIDENTNUMBER,
|
||||
f.ISDELETE,
|
||||
f.DELETOR,
|
||||
f.DELETORNAME,
|
||||
f.DELETETIME,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATETIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME,
|
||||
f.AGE,
|
||||
f.EDUCATIONALLEVEL,
|
||||
f.DEPARTMENT,
|
||||
f.JOBTYPE,
|
||||
f.PARTY,
|
||||
f.INCIDENTNUMBER,
|
||||
f.ENTRYDATE
|
||||
</sql>
|
||||
|
||||
<!-- 字段用于新增 -->
|
||||
<sql id="Field2">
|
||||
ACCIDENTINVESTIGATION_ID,
|
||||
ACCIDENTDATE,
|
||||
ACCIDENTLOCATION,
|
||||
INJUREDPART,
|
||||
CERTIFICATIONSTATUS,
|
||||
EDUCATIONSITUATION,
|
||||
ACCIDENTDESCRIPTION,
|
||||
ACCIDENTNATURE,
|
||||
USER_ID,
|
||||
CONFIRMATIONTIME,
|
||||
ACCIDENTANALYSIS,
|
||||
PUNISHMENTOPINION,
|
||||
RESPONSIBLEPERSON,
|
||||
SECONDARYRESPONSIBLEPERSON,
|
||||
PREVENTIVEMEASURES,
|
||||
COMPLETIONSTATUS,
|
||||
RECTIFICATIONRESPONSIBLEPERSON,
|
||||
RECTIFICATIONTIME,
|
||||
SUPERVISOROPINION,
|
||||
SUPERVISORLEADER,
|
||||
SUPERVISORCONFIRMATIONTIME,
|
||||
SAFETYSUPERVISIONOPINION,
|
||||
SAFETYSUPERVISIONDEPARTMENT,
|
||||
SAFETYSUPERVISIONCONFIRMATIONTIME,
|
||||
INSPECTOR,
|
||||
INSPECTORCONFIRMATIONTIME,
|
||||
CERTIFICATIONNUMBER,
|
||||
WORKINJURYIDENTIFICATIONLEVEL,
|
||||
ACCIDENTRECORDPERSON,
|
||||
REGISTRATIONDATE,
|
||||
ACCIDENTREPORTRECORD,
|
||||
ACCIDENTANALYSISRECORD,
|
||||
ACCIDENTNUMBER,
|
||||
ISDELETE,
|
||||
DELETOR,
|
||||
DELETORNAME,
|
||||
DELETETIME,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATETIME,
|
||||
OPERATOR,
|
||||
OPERATORNAME,
|
||||
OPERATTIME,
|
||||
AGE,
|
||||
EDUCATIONALLEVEL,
|
||||
DEPARTMENT,
|
||||
JOBTYPE,
|
||||
PARTY,
|
||||
INCIDENTNUMBER,
|
||||
ENTRYDATE
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{ACCIDENTINVESTIGATION_ID},
|
||||
#{ACCIDENTDATE},
|
||||
#{ACCIDENTLOCATION},
|
||||
#{INJUREDPART},
|
||||
#{CERTIFICATIONSTATUS},
|
||||
#{EDUCATIONSITUATION},
|
||||
#{ACCIDENTDESCRIPTION},
|
||||
#{ACCIDENTNATURE},
|
||||
#{USER_ID},
|
||||
#{CONFIRMATIONTIME},
|
||||
#{ACCIDENTANALYSIS},
|
||||
#{PUNISHMENTOPINION},
|
||||
#{RESPONSIBLEPERSON},
|
||||
#{SECONDARYRESPONSIBLEPERSON},
|
||||
#{PREVENTIVEMEASURES},
|
||||
#{COMPLETIONSTATUS},
|
||||
#{RECTIFICATIONRESPONSIBLEPERSON},
|
||||
#{RECTIFICATIONTIME},
|
||||
#{SUPERVISOROPINION},
|
||||
#{SUPERVISORLEADER},
|
||||
#{SUPERVISORCONFIRMATIONTIME},
|
||||
#{SAFETYSUPERVISIONOPINION},
|
||||
#{SAFETYSUPERVISIONDEPARTMENT},
|
||||
#{SAFETYSUPERVISIONCONFIRMATIONTIME},
|
||||
#{INSPECTOR},
|
||||
#{INSPECTORCONFIRMATIONTIME},
|
||||
#{CERTIFICATIONNUMBER},
|
||||
#{WORKINJURYIDENTIFICATIONLEVEL},
|
||||
#{ACCIDENTRECORDPERSON},
|
||||
#{REGISTRATIONDATE},
|
||||
#{ACCIDENTREPORTRECORD},
|
||||
#{ACCIDENTANALYSISRECORD},
|
||||
#{ACCIDENTNUMBER},
|
||||
#{ISDELETE},
|
||||
#{DELETOR},
|
||||
#{DELETORNAME},
|
||||
#{DELETETIME},
|
||||
#{CREATOR},
|
||||
#{CREATORNAME},
|
||||
#{CREATETIME},
|
||||
#{OPERATOR},
|
||||
#{OPERATORNAME},
|
||||
#{OPERATTIME},
|
||||
#{AGE},
|
||||
#{EDUCATIONALLEVEL},
|
||||
#{DEPARTMENT},
|
||||
#{JOBTYPE},
|
||||
#{PARTY},
|
||||
#{INCIDENTNUMBER},
|
||||
#{ENTRYDATE}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field2"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
<set>
|
||||
<if test="ACCIDENTDATE != null and ACCIDENTDATE != ''">
|
||||
ACCIDENTDATE = #{ACCIDENTDATE},
|
||||
</if>
|
||||
<if test="ACCIDENTLOCATION != null and ACCIDENTLOCATION != ''">
|
||||
ACCIDENTLOCATION = #{ACCIDENTLOCATION},
|
||||
</if>
|
||||
<if test="INJUREDPART != null and INJUREDPART != ''">
|
||||
INJUREDPART = #{INJUREDPART},
|
||||
</if>
|
||||
<if test="CERTIFICATIONSTATUS != null and CERTIFICATIONSTATUS != ''">
|
||||
CERTIFICATIONSTATUS = #{CERTIFICATIONSTATUS},
|
||||
</if>
|
||||
<if test="EDUCATIONSITUATION != null and EDUCATIONSITUATION != ''">
|
||||
EDUCATIONSITUATION = #{EDUCATIONSITUATION},
|
||||
</if>
|
||||
<if test="ACCIDENTDESCRIPTION != null and ACCIDENTDESCRIPTION != ''">
|
||||
ACCIDENTDESCRIPTION = #{ACCIDENTDESCRIPTION},
|
||||
</if>
|
||||
<if test="ACCIDENTNATURE != null and ACCIDENTNATURE != ''">
|
||||
ACCIDENTNATURE = #{ACCIDENTNATURE},
|
||||
</if>
|
||||
<if test="USER_ID != null and USER_ID != ''">
|
||||
USER_ID = #{USER_ID},
|
||||
</if>
|
||||
<if test="CONFIRMATIONTIME != null and CONFIRMATIONTIME != ''">
|
||||
CONFIRMATIONTIME = #{CONFIRMATIONTIME},
|
||||
</if>
|
||||
<if test="ACCIDENTANALYSIS != null and ACCIDENTANALYSIS != ''">
|
||||
ACCIDENTANALYSIS = #{ACCIDENTANALYSIS},
|
||||
</if>
|
||||
<if test="PUNISHMENTOPINION != null and PUNISHMENTOPINION != ''">
|
||||
PUNISHMENTOPINION = #{PUNISHMENTOPINION},
|
||||
</if>
|
||||
<if test="RESPONSIBLEPERSON != null and RESPONSIBLEPERSON != ''">
|
||||
RESPONSIBLEPERSON = #{RESPONSIBLEPERSON},
|
||||
</if>
|
||||
<if test="SECONDARYRESPONSIBLEPERSON != null and SECONDARYRESPONSIBLEPERSON != ''">
|
||||
SECONDARYRESPONSIBLEPERSON = #{SECONDARYRESPONSIBLEPERSON},
|
||||
</if>
|
||||
<if test="PREVENTIVEMEASURES != null and PREVENTIVEMEASURES != ''">
|
||||
PREVENTIVEMEASURES = #{PREVENTIVEMEASURES},
|
||||
</if>
|
||||
<if test="COMPLETIONSTATUS != null and COMPLETIONSTATUS != ''">
|
||||
COMPLETIONSTATUS = #{COMPLETIONSTATUS},
|
||||
</if>
|
||||
<if test="RECTIFICATIONRESPONSIBLEPERSON != null and RECTIFICATIONRESPONSIBLEPERSON != ''">
|
||||
RECTIFICATIONRESPONSIBLEPERSON = #{RECTIFICATIONRESPONSIBLEPERSON},
|
||||
</if>
|
||||
<if test="RECTIFICATIONTIME != null and RECTIFICATIONTIME != ''">
|
||||
RECTIFICATIONTIME = #{RECTIFICATIONTIME},
|
||||
</if>
|
||||
<if test="SUPERVISOROPINION != null and SUPERVISOROPINION != ''">
|
||||
SUPERVISOROPINION = #{SUPERVISOROPINION},
|
||||
</if>
|
||||
<if test="SUPERVISORLEADER != null and SUPERVISORLEADER != ''">
|
||||
SUPERVISORLEADER = #{SUPERVISORLEADER},
|
||||
</if>
|
||||
<if test="SUPERVISORCONFIRMATIONTIME != null and SUPERVISORCONFIRMATIONTIME != ''">
|
||||
SUPERVISORCONFIRMATIONTIME = #{SUPERVISORCONFIRMATIONTIME},
|
||||
</if>
|
||||
<if test="SAFETYSUPERVISIONOPINION != null and SAFETYSUPERVISIONOPINION != ''">
|
||||
SAFETYSUPERVISIONOPINION = #{SAFETYSUPERVISIONOPINION},
|
||||
</if>
|
||||
<if test="SAFETYSUPERVISIONDEPARTMENT != null and SAFETYSUPERVISIONDEPARTMENT != ''">
|
||||
SAFETYSUPERVISIONDEPARTMENT = #{SAFETYSUPERVISIONDEPARTMENT},
|
||||
</if>
|
||||
<if test="SAFETYSUPERVISIONCONFIRMATIONTIME != null and SAFETYSUPERVISIONCONFIRMATIONTIME != ''">
|
||||
SAFETYSUPERVISIONCONFIRMATIONTIME = #{SAFETYSUPERVISIONCONFIRMATIONTIME},
|
||||
</if>
|
||||
<if test="INSPECTOR != null and INSPECTOR != ''">
|
||||
INSPECTOR = #{INSPECTOR},
|
||||
</if>
|
||||
<if test="INSPECTORCONFIRMATIONTIME != null and INSPECTORCONFIRMATIONTIME != ''">
|
||||
INSPECTORCONFIRMATIONTIME = #{INSPECTORCONFIRMATIONTIME},
|
||||
</if>
|
||||
<if test="CERTIFICATIONNUMBER != null and CERTIFICATIONNUMBER != ''">
|
||||
CERTIFICATIONNUMBER = #{CERTIFICATIONNUMBER},
|
||||
</if>
|
||||
<if test="WORKINJURYIDENTIFICATIONLEVEL != null and WORKINJURYIDENTIFICATIONLEVEL != ''">
|
||||
WORKINJURYIDENTIFICATIONLEVEL = #{WORKINJURYIDENTIFICATIONLEVEL},
|
||||
</if>
|
||||
<if test="ACCIDENTRECORDPERSON != null and ACCIDENTRECORDPERSON != ''">
|
||||
ACCIDENTRECORDPERSON = #{ACCIDENTRECORDPERSON},
|
||||
</if>
|
||||
<if test="REGISTRATIONDATE != null and REGISTRATIONDATE != ''">
|
||||
REGISTRATIONDATE = #{REGISTRATIONDATE},
|
||||
</if>
|
||||
<if test="ACCIDENTREPORTRECORD != null and ACCIDENTREPORTRECORD != ''">
|
||||
ACCIDENTREPORTRECORD = #{ACCIDENTREPORTRECORD},
|
||||
</if>
|
||||
<if test="ACCIDENTANALYSISRECORD != null and ACCIDENTANALYSISRECORD != ''">
|
||||
ACCIDENTANALYSISRECORD = #{ACCIDENTANALYSISRECORD},
|
||||
</if>
|
||||
<if test="ACCIDENTNUMBER != null and ACCIDENTNUMBER != ''">
|
||||
ACCIDENTNUMBER = #{ACCIDENTNUMBER},
|
||||
</if>
|
||||
<if test="OPERATOR != null and OPERATOR != ''">
|
||||
OPERATOR = #{OPERATOR},
|
||||
</if>
|
||||
<if test="OPERATORNAME != null and OPERATORNAME != ''">
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
</if>
|
||||
<if test="OPERATTIME != null and OPERATTIME != ''">
|
||||
OPERATTIME = #{OPERATTIME},
|
||||
</if>
|
||||
<if test="AGE != null and AGE != ''">
|
||||
AGE = #{AGE},
|
||||
</if>
|
||||
<if test="EDUCATIONALLEVEL != null and EDUCATIONALLEVEL != ''">
|
||||
EDUCATIONALLEVEL = #{EDUCATIONALLEVEL},
|
||||
</if>
|
||||
<if test="DEPARTMENT != null and DEPARTMENT != ''">
|
||||
DEPARTMENT = #{DEPARTMENT},
|
||||
</if>
|
||||
<if test="JOBTYPE != null and JOBTYPE != ''">
|
||||
JOBTYPE = #{JOBTYPE},
|
||||
</if>
|
||||
<if test="PARTY != null and PARTY != ''">
|
||||
PARTY = #{PARTY},
|
||||
</if>
|
||||
<if test="ENTRYDATE != null and ENTRYDATE != ''">
|
||||
ENTRYDATE = #{ENTRYDATE}
|
||||
</if>
|
||||
</set>
|
||||
where ACCIDENTINVESTIGATION_ID = #{ACCIDENTINVESTIGATION_ID}
|
||||
</update>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETOR = #{DELETOR},
|
||||
DELETETIME = #{DELETETIME}
|
||||
where
|
||||
ACCIDENTINVESTIGATION_ID = #{ACCIDENTINVESTIGATION_ID}
|
||||
</delete>
|
||||
|
||||
<!--列表-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.*,
|
||||
i.CORP_NAME,
|
||||
u.NAME,
|
||||
u.PHONE
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join bus_corp_info i on f.DEPARTMENT = i.CORPINFO_ID
|
||||
left join sys_user u on f.USER_ID = u.USER_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.USER_ID != null and pd.USER_ID != ''">
|
||||
and f.USER_ID = #{pd.USER_ID}
|
||||
</if>
|
||||
<if test="pd.PENALTYTIME != null and pd.PENALTYTIME != ''"><!-- 检索-处罚时间 -->
|
||||
and f.PENALTYTIME = #{pd.PENALTYTIME}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
where
|
||||
f.ACCIDENTINVESTIGATION_ID = #{ACCIDENTINVESTIGATION_ID}
|
||||
</select>
|
||||
</mapper>
|
|
@ -0,0 +1,146 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.comprehensive.TrafficSecurityManagementAgreementMapper">
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
BUS_TRAFFIC_MANAGEMENT_AGREEMENT
|
||||
</sql>
|
||||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
f.MANAGEMENTAGREEMENT_ID,
|
||||
f.MANAGEMENTAGREEMENTNAME,
|
||||
f.COMPLETIONSTATUS,
|
||||
f.VALIDSTATUS,
|
||||
f.OPERATINGCOMPANY,
|
||||
f.EXPIRYDATE,
|
||||
f.OPERATINGTYPE,
|
||||
f.ATTACHMENT_ROUTE,
|
||||
f.ISDELETE,
|
||||
f.DELETOR,
|
||||
f.DELETORNAME,
|
||||
f.DELETETIME,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATETIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段用于新增 -->
|
||||
<sql id="Field2">
|
||||
MANAGEMENTAGREEMENT_ID,
|
||||
MANAGEMENTAGREEMENTNAME,
|
||||
COMPLETIONSTATUS,
|
||||
VALIDSTATUS,
|
||||
OPERATINGCOMPANY,
|
||||
EXPIRYDATE,
|
||||
OPERATINGTYPE,
|
||||
ATTACHMENT_ROUTE,
|
||||
ISDELETE,
|
||||
DELETOR,
|
||||
DELETORNAME,
|
||||
DELETETIME,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATETIME,
|
||||
OPERATOR,
|
||||
OPERATORNAME,
|
||||
OPERATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{MANAGEMENTAGREEMENT_ID},
|
||||
#{MANAGEMENTAGREEMENTNAME},
|
||||
#{COMPLETIONSTATUS},
|
||||
#{VALIDSTATUS},
|
||||
#{OPERATINGCOMPANY},
|
||||
#{EXPIRYDATE},
|
||||
#{OPERATINGTYPE},
|
||||
#{ATTACHMENT_ROUTE},
|
||||
#{ISDELETE},
|
||||
#{DELETOR},
|
||||
#{DELETORNAME},
|
||||
#{DELETETIME},
|
||||
#{CREATOR},
|
||||
#{CREATORNAME},
|
||||
#{CREATETIME},
|
||||
#{OPERATOR},
|
||||
#{OPERATORNAME},
|
||||
#{OPERATTIME}
|
||||
</sql>
|
||||
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field2"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME},
|
||||
EXPIRYDATE = #{EXPIRYDATE},
|
||||
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
||||
where
|
||||
MANAGEMENTAGREEMENT_ID = #{MANAGEMENTAGREEMENT_ID}
|
||||
</update>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETOR = #{DELETOR},
|
||||
DELETETIME = #{DELETETIME}
|
||||
where
|
||||
MANAGEMENTAGREEMENT_ID = #{MANAGEMENTAGREEMENT_ID}
|
||||
</delete>
|
||||
|
||||
<!--列表-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.*,
|
||||
i.CORP_NAME
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join bus_corp_info i on f.OPERATINGCOMPANY = i.CORPINFO_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.MANAGEMENTAGREEMENTNAME != null and pd.MANAGEMENTAGREEMENTNAME != ''"><!-- 关键词检索-制度名称 -->
|
||||
and f.MANAGEMENTAGREEMENTNAME LIKE CONCAT('%', #{pd.MANAGEMENTAGREEMENTNAME}, '%')
|
||||
</if>
|
||||
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''"><!-- 关键词检索-完成状态 -->
|
||||
and f.COMPLETIONSTATUS = #{pd.COMPLETIONSTATUS}
|
||||
</if>
|
||||
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
||||
and f.VALIDSTATUS = #{pd.VALIDSTATUS}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
where
|
||||
f.MANAGEMENTAGREEMENT_ID = #{MANAGEMENTAGREEMENT_ID}
|
||||
</select>
|
||||
</mapper>
|
|
@ -103,6 +103,18 @@
|
|||
STAFFING_ID = #{STAFFING_ID}
|
||||
</update>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETOR = #{DELETOR},
|
||||
DELETETIME = #{DELETETIME}
|
||||
where
|
||||
STAFFING_ID = #{STAFFING_ID}
|
||||
</delete>
|
||||
|
||||
<!--列表-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
|
|
|
@ -0,0 +1,158 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.comprehensive.TrafficSecurityViolationRegistrationMapper">
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
BUS_TRAFFIC_VIOLATION_REGISTRATION
|
||||
</sql>
|
||||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
f.REGISTRATION_ID,
|
||||
f.TRANSPORTVEHICLE,
|
||||
f.USER_ID,
|
||||
f.PENALTYMETHOD,
|
||||
f.PENALTYTIME,
|
||||
f.PENALTYEVENT,
|
||||
f.PENALTYMEASURES,
|
||||
f.PENALTYREGISTRANT,
|
||||
f.TRANSPORTATIONCOMPANY,
|
||||
f.ISDELETE,
|
||||
f.DELETOR,
|
||||
f.DELETORNAME,
|
||||
f.DELETETIME,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATETIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME,
|
||||
f.ATTACHMENT_ROUTE
|
||||
</sql>
|
||||
|
||||
<!-- 字段用于新增 -->
|
||||
<sql id="Field2">
|
||||
REGISTRATION_ID,
|
||||
TRANSPORTVEHICLE,
|
||||
USER_ID,
|
||||
PENALTYMETHOD,
|
||||
PENALTYTIME,
|
||||
PENALTYEVENT,
|
||||
PENALTYMEASURES,
|
||||
PENALTYREGISTRANT,
|
||||
TRANSPORTATIONCOMPANY,
|
||||
ISDELETE,
|
||||
DELETOR,
|
||||
DELETORNAME,
|
||||
DELETETIME,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATETIME,
|
||||
OPERATOR,
|
||||
OPERATORNAME,
|
||||
OPERATTIME,
|
||||
ATTACHMENT_ROUTE
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{REGISTRATION_ID},
|
||||
#{TRANSPORTVEHICLE},
|
||||
#{USER_ID},
|
||||
#{PENALTYMETHOD},
|
||||
#{PENALTYTIME},
|
||||
#{PENALTYEVENT},
|
||||
#{PENALTYMEASURES},
|
||||
#{PENALTYREGISTRANT},
|
||||
#{TRANSPORTATIONCOMPANY},
|
||||
#{ISDELETE},
|
||||
#{DELETOR},
|
||||
#{DELETORNAME},
|
||||
#{DELETETIME},
|
||||
#{CREATOR},
|
||||
#{CREATORNAME},
|
||||
#{CREATETIME},
|
||||
#{OPERATOR},
|
||||
#{OPERATORNAME},
|
||||
#{OPERATTIME},
|
||||
#{ATTACHMENT_ROUTE}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field2"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
USER_ID = #{USER_ID},
|
||||
TRANSPORTVEHICLE = #{TRANSPORTVEHICLE},
|
||||
PENALTYMETHOD = #{PENALTYMETHOD},
|
||||
PENALTYTIME = #{PENALTYTIME},
|
||||
PENALTYEVENT = #{PENALTYEVENT},
|
||||
PENALTYMEASURES = #{PENALTYMEASURES},
|
||||
PENALTYREGISTRANT = #{PENALTYREGISTRANT},
|
||||
ATTACHMENT_ROUTE = #{ATTACHMENT_ROUTE},
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
REGISTRATION_ID = #{REGISTRATION_ID}
|
||||
</update>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETOR = #{DELETOR},
|
||||
DELETETIME = #{DELETETIME}
|
||||
where
|
||||
REGISTRATION_ID = #{REGISTRATION_ID}
|
||||
</delete>
|
||||
|
||||
<!--列表-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.*,
|
||||
i.CORP_NAME,
|
||||
u.NAME,
|
||||
u.PHONE
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join bus_corp_info i on f.TRANSPORTATIONCOMPANY = i.CORPINFO_ID
|
||||
left join sys_user u on f.USER_ID = u.USER_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.USER_ID != null and pd.USER_ID != ''">
|
||||
and f.USER_ID = #{pd.USER_ID}
|
||||
</if>
|
||||
<if test="pd.PENALTYTIME != null and pd.PENALTYTIME != ''"><!-- 检索-处罚时间 -->
|
||||
and f.PENALTYTIME = #{pd.PENALTYTIME}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
where
|
||||
f.REGISTRATION_ID = #{REGISTRATION_ID}
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -207,7 +207,7 @@ CREATTIME
|
|||
and f.REMINDER_STATUS = #{pd.REMINDER_STATUS}
|
||||
</if>
|
||||
<if test="pd.DUE_DATE_TYPE != null and pd.DUE_DATE_TYPE != ''">
|
||||
and case when f.DUE_DATE < NOW() then 1 else 0 end = #{pd.DUE_DATE_TYPE}
|
||||
and case when f.DUE_DATE < NOW() then 0 else 1 end = #{pd.DUE_DATE_TYPE}
|
||||
</if>
|
||||
ORDER BY f.CREATTIME DESC
|
||||
</select>
|
||||
|
|
|
@ -0,0 +1,236 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.insure.InsureMapper">
|
||||
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
bus_traffic_mechanical_insure
|
||||
</sql>
|
||||
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
INSURE_ID,
|
||||
CORPINFO_ID,
|
||||
NUM,
|
||||
VEHICLE_MODEL,
|
||||
VEHICLE,
|
||||
CAR_OWNERS,
|
||||
TELEPHONE,
|
||||
REGISTRANT,
|
||||
INSURANCE_COMPANY,
|
||||
INSURANCE_COVERAGE,
|
||||
PROCESSING_DATE,
|
||||
EFFECTIVE_DATE,
|
||||
DUE_DATE,
|
||||
ALL_FEES,
|
||||
ACTUAL_COLLECTION,
|
||||
REMINDER_DAYS,
|
||||
REMINDER_DATE,
|
||||
REMINDER_STATUS,
|
||||
ATTACHMENT_UPLOAD,
|
||||
INSUREINFO,
|
||||
NOTES,
|
||||
ARCHIVES_TYPE,
|
||||
ISDELETE,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{INSURE_ID},
|
||||
#{CORPINFO_ID},
|
||||
#{NUM},
|
||||
#{VEHICLE_MODEL},
|
||||
#{VEHICLE},
|
||||
#{CAR_OWNERS},
|
||||
#{TELEPHONE},
|
||||
#{REGISTRANT},
|
||||
#{INSURANCE_COMPANY},
|
||||
#{INSURANCE_COVERAGE},
|
||||
#{PROCESSING_DATE},
|
||||
#{EFFECTIVE_DATE},
|
||||
#{DUE_DATE},
|
||||
#{ALL_FEES},
|
||||
#{ACTUAL_COLLECTION},
|
||||
#{REMINDER_DAYS},
|
||||
#{REMINDER_DATE},
|
||||
#{REMINDER_STATUS},
|
||||
#{ATTACHMENT_UPLOAD},
|
||||
#{INSUREINFO},
|
||||
#{NOTES},
|
||||
#{ARCHIVES_TYPE},
|
||||
#{ISDELETE},
|
||||
#{CREATOR},
|
||||
#{CREATORNAME},
|
||||
#{CREATTIME}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETEOR = #{DELETEOR},
|
||||
DELETEORNAME = #{DELETEORNAME},
|
||||
DELETTIME = #{DELETTIME}
|
||||
where
|
||||
INSURE_ID = #{INSURE_ID}
|
||||
</delete>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
NUM = #{NUM},
|
||||
VEHICLE_MODEL = #{VEHICLE_MODEL},
|
||||
VEHICLE = #{VEHICLE},
|
||||
CAR_OWNERS = #{CAR_OWNERS},
|
||||
TELEPHONE = #{TELEPHONE},
|
||||
REGISTRANT = #{REGISTRANT},
|
||||
INSURANCE_COMPANY = #{INSURANCE_COMPANY},
|
||||
INSURANCE_COVERAGE = #{INSURANCE_COVERAGE},
|
||||
PROCESSING_DATE = #{PROCESSING_DATE},
|
||||
EFFECTIVE_DATE = #{EFFECTIVE_DATE},
|
||||
DUE_DATE = #{DUE_DATE},
|
||||
ALL_FEES = #{ALL_FEES},
|
||||
ACTUAL_COLLECTION = #{ACTUAL_COLLECTION},
|
||||
REMINDER_DAYS = #{REMINDER_DAYS},
|
||||
REMINDER_DATE = #{REMINDER_DATE},
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
ATTACHMENT_UPLOAD = #{ATTACHMENT_UPLOAD},
|
||||
INSUREINFO = #{INSUREINFO},
|
||||
NOTES = #{NOTES},
|
||||
ARCHIVES_TYPE = #{ARCHIVES_TYPE},
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
INSURE_ID = #{INSURE_ID}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit2" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
<if test="REMINDER_STATUS != null">
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
</if>
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
INSURE_ID = #{INSURE_ID}
|
||||
</update>
|
||||
|
||||
<!-- 通过ID获取数据 -->
|
||||
<select id="findById" parameterType="pd" resultType="pd">
|
||||
select
|
||||
f.INSURE_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.NUM,
|
||||
f.VEHICLE_MODEL,
|
||||
f.VEHICLE,
|
||||
f.CAR_OWNERS,
|
||||
f.TELEPHONE,
|
||||
f.REGISTRANT,
|
||||
f.INSURANCE_COMPANY,
|
||||
f.INSURANCE_COVERAGE,
|
||||
f.PROCESSING_DATE,
|
||||
f.EFFECTIVE_DATE,
|
||||
f.DUE_DATE,
|
||||
f.ALL_FEES,
|
||||
f.ACTUAL_COLLECTION,
|
||||
f.REMINDER_DAYS,
|
||||
f.REMINDER_DATE,
|
||||
f.REMINDER_STATUS,
|
||||
f.ATTACHMENT_UPLOAD,
|
||||
f.INSUREINFO,
|
||||
f.NOTES,
|
||||
f.ARCHIVES_TYPE,
|
||||
f.ISDELETE,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATTIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME,
|
||||
f.DELETEOR,
|
||||
f.DELETEORNAME,
|
||||
f.DELETTIME
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
where
|
||||
f.INSURE_ID = #{INSURE_ID}
|
||||
</select>
|
||||
|
||||
<!-- 列表
|
||||
BASICINFO_LICENSE_PLATE 车牌号
|
||||
CAR_OWNERS 车主业户
|
||||
REGISTRANT 登记人
|
||||
DUE_DATE 到期日期
|
||||
VEHICLE_MODEL 营运车型
|
||||
REMINDER_STATUS 提醒状态
|
||||
|
||||
-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.*,
|
||||
DATE_FORMAT(f.PROCESSING_DATE,'%Y') as PROCESSING_DATE_YEAR,
|
||||
case when f.DUE_DATE < NOW() then 0 else 1 end as DUE_DATE_TYPE,
|
||||
v1.PLATE_NUMBER
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
INNER JOIN v_traffic v1 on f.VEHICLE=v1.ID
|
||||
where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
<if test="pd.BASICINFO_LICENSE_PLATE != null and pd.BASICINFO_LICENSE_PLATE != ''">
|
||||
and f.BASICINFO_LICENSE_PLATE LIKE CONCAT(CONCAT('%', #{pd.BASICINFO_LICENSE_PLATE}),'%')
|
||||
</if>
|
||||
<if test="pd.CAR_OWNERS != null and pd.CAR_OWNERS != ''">
|
||||
and f.CAR_OWNERS LIKE CONCAT(CONCAT('%', #{pd.CAR_OWNERS}),'%')
|
||||
</if>
|
||||
<if test="pd.REGISTRANT != null and pd.REGISTRANT != ''">
|
||||
and f.REGISTRANT LIKE CONCAT(CONCAT('%', #{pd.REGISTRANT}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE != null and pd.DUE_DATE != ''">
|
||||
and f.DUE_DATE = #{pd.DUE_DATE}
|
||||
</if>
|
||||
<if test="pd.VEHICLE_MODEL != null and pd.VEHICLE_MODEL != ''">
|
||||
and f.VEHICLE_MODEL LIKE CONCAT(CONCAT('%', #{pd.VEHICLE_MODEL}),'%')
|
||||
</if>
|
||||
<if test="pd.REMINDER_STATUS != null and pd.REMINDER_STATUS != ''">
|
||||
and f.REMINDER_STATUS = #{pd.REMINDER_STATUS}
|
||||
</if>
|
||||
<if test="pd.PROCESSING_DATE_YEAR != null and pd.PROCESSING_DATE_YEAR != ''">
|
||||
and DATE_FORMAT(f.PROCESSING_DATE,'%Y') = #{pd.PROCESSING_DATE_YEAR}
|
||||
</if>
|
||||
<if test="pd.PLATE_NUMBER != null and pd.PLATE_NUMBER != ''">
|
||||
and v1.PLATE_NUMBER LIKE CONCAT(CONCAT('%', #{pd.PLATE_NUMBER}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE_TYPE != null and pd.DUE_DATE_TYPE != ''">
|
||||
and case when f.DUE_DATE < NOW() then 0 else 1 end = #{pd.DUE_DATE_TYPE}
|
||||
</if>
|
||||
ORDER BY f.CREATTIME DESC
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,223 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.maintenance.MaintenanceMapper">
|
||||
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
bus_traffic_mechanical_maintenance
|
||||
</sql>
|
||||
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
MAINTENANCE_ID,
|
||||
CORPINFO_ID,
|
||||
NUM,
|
||||
VEHICLE,
|
||||
CAR_OWNERS,
|
||||
TELEPHONE,
|
||||
REGISTRANT,
|
||||
MAINTENANCE_LEVEL,
|
||||
MAINTENANCE_CYCLE,
|
||||
KILOMETERS,
|
||||
PROCESSING_DATE,
|
||||
DUE_DATE,
|
||||
AGREEMENT_NUM,
|
||||
MAINTENANCE_COMPANY,
|
||||
REMINDER_DAYS,
|
||||
REMINDER_DATE,
|
||||
REMINDER_STATUS,
|
||||
MAINTENANCEINFO,
|
||||
NOTES,
|
||||
ARCHIVES_TYPE,
|
||||
ISDELETE,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{MAINTENANCE_ID},
|
||||
#{CORPINFO_ID},
|
||||
#{NUM},
|
||||
#{VEHICLE},
|
||||
#{CAR_OWNERS},
|
||||
#{TELEPHONE},
|
||||
#{REGISTRANT},
|
||||
#{MAINTENANCE_LEVEL},
|
||||
#{MAINTENANCE_CYCLE},
|
||||
#{KILOMETERS},
|
||||
#{PROCESSING_DATE},
|
||||
#{DUE_DATE},
|
||||
#{AGREEMENT_NUM},
|
||||
#{MAINTENANCE_COMPANY},
|
||||
#{REMINDER_DAYS},
|
||||
#{REMINDER_DATE},
|
||||
#{REMINDER_STATUS},
|
||||
#{MAINTENANCEINFO},
|
||||
#{NOTES},
|
||||
#{ARCHIVES_TYPE},
|
||||
#{ISDELETE},
|
||||
#{CREATOR},
|
||||
#{CREATORNAME},
|
||||
#{CREATTIME}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETEOR = #{DELETEOR},
|
||||
DELETEORNAME = #{DELETEORNAME},
|
||||
DELETTIME = #{DELETTIME}
|
||||
where
|
||||
MAINTENANCE_ID = #{MAINTENANCE_ID}
|
||||
</delete>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
NUM = #{NUM},
|
||||
VEHICLE = #{VEHICLE},
|
||||
CAR_OWNERS = #{CAR_OWNERS},
|
||||
TELEPHONE = #{TELEPHONE},
|
||||
REGISTRANT = #{REGISTRANT},
|
||||
MAINTENANCE_LEVEL = #{MAINTENANCE_LEVEL},
|
||||
MAINTENANCE_CYCLE = #{MAINTENANCE_CYCLE},
|
||||
KILOMETERS = #{KILOMETERS},
|
||||
PROCESSING_DATE = #{PROCESSING_DATE},
|
||||
DUE_DATE = #{DUE_DATE},
|
||||
AGREEMENT_NUM = #{AGREEMENT_NUM},
|
||||
MAINTENANCE_COMPANY = #{MAINTENANCE_COMPANY},
|
||||
REMINDER_DAYS = #{REMINDER_DAYS},
|
||||
REMINDER_DATE = #{REMINDER_DATE},
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
MAINTENANCEINFO = #{MAINTENANCEINFO},
|
||||
NOTES = #{NOTES},
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
MAINTENANCE_ID = #{MAINTENANCE_ID}
|
||||
</update>
|
||||
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit2" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
<if test="REMINDER_STATUS != null">
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
</if>
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
MAINTENANCE_ID = #{MAINTENANCE_ID}
|
||||
</update>
|
||||
|
||||
<!-- 通过ID获取数据 -->
|
||||
<select id="findById" parameterType="pd" resultType="pd">
|
||||
select
|
||||
f.MAINTENANCE_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.NUM,
|
||||
f.VEHICLE,
|
||||
f.CAR_OWNERS,
|
||||
f.TELEPHONE,
|
||||
f.REGISTRANT,
|
||||
f.MAINTENANCE_LEVEL,
|
||||
f.MAINTENANCE_CYCLE,
|
||||
f.KILOMETERS,
|
||||
f.PROCESSING_DATE,
|
||||
f.DUE_DATE,
|
||||
f.AGREEMENT_NUM,
|
||||
f.MAINTENANCE_COMPANY,
|
||||
f.REMINDER_DAYS,
|
||||
f.REMINDER_DATE,
|
||||
f.REMINDER_STATUS,
|
||||
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 127 and t.FOREIGN_KEY = f.MAINTENANCE_ID limit 1) as MAINTENANCEINFO,
|
||||
f.NOTES,
|
||||
f.ARCHIVES_TYPE,
|
||||
f.ISDELETE,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATTIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME,
|
||||
f.DELETEOR,
|
||||
f.DELETEORNAME,
|
||||
f.DELETTIME
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
where
|
||||
f.MAINTENANCE_ID = #{MAINTENANCE_ID}
|
||||
</select>
|
||||
|
||||
<!-- 列表
|
||||
BASICINFO_LICENSE_PLATE 车牌号
|
||||
CAR_OWNERS 车主业户
|
||||
REGISTRANT 登记人
|
||||
DUE_DATE 到期日期
|
||||
VEHICLE_MODEL 营运车型
|
||||
REMINDER_STATUS 提醒状态
|
||||
|
||||
-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.*,
|
||||
case when f.DUE_DATE < NOW() then 0 else 1 end as DUE_DATE_TYPE,
|
||||
v1.PLATE_NUMBER
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
INNER JOIN v_traffic v1 on f.VEHICLE=v1.ID
|
||||
where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
<if test="pd.BASICINFO_LICENSE_PLATE != null and pd.BASICINFO_LICENSE_PLATE != ''">
|
||||
and f.BASICINFO_LICENSE_PLATE LIKE CONCAT(CONCAT('%', #{pd.BASICINFO_LICENSE_PLATE}),'%')
|
||||
</if>
|
||||
<if test="pd.CAR_OWNERS != null and pd.CAR_OWNERS != ''">
|
||||
and f.CAR_OWNERS LIKE CONCAT(CONCAT('%', #{pd.CAR_OWNERS}),'%')
|
||||
</if>
|
||||
<if test="pd.REGISTRANT != null and pd.REGISTRANT != ''">
|
||||
and f.REGISTRANT LIKE CONCAT(CONCAT('%', #{pd.REGISTRANT}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE != null and pd.DUE_DATE != ''">
|
||||
and f.DUE_DATE = #{pd.DUE_DATE}
|
||||
</if>
|
||||
<if test="pd.VEHICLE_MODEL != null and pd.VEHICLE_MODEL != ''">
|
||||
and f.VEHICLE_MODEL LIKE CONCAT(CONCAT('%', #{pd.VEHICLE_MODEL}),'%')
|
||||
</if>
|
||||
<if test="pd.REMINDER_STATUS != null and pd.REMINDER_STATUS != ''">
|
||||
and f.REMINDER_STATUS = #{pd.REMINDER_STATUS}
|
||||
</if>
|
||||
<if test="pd.PLATE_NUMBER != null and pd.PLATE_NUMBER != ''">
|
||||
and v1.PLATE_NUMBER LIKE CONCAT(CONCAT('%', #{pd.PLATE_NUMBER}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE_TYPE != null and pd.DUE_DATE_TYPE != ''">
|
||||
and case when f.DUE_DATE < NOW() then 0 else 1 end = #{pd.DUE_DATE_TYPE}
|
||||
</if>
|
||||
ORDER BY f.CREATTIME DESC
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,211 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zcloud.mapper.datasource.operations.OperationsMapper">
|
||||
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
bus_traffic_mechanical_operations
|
||||
</sql>
|
||||
|
||||
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
OPERATIONS_ID,
|
||||
CORPINFO_ID,
|
||||
NUM,
|
||||
VEHICLE_MODEL,
|
||||
VEHICLE,
|
||||
CAR_OWNERS,
|
||||
TELEPHONE,
|
||||
REGISTRANT,
|
||||
PROCESSING_DATE,
|
||||
CYCLE,
|
||||
DUE_DATE,
|
||||
REMINDER_DAYS,
|
||||
REMINDER_DATE,
|
||||
REMINDER_STATUS,
|
||||
OPERATIONSINFO,
|
||||
NOTES,
|
||||
ARCHIVES_TYPE,
|
||||
ISDELETE,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{OPERATIONS_ID},
|
||||
#{CORPINFO_ID},
|
||||
#{NUM},
|
||||
#{VEHICLE_MODEL},
|
||||
#{VEHICLE},
|
||||
#{CAR_OWNERS},
|
||||
#{TELEPHONE},
|
||||
#{REGISTRANT},
|
||||
#{PROCESSING_DATE},
|
||||
#{CYCLE},
|
||||
#{DUE_DATE},
|
||||
#{REMINDER_DAYS},
|
||||
#{REMINDER_DATE},
|
||||
#{REMINDER_STATUS},
|
||||
#{OPERATIONSINFO},
|
||||
#{NOTES},
|
||||
#{ARCHIVES_TYPE},
|
||||
#{ISDELETE},
|
||||
#{CREATOR},
|
||||
#{CREATORNAME},
|
||||
#{CREATTIME}
|
||||
</sql>
|
||||
|
||||
<!-- 新增-->
|
||||
<insert id="save" parameterType="pd">
|
||||
insert into
|
||||
<include refid="tableName"></include>
|
||||
(
|
||||
<include refid="Field"></include>
|
||||
) values (
|
||||
<include refid="FieldValue"></include>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 删除-->
|
||||
<delete id="delete" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
ISDELETE = '1',
|
||||
DELETEOR = #{DELETEOR},
|
||||
DELETEORNAME = #{DELETEORNAME},
|
||||
DELETTIME = #{DELETTIME}
|
||||
where
|
||||
OPERATIONS_ID = #{OPERATIONS_ID}
|
||||
</delete>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
NUM = #{NUM},
|
||||
VEHICLE_MODEL = #{VEHICLE_MODEL},
|
||||
VEHICLE = #{VEHICLE},
|
||||
CAR_OWNERS = #{CAR_OWNERS},
|
||||
TELEPHONE = #{TELEPHONE},
|
||||
REGISTRANT = #{REGISTRANT},
|
||||
PROCESSING_DATE = #{PROCESSING_DATE},
|
||||
CYCLE = #{CYCLE},
|
||||
DUE_DATE = #{DUE_DATE},
|
||||
REMINDER_DAYS = #{REMINDER_DAYS},
|
||||
REMINDER_DATE = #{REMINDER_DATE},
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
OPERATIONSINFO = #{OPERATIONSINFO},
|
||||
NOTES = #{NOTES},
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
OPERATIONS_ID = #{OPERATIONS_ID}
|
||||
</update>
|
||||
|
||||
<!-- 修改 -->
|
||||
<update id="edit2" parameterType="pd">
|
||||
update
|
||||
<include refid="tableName"></include>
|
||||
set
|
||||
<if test="REMINDER_STATUS != null">
|
||||
REMINDER_STATUS = #{REMINDER_STATUS},
|
||||
</if>
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME}
|
||||
where
|
||||
OPERATIONS_ID = #{OPERATIONS_ID}
|
||||
</update>
|
||||
|
||||
<!-- 通过ID获取数据 -->
|
||||
<select id="findById" parameterType="pd" resultType="pd">
|
||||
select
|
||||
f.OPERATIONS_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.NUM,
|
||||
f.VEHICLE_MODEL,
|
||||
f.VEHICLE,
|
||||
f.CAR_OWNERS,
|
||||
f.TELEPHONE,
|
||||
f.REGISTRANT,
|
||||
f.PROCESSING_DATE,
|
||||
f.CYCLE,
|
||||
f.DUE_DATE,
|
||||
f.REMINDER_DAYS,
|
||||
f.REMINDER_DATE,
|
||||
f.REMINDER_STATUS,
|
||||
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 126 and t.FOREIGN_KEY = f.OPERATIONS_ID limit 1) as OPERATIONSINFO,
|
||||
f.NOTES,
|
||||
f.ARCHIVES_TYPE,
|
||||
f.ISDELETE,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATTIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME,
|
||||
f.DELETEOR,
|
||||
f.DELETEORNAME,
|
||||
f.DELETTIME
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
where
|
||||
f.OPERATIONS_ID = #{OPERATIONS_ID}
|
||||
</select>
|
||||
|
||||
<!-- 列表
|
||||
BASICINFO_LICENSE_PLATE 车牌号
|
||||
CAR_OWNERS 车主业户
|
||||
REGISTRANT 登记人
|
||||
DUE_DATE 到期日期
|
||||
VEHICLE_MODEL 营运车型
|
||||
REMINDER_STATUS 提醒状态
|
||||
|
||||
-->
|
||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||
select
|
||||
f.*,
|
||||
case when f.DUE_DATE < NOW() then 0 else 1 end as DUE_DATE_TYPE,
|
||||
v1.PLATE_NUMBER,
|
||||
(SELECT sd.NAME FROM sys_dictionaries sd where sd.DICTIONARIES_ID=f.CYCLE) as CYCLE_NAME
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
INNER JOIN v_traffic v1 on f.VEHICLE=v1.ID
|
||||
where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
<if test="pd.BASICINFO_LICENSE_PLATE != null and pd.BASICINFO_LICENSE_PLATE != ''">
|
||||
and f.BASICINFO_LICENSE_PLATE LIKE CONCAT(CONCAT('%', #{pd.BASICINFO_LICENSE_PLATE}),'%')
|
||||
</if>
|
||||
<if test="pd.CAR_OWNERS != null and pd.CAR_OWNERS != ''">
|
||||
and f.CAR_OWNERS LIKE CONCAT(CONCAT('%', #{pd.CAR_OWNERS}),'%')
|
||||
</if>
|
||||
<if test="pd.REGISTRANT != null and pd.REGISTRANT != ''">
|
||||
and f.REGISTRANT LIKE CONCAT(CONCAT('%', #{pd.REGISTRANT}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE != null and pd.DUE_DATE != ''">
|
||||
and f.DUE_DATE = #{pd.DUE_DATE}
|
||||
</if>
|
||||
<if test="pd.VEHICLE_MODEL != null and pd.VEHICLE_MODEL != ''">
|
||||
and f.VEHICLE_MODEL LIKE CONCAT(CONCAT('%', #{pd.VEHICLE_MODEL}),'%')
|
||||
</if>
|
||||
<if test="pd.REMINDER_STATUS != null and pd.REMINDER_STATUS != ''">
|
||||
and f.REMINDER_STATUS = #{pd.REMINDER_STATUS}
|
||||
</if>
|
||||
<if test="pd.PLATE_NUMBER != null and pd.PLATE_NUMBER != ''">
|
||||
and v1.PLATE_NUMBER LIKE CONCAT(CONCAT('%', #{pd.PLATE_NUMBER}),'%')
|
||||
</if>
|
||||
<if test="pd.DUE_DATE_TYPE != null and pd.DUE_DATE_TYPE != ''">
|
||||
and case when f.DUE_DATE < NOW() then 0 else 1 end = #{pd.DUE_DATE_TYPE}
|
||||
</if>
|
||||
ORDER BY f.CREATTIME DESC
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
|
@ -459,6 +459,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
u.PASSWORD,
|
||||
u.LAST_LOGIN,
|
||||
u.NAME,
|
||||
u.SEX,
|
||||
u.IP,
|
||||
u.EMAIL,
|
||||
u.NUMBER,
|
||||
|
|
Loading…
Reference in New Issue