forked from integrated_whb/integrated_whb
Merge remote-tracking branch 'origin/dev' into dev
commit
adce4bdfc1
|
@ -413,6 +413,7 @@ public class FreighttTrailerController extends BaseController {
|
|||
return map;
|
||||
}
|
||||
|
||||
|
||||
/**导出到excel
|
||||
* @param
|
||||
* @throws Exception
|
||||
|
|
|
@ -10,16 +10,16 @@ import com.zcloud.service.operatingvehicles.OperatingVehiclesService;
|
|||
import com.zcloud.service.system.ImgFilesService;
|
||||
import com.zcloud.util.DateUtil;
|
||||
import com.zcloud.util.Jurisdiction;
|
||||
import com.zcloud.util.ObjectExcelView;
|
||||
import com.zcloud.util.Tools;
|
||||
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.ResponseBody;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 年检管理
|
||||
|
@ -228,5 +228,68 @@ public class InspectAnnuallyController extends BaseController {
|
|||
}
|
||||
|
||||
|
||||
/**导出到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);
|
||||
}
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
List<String> titles = new ArrayList<String>();
|
||||
titles.add("年检车辆"); //1
|
||||
titles.add("车架号"); //2
|
||||
//titles.add("车身编号"); //3
|
||||
titles.add("车辆类型"); //4
|
||||
titles.add("运营证号"); //5
|
||||
titles.add("归属部门"); //6
|
||||
titles.add("车主"); //7
|
||||
titles.add("车主电话"); //8
|
||||
titles.add("初登日期"); //9
|
||||
titles.add("发证日期"); //10
|
||||
titles.add("到期日期"); //11
|
||||
titles.add("车辆品牌"); //12
|
||||
titles.add("车辆型号"); //13
|
||||
titles.add("核定总质量"); //14
|
||||
titles.add("核定载质量"); //15
|
||||
//titles.add("容积"); //16
|
||||
dataMap.put("titles", titles);
|
||||
List<PageData> varOList = inspectAnnuallyService.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("VEHICLE"));//1
|
||||
vpd.put("var2", varOList.get(i).getString("FRAMES_NUMBER"));//2
|
||||
//vpd.put("var3", varOList.get(i).getString("VEHICLE_BODY_NUMBER"));//3
|
||||
vpd.put("var4", varOList.get(i).getString("VEHICLE_TYPE"));//4
|
||||
vpd.put("var5", varOList.get(i).getString("OPERATING_CERTIFICATE"));//5
|
||||
vpd.put("var6", varOList.get(i).getString("BELONGING_DEPARTMENT"));//6
|
||||
vpd.put("var7", varOList.get(i).getString("VEHICLEOWNER"));//7
|
||||
vpd.put("var8", varOList.get(i).getString("VEHICLEOWNER_NUMBER"));//8
|
||||
vpd.put("var9", varOList.get(i).getString("FIRSTSHOW_DATE"));//9
|
||||
vpd.put("var10", varOList.get(i).getString("CERTIFICATE_DATE"));//10
|
||||
vpd.put("var11", varOList.get(i).getString("EXPIRE_DATE"));//11
|
||||
vpd.put("var12", varOList.get(i).getString("VEHICLE_BRAND"));//12
|
||||
vpd.put("var13", varOList.get(i).getString("VEHICLE_MODEL"));//13
|
||||
vpd.put("var14", varOList.get(i).getString("VOUCH_TOTALMASS"));//14
|
||||
vpd.put("var15", varOList.get(i).getString("VOUCH_PAYLOAD"));//15
|
||||
//vpd.put("var16", varOList.get(i).getString("VOLUME"));//16
|
||||
varList.add(vpd);
|
||||
}
|
||||
dataMap.put("varList", varList);
|
||||
ObjectExcelView erv = new ObjectExcelView();
|
||||
mv = new ModelAndView(erv,dataMap);
|
||||
return mv;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -286,4 +287,70 @@ public class OperatingVehiclesController extends BaseController {
|
|||
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);
|
||||
}
|
||||
Map<String,Object> dataMap = new HashMap<String,Object>();
|
||||
List<String> titles = new ArrayList<String>();
|
||||
titles.add("车牌号"); //1
|
||||
titles.add("车架号"); //2
|
||||
//titles.add("车身编号"); //3
|
||||
titles.add("车辆类型"); //4
|
||||
titles.add("运营证号"); //5
|
||||
titles.add("归属部门"); //6
|
||||
titles.add("车主"); //7
|
||||
titles.add("车主电话"); //8
|
||||
titles.add("初登日期"); //9
|
||||
titles.add("发证日期"); //10
|
||||
titles.add("到期日期"); //11
|
||||
titles.add("车辆品牌"); //12
|
||||
titles.add("车辆型号"); //13
|
||||
titles.add("核定总质量"); //14
|
||||
titles.add("核定载质量"); //15
|
||||
//titles.add("容积"); //16
|
||||
dataMap.put("titles", titles);
|
||||
List<PageData> varOList = operatingVehiclesService.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("PLATE_NUMBER"));//1
|
||||
vpd.put("var2", varOList.get(i).getString("FRAMES_NUMBER"));//2
|
||||
//vpd.put("var3", varOList.get(i).getString("VEHICLE_BODY_NUMBER"));//3
|
||||
vpd.put("var4", varOList.get(i).getString("VEHICLE_TYPE"));//4
|
||||
vpd.put("var5", varOList.get(i).getString("OPERATING_CERTIFICATE"));//5
|
||||
vpd.put("var6", varOList.get(i).getString("BELONGING_DEPARTMENT"));//6
|
||||
vpd.put("var7", varOList.get(i).getString("VEHICLEOWNER"));//7
|
||||
vpd.put("var8", varOList.get(i).getString("VEHICLEOWNER_NUMBER"));//8
|
||||
vpd.put("var9", varOList.get(i).getString("FIRSTSHOW_DATE"));//9
|
||||
vpd.put("var10", varOList.get(i).getString("CERTIFICATE_DATE"));//10
|
||||
vpd.put("var11", varOList.get(i).getString("EXPIRE_DATE"));//11
|
||||
vpd.put("var12", varOList.get(i).getString("VEHICLE_BRAND"));//12
|
||||
vpd.put("var13", varOList.get(i).getString("VEHICLE_MODEL"));//13
|
||||
vpd.put("var14", varOList.get(i).getString("VOUCH_TOTALMASS"));//14
|
||||
vpd.put("var15", varOList.get(i).getString("VOUCH_PAYLOAD"));//15
|
||||
//vpd.put("var16", varOList.get(i).getString("VOLUME"));//16
|
||||
varList.add(vpd);
|
||||
}
|
||||
dataMap.put("varList", varList);
|
||||
ObjectExcelView erv = new ObjectExcelView();
|
||||
mv = new ModelAndView(erv,dataMap);
|
||||
return mv;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -228,25 +228,24 @@ public class UsersController extends BaseController {
|
|||
/**
|
||||
* 根据从业类型查询用户
|
||||
*
|
||||
* @param page
|
||||
* @param
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping("/listSelectPersonType")
|
||||
@ResponseBody
|
||||
@LogAnno(menuType = "综合管理", menuServer = "特种设备", instructionsOperate = "设备管理", instructionsType = "用户列表")
|
||||
public Object listSelectPersonType(Page page) throws Exception {
|
||||
public Object listSelectPersonType() throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
|
||||
page.setPd(pd);
|
||||
List<PageData> userList = usersService.userSelectPersonTypelistPage(page);//列出用户列表
|
||||
//page.setPd(pd);
|
||||
List<PageData> userList = usersService.userSelectPersonTypelist(pd);//列出用户列表
|
||||
map.put("userList", userList);
|
||||
map.put("page", page);
|
||||
//map.put("page", page);
|
||||
map.put("pd", pd);
|
||||
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
|
|
@ -61,5 +61,7 @@ public interface InspectAnnuallyMapper {
|
|||
|
||||
|
||||
List<PageData> annuallyList(Page page);
|
||||
|
||||
List<PageData> listOut(PageData pd);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,6 @@ public interface OperatingVehiclesMapper {
|
|||
PageData findByfindByPlateNumber(PageData pd);
|
||||
|
||||
void setScrapStatus(PageData pd);
|
||||
|
||||
List<PageData> listOut(PageData pd);
|
||||
}
|
||||
|
|
|
@ -272,7 +272,7 @@ public interface UsersMapper {
|
|||
|
||||
List<PageData> studentlist(PageData pd);
|
||||
|
||||
List<PageData> userSelectPersonTypelistPage(Page page);
|
||||
List<PageData> userSelectPersonTypelistPage(PageData pd);
|
||||
|
||||
/**从业人员列表 //userlistPage(Page page)
|
||||
* @param page
|
||||
|
@ -294,5 +294,7 @@ public interface UsersMapper {
|
|||
*/
|
||||
void editPractitioner(PageData pd);
|
||||
|
||||
List<PageData> userSelectPersonTypelist(PageData pd);
|
||||
|
||||
PageData getUserByUserId(PageData pd);
|
||||
}
|
||||
|
|
|
@ -61,5 +61,7 @@ public interface InspectAnnuallyService {
|
|||
|
||||
|
||||
List<PageData> annuallyList(Page page);
|
||||
|
||||
List<PageData> listOut(PageData pd);
|
||||
}
|
||||
|
||||
|
|
|
@ -87,6 +87,11 @@ public class InspectAnnuallyServiceImpl implements InspectAnnuallyService {
|
|||
return inspectAnnuallyMapper.annuallyList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> listOut(PageData pd) {
|
||||
return inspectAnnuallyMapper.listOut(pd);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,6 @@ public interface OperatingVehiclesService {
|
|||
PageData findByfindByPlateNumber(PageData pd);
|
||||
|
||||
void setScrapStatus(PageData pd);
|
||||
|
||||
List<PageData> listOut(PageData pd);
|
||||
}
|
||||
|
|
|
@ -61,4 +61,9 @@ public class OperatingVehiclesServiceImpl implements OperatingVehiclesService {
|
|||
public void setScrapStatus(PageData pd) {
|
||||
operatingVehiclesMapper.setScrapStatus(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> listOut(PageData pd) {
|
||||
return operatingVehiclesMapper.listOut(pd);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -318,7 +318,7 @@ public interface UsersService {
|
|||
|
||||
void setState(PageData request) throws Exception;
|
||||
|
||||
List<PageData> userSelectPersonTypelistPage(Page page);
|
||||
List<PageData> userSelectPersonTypelistPage(PageData pageData);
|
||||
|
||||
List<PageData> studentlist(PageData pd) throws Exception;
|
||||
|
||||
|
@ -367,5 +367,7 @@ public interface UsersService {
|
|||
*/
|
||||
void setPractitionerConfirm(PageData pd) throws Exception;
|
||||
|
||||
List<PageData> userSelectPersonTypelist(PageData pd);
|
||||
|
||||
PageData getUserByUserId(PageData pd);
|
||||
}
|
||||
|
|
|
@ -199,6 +199,7 @@ public class UserCorpServiceImpl implements UserCorpService {
|
|||
uc.put("USER_CORP_ID", pd.getString("USER_CORP_ID"));
|
||||
uc.put("USER_ID", pd.getString("USER_ID"));
|
||||
uc.put("APPLY_STATUS", pd.getString("REVIEW_RESULT"));
|
||||
uc.put("ISDELETE", "2");
|
||||
if ("1".equals(pd.getString("REVIEW_RESULT"))) {
|
||||
pd.put("DUTIES", "");
|
||||
pd.put("TITLE", "");
|
||||
|
|
|
@ -669,8 +669,8 @@ public class UsersServiceImpl implements UsersService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> userSelectPersonTypelistPage(Page page) {
|
||||
return usersMapper.userSelectPersonTypelistPage(page);
|
||||
public List<PageData> userSelectPersonTypelistPage(PageData pd) {
|
||||
return usersMapper.userSelectPersonTypelistPage(pd);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -933,6 +933,7 @@ public class UsersServiceImpl implements UsersService {
|
|||
uc.put("USER_CORP_ID", pd.getString("USER_CORP_ID"));
|
||||
uc.put("USER_ID", pd.getString("USER_ID"));
|
||||
uc.put("APPLY_STATUS", pd.getString("REVIEW_RESULT"));
|
||||
uc.put("ISDELETE", "2");
|
||||
if ("1".equals(pd.getString("REVIEW_RESULT"))) {
|
||||
pd.put("DUTIES", "");
|
||||
pd.put("TITLE", "");
|
||||
|
@ -1329,6 +1330,11 @@ public class UsersServiceImpl implements UsersService {
|
|||
usersMapper.setPractitionerReview(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> userSelectPersonTypelist(PageData pd) {
|
||||
return usersMapper.userSelectPersonTypelist(pd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageData getUserByUserId(PageData pd) {
|
||||
return usersMapper.getUserByUserId(pd);
|
||||
|
|
|
@ -160,10 +160,11 @@
|
|||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATTIME,
|
||||
(SELECT sd.NAME FROM sys_dictionaries sd where sd.DICTIONARIES_ID=f.ANNUAL_INSPECTION_CYCLE) as ANNUAL_INSPECTION_CYCLE_NAME
|
||||
(SELECT sd.NAME FROM sys_dictionaries sd where sd.DICTIONARIES_ID=f.ANNUAL_INSPECTION_CYCLE) as ANNUAL_INSPECTION_CYCLE_NAME,
|
||||
v.COMPANY_AREA as AREA
|
||||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
<include refid="tableName"></include> f
|
||||
left join v_traffic v on f.VEHICLE = v.ID
|
||||
where
|
||||
f.INSPECTANNUALLY_ID = #{INSPECTANNUALLY_ID}
|
||||
</select>
|
||||
|
@ -222,4 +223,6 @@
|
|||
AND
|
||||
f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
|
@ -553,5 +553,17 @@
|
|||
where f.ISDELETE = '0' and f.CORPINFO_ID = #{corpId}
|
||||
</select>
|
||||
|
||||
<select id="listOut" parameterType="pd" resultType="pd">
|
||||
select
|
||||
<include refid="Field2"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
where f.ISDELETE = '0'
|
||||
and f.OPERATING_ID in
|
||||
<foreach item="item" index="index" open="(" separator="," close=")" collection="ArrayDATA_IDS">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
|
@ -250,6 +250,7 @@
|
|||
<include refid="tableName"></include>
|
||||
set
|
||||
APPLY_STATUS = #{APPLY_STATUS},
|
||||
ISDELETE = #{ISDELETE},
|
||||
OPERATOR = #{OPERATOR},
|
||||
OPERATORNAME = #{OPERATORNAME},
|
||||
OPERATTIME = #{OPERATTIME},
|
||||
|
|
|
@ -1625,9 +1625,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
order by d.LEVEL asc ,d.DEP_ORDER,d.DEPARTMENT_ID asc, u.SORT asc,u.LAST_LOGIN desc
|
||||
</select>
|
||||
|
||||
<!-- 用户类型用户列表 -->
|
||||
<select id="userSelectPersonTypelistPage" parameterType="page" resultType="pd" >
|
||||
select u.USER_ID,
|
||||
<select id="userSelectPersonTypelist" resultType="com.zcloud.entity.PageData">
|
||||
select
|
||||
u.USER_ID,
|
||||
u.USERNAME,
|
||||
u.PASSWORD,
|
||||
u.LAST_LOGIN,
|
||||
|
@ -1648,6 +1648,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
and d.DICTIONARIES_ID = '5ae743c76dbf496eb1b5101075b073d5'
|
||||
</select>
|
||||
|
||||
<!-- 用户类型用户列表 -->
|
||||
<select id="userSelectPersonTypelistPage" parameterType="pd" resultType="pd" >
|
||||
select
|
||||
u.USER_ID,
|
||||
u.USERNAME,
|
||||
u.PASSWORD,
|
||||
u.LAST_LOGIN,
|
||||
u.NAME,
|
||||
u.SEX,
|
||||
u.IP,
|
||||
u.EMAIL,
|
||||
u.NUMBER,
|
||||
u.PHONE,
|
||||
u.ISMAIN,
|
||||
u.PUSH_CID,
|
||||
r.PERSONNEL_TYPE
|
||||
from <include refid="tableName"></include> u
|
||||
left join sys_userinfo r on u.USER_ID = r.USER_ID
|
||||
left join sys_dictionaries d on r.PERSONNEL_TYPE = d.DICTIONARIES_ID
|
||||
where
|
||||
u.ISDELETE = 0
|
||||
and d.DICTIONARIES_ID = '5ae743c76dbf496eb1b5101075b073d5'
|
||||
</select>
|
||||
|
||||
<!-- 从业人员列表 userlistPage -->
|
||||
<select id="practitionerlistPage" parameterType="page" resultType="pd" >
|
||||
|
|
Loading…
Reference in New Issue