forked from integrated_whb/integrated_whb
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # src/main/java/com/zcloud/controller/beidou/BeidouController.javadev
commit
5e14be67ed
|
@ -9,15 +9,19 @@ import com.zcloud.service.maintenance.MaintenanceService;
|
||||||
import com.zcloud.service.operatingvehicles.OperatingVehiclesService;
|
import com.zcloud.service.operatingvehicles.OperatingVehiclesService;
|
||||||
import com.zcloud.service.operations.OperationsService;
|
import com.zcloud.service.operations.OperationsService;
|
||||||
import com.zcloud.service.system.ImgFilesService;
|
import com.zcloud.service.system.ImgFilesService;
|
||||||
|
import com.zcloud.util.Const;
|
||||||
import com.zcloud.util.DateUtil;
|
import com.zcloud.util.DateUtil;
|
||||||
import com.zcloud.util.Jurisdiction;
|
import com.zcloud.util.Jurisdiction;
|
||||||
import org.bytedeco.javacpp.presets.opencv_core;
|
import org.bytedeco.javacpp.presets.opencv_core;
|
||||||
|
import com.zcloud.util.Smb;
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.util.ObjectUtils;
|
import org.springframework.util.ObjectUtils;
|
||||||
import org.springframework.util.StringUtils;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
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.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -35,6 +39,8 @@ public class BeidouController extends BaseController {
|
||||||
private BeidouService beidouService;
|
private BeidouService beidouService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ImgFilesService imgfilesService;
|
private ImgFilesService imgfilesService;
|
||||||
|
@Autowired
|
||||||
|
private Smb smb;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private OperatingVehiclesService operatingVehiclesService;
|
private OperatingVehiclesService operatingVehiclesService;
|
||||||
|
@ -49,7 +55,7 @@ public class BeidouController extends BaseController {
|
||||||
// @RequiresPermissions( value = {"question:add" , "courseware:add"}, logical = Logical.OR)
|
// @RequiresPermissions( value = {"question:add" , "courseware:add"}, logical = Logical.OR)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "新增")
|
@LogAnno(menuType = "机务档案", menuServer = "北斗管理", instructionsOperate = "北斗管理", instructionsType = "新增")
|
||||||
public Object add() throws Exception {
|
public Object add(@RequestParam(value="FFILE",required=false) MultipartFile file) throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
|
@ -60,13 +66,31 @@ public class BeidouController extends BaseController {
|
||||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
||||||
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
||||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||||
|
pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 运输企业
|
||||||
pd.put("ARCHIVES_TYPE", "正常"); //档案状态
|
pd.put("ARCHIVES_TYPE", "正常"); //档案状态
|
||||||
|
|
||||||
|
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("CONTRACT", Const.FILEPATHFILE + pd.getString("TRANSPORTATIONCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
pd.put("CONFIRM_MESSAGE_TIME",DateUtil.date2Str(new Date()));
|
||||||
|
}
|
||||||
|
|
||||||
PageData operationData = new PageData();
|
PageData operationData = new PageData();
|
||||||
operationData.put("OPERATING_ID", pd.get("VEHICLE"));
|
operationData.put("OPERATING_ID", pd.get("VEHICLE"));
|
||||||
operationData.put("CORPINFO_ID", pd.get("CORPINFO_ID"));
|
operationData.put("CORPINFO_ID", pd.get("CORPINFO_ID"));
|
||||||
PageData resData = operatingVehiclesService.findById(operationData);
|
PageData resData = operatingVehiclesService.findById(operationData);
|
||||||
if(!ObjectUtils.isEmpty(resData)) {
|
if(!ObjectUtils.isEmpty(resData)) {
|
||||||
if(StringUtils.hasText(pd.getString("DUE_DATE"))) {
|
if(StringUtils.isNotBlank(pd.getString("DUE_DATE"))) {
|
||||||
String expireDate = pd.getString("DUE_DATE");
|
String expireDate = pd.getString("DUE_DATE");
|
||||||
String day = DateUtil.getDay();
|
String day = DateUtil.getDay();
|
||||||
if(DateUtil.compareDate(expireDate, day)) {
|
if(DateUtil.compareDate(expireDate, day)) {
|
||||||
|
|
|
@ -60,7 +60,8 @@ public class TrafficSafetyOccupationalHazardsController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName = file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
@ -109,7 +110,8 @@ public class TrafficSafetyOccupationalHazardsController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName = file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
|
|
@ -59,7 +59,8 @@ public class TrafficSafetyResponsibilityController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName = file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
@ -103,7 +104,8 @@ public class TrafficSafetyResponsibilityController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName = file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
|
|
@ -59,7 +59,8 @@ public class TrafficSecurityCommitmentController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName = file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
@ -102,7 +103,8 @@ public class TrafficSecurityCommitmentController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName = file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
|
|
@ -58,7 +58,8 @@ public class TrafficSecurityLaborContractController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName = file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
@ -107,7 +108,8 @@ public class TrafficSecurityLaborContractController extends BaseController {
|
||||||
map.put("msg", "文件格式不正确!");
|
map.put("msg", "文件格式不正确!");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
// String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
String fileName =file.getOriginalFilename();
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile);
|
||||||
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
pd.put("ATTACHMENT_ROUTE", Const.FILEPATHFILE + pd.getString("OPERATINGCOMPANY") + "/" + ffile + "/" + fileName);
|
||||||
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
pd.put("ATTACHMENT_NAME",pd.getString("CREATORNAME"));
|
||||||
|
|
|
@ -14,7 +14,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -154,6 +156,18 @@ public class FreighttTrailerController extends BaseController {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 下载模版
|
||||||
|
*
|
||||||
|
* @param response
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/downExcel")
|
||||||
|
public void downExcel(HttpServletResponse response) throws Exception {
|
||||||
|
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE + "truckExcelTemplate.xls", "货车挂车导入模板.xls");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表
|
* 列表
|
||||||
*
|
*
|
||||||
|
@ -224,6 +238,43 @@ public class FreighttTrailerController extends BaseController {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**导出到excel
|
||||||
|
* @param
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/excel")
|
||||||
|
// // @RequiresPermissions("toExcel")
|
||||||
|
public ModelAndView exportExcel() throws Exception{
|
||||||
|
ModelAndView mv = new ModelAndView();
|
||||||
|
PageData pd = new PageData();
|
||||||
|
pd = this.getPageData();
|
||||||
|
String DATA_IDS = pd.getString("DATA_IDS");
|
||||||
|
if(Tools.notEmpty(DATA_IDS)){
|
||||||
|
String[] ArrayDATA_IDS = DATA_IDS.split(",");
|
||||||
|
pd.put("ArrayDATA_IDS",ArrayDATA_IDS);
|
||||||
|
}
|
||||||
|
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||||
|
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||||
|
List<String> titles = new ArrayList<String>();
|
||||||
|
titles.add("所属企业"); //1
|
||||||
|
titles.add("风险点(单元)名称"); //2
|
||||||
|
titles.add("所属部门"); //3
|
||||||
|
dataMap.put("titles", titles);
|
||||||
|
List<PageData> varOList = freightTrailerService.listOut(pd);
|
||||||
|
List<PageData> varList = new ArrayList<PageData>();
|
||||||
|
for(int i=0;i<varOList.size();i++){
|
||||||
|
PageData vpd = new PageData();
|
||||||
|
vpd.put("var1", varOList.get(i).getString("CORP_NAME")); //1
|
||||||
|
vpd.put("var2", varOList.get(i).getString("RISKUNITNAME")); //2
|
||||||
|
vpd.put("var3", varOList.get(i).getString("DEPT_NAME")); //6
|
||||||
|
varList.add(vpd);
|
||||||
|
}
|
||||||
|
dataMap.put("varList", varList);
|
||||||
|
ObjectExcelView erv = new ObjectExcelView();
|
||||||
|
mv = new ModelAndView(erv,dataMap);
|
||||||
|
return mv;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 列表
|
* 列表
|
||||||
|
|
|
@ -52,7 +52,6 @@ public class InsureController extends BaseController {
|
||||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
||||||
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
pd.put("ISDELETE", "0"); //是否删除(0:有效 1:删除)
|
||||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
|
||||||
pd.put("ARCHIVES_TYPE", "正常"); //档案状态
|
|
||||||
|
|
||||||
insureService.save(pd);
|
insureService.save(pd);
|
||||||
map.put("pd", pd);
|
map.put("pd", pd);
|
||||||
|
|
|
@ -74,5 +74,7 @@ public interface FreightTrailerMapper {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
List<PageData> vehicleList(PageData pd);
|
List<PageData> vehicleList(PageData pd);
|
||||||
|
|
||||||
|
List<PageData> listOut(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,5 +75,6 @@ public interface FreightTrailerService {
|
||||||
*/
|
*/
|
||||||
public List<PageData> vehicleList(PageData pd) throws Exception;
|
public List<PageData> vehicleList(PageData pd) throws Exception;
|
||||||
|
|
||||||
|
List<PageData> listOut(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,5 +103,10 @@ public class FreightTrailerServiceImpl implements FreightTrailerService {
|
||||||
return freightTrailerMapper.vehicleList(pd);
|
return freightTrailerMapper.vehicleList(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> listOut(PageData pd) {
|
||||||
|
return freightTrailerMapper.listOut(pd);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,10 @@
|
||||||
REMINDER_STATUS,
|
REMINDER_STATUS,
|
||||||
BEIDOUINFO,
|
BEIDOUINFO,
|
||||||
NOTES,
|
NOTES,
|
||||||
|
NUM,
|
||||||
|
CONTRACT,
|
||||||
|
CERTIFICATE,
|
||||||
|
TRANSPORTATIONCOMPANY,
|
||||||
ISDELETE,
|
ISDELETE,
|
||||||
CREATOR,
|
CREATOR,
|
||||||
CREATORNAME,
|
CREATORNAME,
|
||||||
|
@ -82,6 +86,10 @@
|
||||||
#{REMINDER_STATUS},
|
#{REMINDER_STATUS},
|
||||||
#{BEIDOUINFO},
|
#{BEIDOUINFO},
|
||||||
#{NOTES},
|
#{NOTES},
|
||||||
|
#{NUM},
|
||||||
|
#{CONTRACT},
|
||||||
|
#{CERTIFICATE},
|
||||||
|
#{TRANSPORTATIONCOMPANY},
|
||||||
#{ISDELETE},
|
#{ISDELETE},
|
||||||
#{CREATOR},
|
#{CREATOR},
|
||||||
#{CREATORNAME},
|
#{CREATORNAME},
|
||||||
|
@ -180,7 +188,9 @@
|
||||||
f.REMINDER_DAYS,
|
f.REMINDER_DAYS,
|
||||||
f.REMINDER_DATE,
|
f.REMINDER_DATE,
|
||||||
f.REMINDER_STATUS,
|
f.REMINDER_STATUS,
|
||||||
|
f.CERTIFICATE,
|
||||||
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 128 and t.FOREIGN_KEY = f.BEIDOU_ID limit 1) as BEIDOUINFO,
|
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 128 and t.FOREIGN_KEY = f.BEIDOU_ID limit 1) as BEIDOUINFO,
|
||||||
|
(select t.FILEPATH from bus_imgfiles t where t.TYPE = 129 and t.FOREIGN_KEY = f.BEIDOU_ID limit 1) as CONTRACTINFO, -- 新增合同图片路径
|
||||||
f.NOTES,
|
f.NOTES,
|
||||||
f.ARCHIVES_TYPE,
|
f.ARCHIVES_TYPE,
|
||||||
f.ISDELETE,
|
f.ISDELETE,
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
f.EXPIRYDATE,
|
f.EXPIRYDATE,
|
||||||
f.ATTACHMENT_ROUTE,
|
f.ATTACHMENT_ROUTE,
|
||||||
f.USER_ID,
|
f.USER_ID,
|
||||||
|
f.CONTENT,
|
||||||
f.ISDELETE,
|
f.ISDELETE,
|
||||||
f.DELETOR,
|
f.DELETOR,
|
||||||
f.DELETORNAME,
|
f.DELETORNAME,
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
EXPIRYDATE,
|
EXPIRYDATE,
|
||||||
ATTACHMENT_ROUTE,
|
ATTACHMENT_ROUTE,
|
||||||
USER_ID,
|
USER_ID,
|
||||||
|
CONTENT,
|
||||||
ISDELETE,
|
ISDELETE,
|
||||||
DELETOR,
|
DELETOR,
|
||||||
DELETORNAME,
|
DELETORNAME,
|
||||||
|
@ -65,6 +67,7 @@
|
||||||
#{EXPIRYDATE},
|
#{EXPIRYDATE},
|
||||||
#{ATTACHMENT_ROUTE},
|
#{ATTACHMENT_ROUTE},
|
||||||
#{USER_ID},
|
#{USER_ID},
|
||||||
|
#{CONTENT},
|
||||||
#{ISDELETE},
|
#{ISDELETE},
|
||||||
#{DELETOR},
|
#{DELETOR},
|
||||||
#{DELETORNAME},
|
#{DELETORNAME},
|
||||||
|
@ -97,6 +100,7 @@
|
||||||
OPERATORNAME = #{OPERATORNAME},
|
OPERATORNAME = #{OPERATORNAME},
|
||||||
OPERATTIME = #{OPERATTIME},
|
OPERATTIME = #{OPERATTIME},
|
||||||
EXPIRYDATE = #{EXPIRYDATE},
|
EXPIRYDATE = #{EXPIRYDATE},
|
||||||
|
CONTENT = #{CONTENT},
|
||||||
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
||||||
<if test="VALIDSTATUS != null">
|
<if test="VALIDSTATUS != null">
|
||||||
, VALIDSTATUS = #{VALIDSTATUS}
|
, VALIDSTATUS = #{VALIDSTATUS}
|
||||||
|
@ -127,24 +131,25 @@
|
||||||
c.COMPLETIONSTATUS,
|
c.COMPLETIONSTATUS,
|
||||||
c.VALIDSTATUS,
|
c.VALIDSTATUS,
|
||||||
c.EXPIRYDATE,
|
c.EXPIRYDATE,
|
||||||
|
c.CONTENT,
|
||||||
c.CREATETIME,
|
c.CREATETIME,
|
||||||
c.OPERATTIME,
|
c.OPERATTIME,
|
||||||
c.OCCUPATIONALHAZARDS_ID
|
c.OCCUPATIONALHAZARDS_ID
|
||||||
from
|
from
|
||||||
sys_user u
|
sys_user u
|
||||||
left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID
|
left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID
|
||||||
left join BUS_TRAFFIC_OCCUPATIONAL_HAZARDS c on u.USER_ID = c.USER_ID
|
left join BUS_TRAFFIC_OCCUPATIONAL_HAZARDS c on u.USER_ID = c.USER_ID and c.ISDELETE !='1'
|
||||||
where u.ISDELETE = '0'
|
where u.ISDELETE = '0'
|
||||||
and u.ISMAIN != '1'
|
and u.ISMAIN != '1'
|
||||||
and (c.VALIDSTATUS != '2' or c.VALIDSTATUS is null)
|
and (c.VALIDSTATUS != '2' or c.VALIDSTATUS is null)
|
||||||
<if test="pd.OCCUPATIONALNAME != null and pd.OCCUPATIONALNAME != ''"><!-- 关键词检索-名称 -->
|
<if test="pd.OCCUPATIONALNAME != null and pd.OCCUPATIONALNAME != ''"><!-- 关键词检索-名称 -->
|
||||||
and c.OCCUPATIONALNAME like CONCAT('%',#{pd.OCCUPATIONALNAME},'%')
|
and c.OCCUPATIONALNAME like CONCAT('%',#{pd.OCCUPATIONALNAME},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''"><!-- 关键词检索-完成状态 -->
|
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''">
|
||||||
and c.COMPLETIONSTATUS = #{pd.COMPLETIONSTATUS}
|
and COALESCE(c.COMPLETIONSTATUS, '0') = #{pd.COMPLETIONSTATUS}
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''">
|
||||||
and c.VALIDSTATUS = #{pd.VALIDSTATUS}
|
and COALESCE(c.VALIDSTATUS, '0') = #{pd.VALIDSTATUS}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -131,26 +131,8 @@
|
||||||
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
||||||
and f.VALIDSTATUS = #{pd.VALIDSTATUS}
|
and f.VALIDSTATUS = #{pd.VALIDSTATUS}
|
||||||
</if>
|
</if>
|
||||||
|
ORDER BY f.CREATETIME DESC
|
||||||
</select>
|
</select>
|
||||||
<!-- <select id="datalistPage" parameterType="page" resultType="pd">-->
|
|
||||||
<!-- select-->
|
|
||||||
<!-- u.NAME,-->
|
|
||||||
<!-- u.USER_ID,-->
|
|
||||||
<!-- i.CORP_NAME,-->
|
|
||||||
<!-- c.SYSTEMNAME,-->
|
|
||||||
<!-- c.COMPLETIONSTATUS,-->
|
|
||||||
<!-- c.VALIDSTATUS,-->
|
|
||||||
<!-- c.EXPIRYDATE,-->
|
|
||||||
<!-- c.CREATETIME,-->
|
|
||||||
<!-- c.OPERATTIME,-->
|
|
||||||
<!-- c.SAFETYPRODUCTION_ID-->
|
|
||||||
<!-- from-->
|
|
||||||
<!-- sys_user u-->
|
|
||||||
<!-- left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID-->
|
|
||||||
<!-- left join BUS_TRAFFIC_SAFETY_PRODUCTION c on u.USER_ID = c.USER_ID-->
|
|
||||||
<!-- where u.ISDELETE = '0'-->
|
|
||||||
<!-- and u.ISMAIN != '1'-->
|
|
||||||
<!-- </select>-->
|
|
||||||
|
|
||||||
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">
|
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">
|
||||||
select
|
select
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
f.EXPIRYDATE,
|
f.EXPIRYDATE,
|
||||||
f.ATTACHMENT_ROUTE,
|
f.ATTACHMENT_ROUTE,
|
||||||
f.USER_ID,
|
f.USER_ID,
|
||||||
|
f.CONTENT,
|
||||||
f.ISDELETE,
|
f.ISDELETE,
|
||||||
f.DELETOR,
|
f.DELETOR,
|
||||||
f.DELETORNAME,
|
f.DELETORNAME,
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
EXPIRYDATE,
|
EXPIRYDATE,
|
||||||
ATTACHMENT_ROUTE,
|
ATTACHMENT_ROUTE,
|
||||||
USER_ID,
|
USER_ID,
|
||||||
|
CONTENT,
|
||||||
ISDELETE,
|
ISDELETE,
|
||||||
DELETOR,
|
DELETOR,
|
||||||
DELETORNAME,
|
DELETORNAME,
|
||||||
|
@ -65,6 +67,7 @@
|
||||||
#{EXPIRYDATE},
|
#{EXPIRYDATE},
|
||||||
#{ATTACHMENT_ROUTE},
|
#{ATTACHMENT_ROUTE},
|
||||||
#{USER_ID},
|
#{USER_ID},
|
||||||
|
#{CONTENT},
|
||||||
#{ISDELETE},
|
#{ISDELETE},
|
||||||
#{DELETOR},
|
#{DELETOR},
|
||||||
#{DELETORNAME},
|
#{DELETORNAME},
|
||||||
|
@ -97,6 +100,7 @@
|
||||||
OPERATORNAME = #{OPERATORNAME},
|
OPERATORNAME = #{OPERATORNAME},
|
||||||
OPERATTIME = #{OPERATTIME},
|
OPERATTIME = #{OPERATTIME},
|
||||||
EXPIRYDATE = #{EXPIRYDATE},
|
EXPIRYDATE = #{EXPIRYDATE},
|
||||||
|
CONTENT = #{CONTENT},
|
||||||
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
||||||
<if test="VALIDSTATUS != null">
|
<if test="VALIDSTATUS != null">
|
||||||
, VALIDSTATUS = #{VALIDSTATUS}
|
, VALIDSTATUS = #{VALIDSTATUS}
|
||||||
|
@ -129,11 +133,12 @@
|
||||||
c.EXPIRYDATE,
|
c.EXPIRYDATE,
|
||||||
c.CREATETIME,
|
c.CREATETIME,
|
||||||
c.OPERATTIME,
|
c.OPERATTIME,
|
||||||
|
c.CONTENT,
|
||||||
c.SAFETYRESPONSIBILITY_ID
|
c.SAFETYRESPONSIBILITY_ID
|
||||||
from
|
from
|
||||||
sys_user u
|
sys_user u
|
||||||
left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID
|
left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID
|
||||||
left join BUS_TRAFFIC_SAFETY_RESPONSIBILITY c on u.USER_ID = c.USER_ID
|
left join BUS_TRAFFIC_SAFETY_RESPONSIBILITY c on u.USER_ID = c.USER_ID and c.ISDELETE !='1'
|
||||||
where u.ISDELETE = '0'
|
where u.ISDELETE = '0'
|
||||||
and u.ISMAIN != '1'
|
and u.ISMAIN != '1'
|
||||||
and (c.VALIDSTATUS != '2' or c.VALIDSTATUS is null)
|
and (c.VALIDSTATUS != '2' or c.VALIDSTATUS is null)
|
||||||
|
@ -141,10 +146,10 @@
|
||||||
and c.RESPONSIBILITYNAME like CONCAT('%',#{pd.RESPONSIBILITYNAME},'%')
|
and c.RESPONSIBILITYNAME like CONCAT('%',#{pd.RESPONSIBILITYNAME},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''"><!-- 关键词检索-完成状态 -->
|
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''"><!-- 关键词检索-完成状态 -->
|
||||||
and c.COMPLETIONSTATUS = #{pd.COMPLETIONSTATUS}
|
and COALESCE(c.COMPLETIONSTATUS, '0') = #{pd.COMPLETIONSTATUS}
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
||||||
and c.VALIDSTATUS = #{pd.VALIDSTATUS}
|
and COALESCE(c.VALIDSTATUS, '0') = #{pd.VALIDSTATUS}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
f.PRACTITIONER,
|
f.PRACTITIONER,
|
||||||
f.ATTACHMENT_ROUTE,
|
f.ATTACHMENT_ROUTE,
|
||||||
f.USER_ID,
|
f.USER_ID,
|
||||||
|
f.CONTENT,
|
||||||
f.ISDELETE,
|
f.ISDELETE,
|
||||||
f.DELETOR,
|
f.DELETOR,
|
||||||
f.DELETORNAME,
|
f.DELETORNAME,
|
||||||
|
@ -47,6 +48,7 @@
|
||||||
PRACTITIONER,
|
PRACTITIONER,
|
||||||
ATTACHMENT_ROUTE,
|
ATTACHMENT_ROUTE,
|
||||||
USER_ID,
|
USER_ID,
|
||||||
|
CONTENT,
|
||||||
ISDELETE,
|
ISDELETE,
|
||||||
DELETOR,
|
DELETOR,
|
||||||
DELETORNAME,
|
DELETORNAME,
|
||||||
|
@ -71,6 +73,7 @@
|
||||||
#{PRACTITIONER},
|
#{PRACTITIONER},
|
||||||
#{ATTACHMENT_ROUTE},
|
#{ATTACHMENT_ROUTE},
|
||||||
#{USER_ID},
|
#{USER_ID},
|
||||||
|
#{CONTENT},
|
||||||
#{ISDELETE},
|
#{ISDELETE},
|
||||||
#{DELETOR},
|
#{DELETOR},
|
||||||
#{DELETORNAME},
|
#{DELETORNAME},
|
||||||
|
@ -103,6 +106,7 @@
|
||||||
OPERATORNAME = #{OPERATORNAME},
|
OPERATORNAME = #{OPERATORNAME},
|
||||||
OPERATTIME = #{OPERATTIME},
|
OPERATTIME = #{OPERATTIME},
|
||||||
EXPIRYDATE = #{EXPIRYDATE},
|
EXPIRYDATE = #{EXPIRYDATE},
|
||||||
|
CONTENT = #{CONTENT},
|
||||||
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
||||||
<if test="VALIDSTATUS != null">
|
<if test="VALIDSTATUS != null">
|
||||||
, VALIDSTATUS = #{VALIDSTATUS}
|
, VALIDSTATUS = #{VALIDSTATUS}
|
||||||
|
@ -123,52 +127,38 @@
|
||||||
</delete>
|
</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.COMMITMENTNAME != null and pd.COMMITMENTNAME != ''"><!– 关键词检索-制度名称 –>-->
|
|
||||||
<!-- and f.COMMITMENTNAME like CONCAT('%',#{pd.COMMITMENTNAME},'%')-->
|
|
||||||
<!-- </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="datalistPage" parameterType="page" resultType="pd">
|
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||||
select
|
SELECT
|
||||||
u.NAME,
|
u.NAME,
|
||||||
u.USER_ID,
|
u.USER_ID,
|
||||||
i.CORP_NAME,
|
i.CORP_NAME,
|
||||||
c.COMMITMENTNAME,
|
c.COMMITMENTNAME,
|
||||||
c.COMPLETIONSTATUS,
|
c.COMPLETIONSTATUS,
|
||||||
c.VALIDSTATUS,
|
c.VALIDSTATUS,
|
||||||
c.EXPIRYDATE,
|
c.EXPIRYDATE,
|
||||||
c.CREATETIME,
|
c.CREATETIME,
|
||||||
c.OPERATTIME,
|
c.OPERATTIME,
|
||||||
c.SECURITYCOMMITMENT_ID
|
c.CONTENT,
|
||||||
from
|
c.ISDELETE,
|
||||||
sys_user u
|
c.SECURITYCOMMITMENT_ID
|
||||||
left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID
|
FROM
|
||||||
left join BUS_TRAFFIC_SECURITY_COMMITMENT c on u.USER_ID = c.USER_ID
|
sys_user u
|
||||||
where u.ISDELETE = '0'
|
left JOIN bus_corp_info i ON u.CORPINFO_ID = i.CORPINFO_ID
|
||||||
and u.ISMAIN != '1'
|
left JOIN BUS_TRAFFIC_SECURITY_COMMITMENT c ON u.USER_ID = c.USER_ID and c.ISDELETE !='1'
|
||||||
and (c.VALIDSTATUS != '2' or c.VALIDSTATUS is null)
|
WHERE
|
||||||
<if test="pd.COMMITMENTNAME != null and pd.COMMITMENTNAME != ''"><!-- 关键词检索-制度名称 -->
|
u.ISDELETE = '0'
|
||||||
and c.COMMITMENTNAME like CONCAT('%',#{pd.COMMITMENTNAME},'%')
|
and (c.ISDELETE='0' or c.ISDELETE is null )
|
||||||
</if>
|
AND u.ISMAIN != '1'
|
||||||
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''"><!-- 关键词检索-完成状态 -->
|
AND ( c.VALIDSTATUS != '2' OR c.VALIDSTATUS IS NULL )
|
||||||
and c.COMPLETIONSTATUS = #{pd.COMPLETIONSTATUS}
|
<if test="pd.COMMITMENTNAME != null and pd.COMMITMENTNAME != ''">
|
||||||
</if>
|
and c.COMMITMENTNAME like CONCAT('%',#{pd.COMMITMENTNAME},'%')
|
||||||
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
</if>
|
||||||
and c.VALIDSTATUS = #{pd.VALIDSTATUS}
|
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''">
|
||||||
</if>
|
and COALESCE(c.COMPLETIONSTATUS, '0') = #{pd.COMPLETIONSTATUS}
|
||||||
|
</if>
|
||||||
|
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''">
|
||||||
|
and COALESCE(c.VALIDSTATUS, '0') = #{pd.VALIDSTATUS}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">
|
<select id="findById" resultType="com.zcloud.entity.PageData" parameterType="com.zcloud.entity.PageData">
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
f.PRACTITIONER,
|
f.PRACTITIONER,
|
||||||
f.ATTACHMENT_ROUTE,
|
f.ATTACHMENT_ROUTE,
|
||||||
f.USER_ID,
|
f.USER_ID,
|
||||||
|
f.CONTENT,
|
||||||
f.ISDELETE,
|
f.ISDELETE,
|
||||||
f.DELETOR,
|
f.DELETOR,
|
||||||
f.DELETORNAME,
|
f.DELETORNAME,
|
||||||
|
@ -45,6 +46,7 @@
|
||||||
PRACTITIONER,
|
PRACTITIONER,
|
||||||
ATTACHMENT_ROUTE,
|
ATTACHMENT_ROUTE,
|
||||||
USER_ID,
|
USER_ID,
|
||||||
|
CONTENT,
|
||||||
ISDELETE,
|
ISDELETE,
|
||||||
DELETOR,
|
DELETOR,
|
||||||
DELETORNAME,
|
DELETORNAME,
|
||||||
|
@ -68,6 +70,7 @@
|
||||||
#{PRACTITIONER},
|
#{PRACTITIONER},
|
||||||
#{ATTACHMENT_ROUTE},
|
#{ATTACHMENT_ROUTE},
|
||||||
#{USER_ID},
|
#{USER_ID},
|
||||||
|
#{CONTENT},
|
||||||
#{ISDELETE},
|
#{ISDELETE},
|
||||||
#{DELETOR},
|
#{DELETOR},
|
||||||
#{DELETORNAME},
|
#{DELETORNAME},
|
||||||
|
@ -100,6 +103,7 @@
|
||||||
OPERATORNAME = #{OPERATORNAME},
|
OPERATORNAME = #{OPERATORNAME},
|
||||||
OPERATTIME = #{OPERATTIME},
|
OPERATTIME = #{OPERATTIME},
|
||||||
EXPIRYDATE = #{EXPIRYDATE},
|
EXPIRYDATE = #{EXPIRYDATE},
|
||||||
|
CONTENT = #{CONTENT},
|
||||||
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
ATTACHMENT_ROUTE=#{ATTACHMENT_ROUTE}
|
||||||
<if test="VALIDSTATUS != null">
|
<if test="VALIDSTATUS != null">
|
||||||
, VALIDSTATUS = #{VALIDSTATUS}
|
, VALIDSTATUS = #{VALIDSTATUS}
|
||||||
|
@ -121,25 +125,6 @@
|
||||||
</delete>
|
</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.CONTRACTNAME != null and pd.CONTRACTNAME != ''"><!– 关键词检索-制度名称 –>-->
|
|
||||||
<!-- and f.CONTRACTNAME like CONCAT('%',#{pd.CONTRACTNAME},'%')-->
|
|
||||||
<!-- </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="datalistPage" parameterType="page" resultType="pd">
|
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||||
select
|
select
|
||||||
u.NAME,
|
u.NAME,
|
||||||
|
@ -149,24 +134,25 @@
|
||||||
c.COMPLETIONSTATUS,
|
c.COMPLETIONSTATUS,
|
||||||
c.VALIDSTATUS,
|
c.VALIDSTATUS,
|
||||||
c.EXPIRYDATE,
|
c.EXPIRYDATE,
|
||||||
|
c.CONTENT,
|
||||||
c.CREATETIME,
|
c.CREATETIME,
|
||||||
c.OPERATTIME,
|
c.OPERATTIME,
|
||||||
c.LABORCONTRACT_ID
|
c.LABORCONTRACT_ID
|
||||||
from
|
from
|
||||||
sys_user u
|
sys_user u
|
||||||
left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID
|
left join bus_corp_info i on u.CORPINFO_ID = i.CORPINFO_ID
|
||||||
left join BUS_TRAFFIC_LABOR_CONTRACT c on u.USER_ID = c.USER_ID
|
left join BUS_TRAFFIC_LABOR_CONTRACT c on u.USER_ID = c.USER_ID and c.ISDELETE !='1'
|
||||||
where u.ISDELETE = '0'
|
where u.ISDELETE = '0'
|
||||||
and u.ISMAIN != '1'
|
and u.ISMAIN != '1'
|
||||||
and (c.VALIDSTATUS != '2' or c.VALIDSTATUS is null)
|
and (c.VALIDSTATUS != '2' or c.VALIDSTATUS is null)
|
||||||
<if test="pd.CONTRACTNAME != null and pd.CONTRACTNAME != ''"><!-- 关键词检索 -->
|
<if test="pd.CONTRACTNAME != null and pd.CONTRACTNAME != ''"><!-- 关键词检索 -->
|
||||||
and c.CONTRACTNAME like CONCAT('%',#{pd.CONTRACTNAME},'%')
|
and c.CONTRACTNAME like CONCAT('%',#{pd.CONTRACTNAME},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''"><!-- 关键词检索-完成状态 -->
|
<if test="pd.COMPLETIONSTATUS != null and pd.COMPLETIONSTATUS != ''">
|
||||||
and c.COMPLETIONSTATUS = #{pd.COMPLETIONSTATUS}
|
and COALESCE(c.COMPLETIONSTATUS, '0') = #{pd.COMPLETIONSTATUS}
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''"><!-- 关键词检索-有效状态 -->
|
<if test="pd.VALIDSTATUS != null and pd.VALIDSTATUS != ''">
|
||||||
and c.VALIDSTATUS = #{pd.VALIDSTATUS}
|
and COALESCE(c.VALIDSTATUS, '0') = #{pd.VALIDSTATUS}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -240,4 +240,16 @@
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="listOut" parameterType="pd" resultType="pd">
|
||||||
|
select
|
||||||
|
<include refid="Field2"></include>,
|
||||||
|
from
|
||||||
|
<include refid="tableName"></include> f
|
||||||
|
inner join bus_corp_info b on f.CORPINFO_ID = b.CORPINFO_ID
|
||||||
|
where f.FREIGHTTRAILER_ID = #{FREIGHTTRAILER_ID}
|
||||||
|
<foreach item="item" index="index" open="(" separator="," close=")" collection="ArrayDATA_IDS">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -10,62 +10,60 @@
|
||||||
|
|
||||||
<!-- 字段 -->
|
<!-- 字段 -->
|
||||||
<sql id="Field">
|
<sql id="Field">
|
||||||
INSURE_ID,
|
INSURE_ID,
|
||||||
CORPINFO_ID,
|
CORPINFO_ID,
|
||||||
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,
|
ISDELETE,
|
||||||
ISDELETE,
|
CREATOR,
|
||||||
CREATOR,
|
CREATORNAME,
|
||||||
CREATORNAME,
|
CREATTIME
|
||||||
CREATTIME
|
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段值 -->
|
<!-- 字段值 -->
|
||||||
<sql id="FieldValue">
|
<sql id="FieldValue">
|
||||||
#{INSURE_ID},
|
#{INSURE_ID},
|
||||||
#{CORPINFO_ID},
|
#{CORPINFO_ID},
|
||||||
#{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},
|
#{ISDELETE},
|
||||||
#{ISDELETE},
|
#{CREATOR},
|
||||||
#{CREATOR},
|
#{CREATORNAME},
|
||||||
#{CREATORNAME},
|
#{CREATTIME}
|
||||||
#{CREATTIME}
|
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 新增-->
|
<!-- 新增-->
|
||||||
|
@ -116,7 +114,6 @@ CREATTIME
|
||||||
ATTACHMENT_UPLOAD = #{ATTACHMENT_UPLOAD},
|
ATTACHMENT_UPLOAD = #{ATTACHMENT_UPLOAD},
|
||||||
INSUREINFO = #{INSUREINFO},
|
INSUREINFO = #{INSUREINFO},
|
||||||
NOTES = #{NOTES},
|
NOTES = #{NOTES},
|
||||||
ARCHIVES_TYPE = #{ARCHIVES_TYPE},
|
|
||||||
OPERATOR = #{OPERATOR},
|
OPERATOR = #{OPERATOR},
|
||||||
OPERATORNAME = #{OPERATORNAME},
|
OPERATORNAME = #{OPERATORNAME},
|
||||||
OPERATTIME = #{OPERATTIME}
|
OPERATTIME = #{OPERATTIME}
|
||||||
|
@ -164,7 +161,6 @@ CREATTIME
|
||||||
f.ATTACHMENT_UPLOAD,
|
f.ATTACHMENT_UPLOAD,
|
||||||
f.INSUREINFO,
|
f.INSUREINFO,
|
||||||
f.NOTES,
|
f.NOTES,
|
||||||
f.ARCHIVES_TYPE,
|
|
||||||
f.ISDELETE,
|
f.ISDELETE,
|
||||||
f.CREATOR,
|
f.CREATOR,
|
||||||
f.CREATORNAME,
|
f.CREATORNAME,
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
REMINDER_STATUS,
|
REMINDER_STATUS,
|
||||||
MAINTENANCEINFO,
|
MAINTENANCEINFO,
|
||||||
NOTES,
|
NOTES,
|
||||||
|
NUM,
|
||||||
ISDELETE,
|
ISDELETE,
|
||||||
CREATOR,
|
CREATOR,
|
||||||
CREATORNAME,
|
CREATORNAME,
|
||||||
|
@ -86,6 +87,7 @@
|
||||||
#{REMINDER_STATUS},
|
#{REMINDER_STATUS},
|
||||||
#{MAINTENANCEINFO},
|
#{MAINTENANCEINFO},
|
||||||
#{NOTES},
|
#{NOTES},
|
||||||
|
#{NUM},
|
||||||
#{ISDELETE},
|
#{ISDELETE},
|
||||||
#{CREATOR},
|
#{CREATOR},
|
||||||
#{CREATORNAME},
|
#{CREATORNAME},
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue