forked from integrated_whb/integrated_whb
安全通知,客户管理,运单登记,地点管理功能优化
parent
983e857ba9
commit
eddae30465
|
@ -38,6 +38,7 @@ public class TrafficSecurityCustomerManagementController extends BaseController
|
|||
|
||||
String customermanagement_id = this.get32UUID();
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id
|
||||
pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 创建人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名
|
||||
pd.put("CUSTOMERMANAGEMENT_ID", customermanagement_id); // 主键
|
||||
pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间
|
||||
|
|
|
@ -34,6 +34,7 @@ public class TrafficSecurityLocationManagementController extends BaseController
|
|||
PageData pd = this.getPageData();
|
||||
|
||||
String locationmanagement_id = this.get32UUID();
|
||||
pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 运输企业
|
||||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名
|
||||
pd.put("LOCATIONMANAGEMENT_ID", locationmanagement_id); // 主键
|
||||
|
@ -51,6 +52,7 @@ public class TrafficSecurityLocationManagementController extends BaseController
|
|||
public Object listForSecurityLocationManagement(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ public class TrafficSecurityNoticeController extends BaseController {
|
|||
pd.put("CREATOR", Jurisdiction.getUSER_ID()); // 创建人id
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getPOST_ID()); // 创建人id
|
||||
pd.put("CREATORNAME", Jurisdiction.getName()); // 创建人姓名
|
||||
pd.put("TRANSPORTATIONCOMPANY", Jurisdiction.getCORPINFO_ID()); // 运输企业
|
||||
pd.put("NOTIFICATION_ID", notificationId); // 主键
|
||||
pd.put("CREATETIME", DateUtil.date2Str(new Date())); // 添加时间
|
||||
pd.put("POSTSTATUS", "1"); // 发布状态
|
||||
|
|
|
@ -44,7 +44,7 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController
|
|||
pd.put("REPLYSTATUS", REPLYSTATUS.trim());
|
||||
|
||||
page.setPd(pd);
|
||||
List<PageData> varList = trafficSecurityWaybillRegistrationService.listForSecurityNotice(page);
|
||||
List<PageData> varList = trafficSecurityWaybillRegistrationService.listForSecurityWaybill(page);
|
||||
|
||||
map.put("varList", varList);
|
||||
map.put("page", page);
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
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 TrafficSecurityPractitionerManagementMapper {
|
||||
/**
|
||||
* 新增
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
void save(PageData pd);
|
||||
|
||||
/**
|
||||
* 列表
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<PageData> datalistPage(Page page);
|
||||
}
|
|
@ -6,7 +6,7 @@ import com.zcloud.entity.PageData;
|
|||
import java.util.List;
|
||||
|
||||
public interface TrafficSecurityWaybillRegistrationService {
|
||||
List<PageData> listForSecurityNotice(Page page);
|
||||
List<PageData> listForSecurityWaybill(Page page);
|
||||
|
||||
void save(PageData pd);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ public class TrafficSecurityWaybillRegistrationServiceImpl implements TrafficSec
|
|||
@Autowired
|
||||
private TrafficSecurityWaybillRegistrationMapper TrafficSecurityWaybillRegistrationMapper;
|
||||
@Override
|
||||
public List<PageData> listForSecurityNotice(Page page) {
|
||||
public List<PageData> listForSecurityWaybill(Page page) {
|
||||
return TrafficSecurityWaybillRegistrationMapper.datalistPage(page);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
<?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.TrafficSecurityPractitionerManagementMapper">
|
||||
<sql id="tableName">
|
||||
BUS_TRAFFIC_PRACTITIONER_MANAGEMENT
|
||||
</sql>
|
||||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段用于查询 -->
|
||||
<sql id="Field">
|
||||
f.PRACTITIONER_ID,
|
||||
f.PRACTITIONER,
|
||||
f.PRACTITIONERSTATUS,
|
||||
f.PRACTITIONERTYPE,
|
||||
f.CONTACTPHONE,
|
||||
f.DRIVINGVEHICLE,
|
||||
f.IDNUMBER,
|
||||
f.ENTRYTIME,
|
||||
f.EXPIRATIONTIME,
|
||||
f.BELONGINGDEPARTMENT,
|
||||
f.TRANSPORTENTERPRISE,
|
||||
f.FACEAUTHENTICATION,
|
||||
f.IDENTITYAUTHENTICATION,
|
||||
f.DRIVINGLICENSEAUTHENTICATION,
|
||||
f.PROFESSIONALQUALIFICATION,
|
||||
f.CONTRACTAUTHENTICATION,
|
||||
f.ISDELETE,
|
||||
f.DELETOR,
|
||||
f.DELETORNAME,
|
||||
f.DELETETIME,
|
||||
f.CREATOR,
|
||||
f.CREATORNAME,
|
||||
f.CREATETIME,
|
||||
f.OPERATOR,
|
||||
f.OPERATORNAME,
|
||||
f.OPERATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段用于新增 -->
|
||||
<sql id="Field2">
|
||||
PRACTITIONER_ID,
|
||||
PRACTITIONER,
|
||||
PRACTITIONERSTATUS,
|
||||
PRACTITIONERTYPE,
|
||||
CONTACTPHONE,
|
||||
DRIVINGVEHICLE,
|
||||
IDNUMBER,
|
||||
ENTRYTIME,
|
||||
EXPIRATIONTIME,
|
||||
BELONGINGDEPARTMENT,
|
||||
TRANSPORTENTERPRISE,
|
||||
FACEAUTHENTICATION,
|
||||
IDENTITYAUTHENTICATION,
|
||||
DRIVINGLICENSEAUTHENTICATION,
|
||||
PROFESSIONALQUALIFICATION,
|
||||
CONTRACTAUTHENTICATION,
|
||||
ISDELETE,
|
||||
DELETOR,
|
||||
DELETORNAME,
|
||||
DELETETIME,
|
||||
CREATOR,
|
||||
CREATORNAME,
|
||||
CREATETIME,
|
||||
OPERATOR,
|
||||
OPERATORNAME,
|
||||
OPERATTIME
|
||||
</sql>
|
||||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{PRACTITIONER_ID},
|
||||
#{PRACTITIONER},
|
||||
#{PRACTITIONERSTATUS},
|
||||
#{PRACTITIONERTYPE},
|
||||
#{CONTACTPHONE},
|
||||
#{DRIVINGVEHICLE},
|
||||
#{IDNUMBER},
|
||||
#{ENTRYTIME},
|
||||
#{EXPIRATIONTIME},
|
||||
#{BELONGINGDEPARTMENT},
|
||||
#{TRANSPORTENTERPRISE},
|
||||
#{FACEAUTHENTICATION},
|
||||
#{IDENTITYAUTHENTICATION},
|
||||
#{DRIVINGLICENSEAUTHENTICATION},
|
||||
#{PROFESSIONALQUALIFICATION},
|
||||
#{CONTRACTAUTHENTICATION},
|
||||
#{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>
|
||||
|
||||
<!--列表-->
|
||||
<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.TRANSPORTATIONCOMPANY = i.CORPINFO_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.PRACTITIONER != null and pd.PRACTITIONER != ''"><!-- 关键词检索-从业人员 -->
|
||||
and f.PRACTITIONER = #{pd.PRACTITIONER}
|
||||
</if>
|
||||
<if test="pd.CONTACTPHONE != null and pd.CONTACTPHONE != ''"><!-- 关键词检索-联系电话 -->
|
||||
and f.CONTACTPHONE = #{pd.CONTACTPHONE}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue