删除非必要文件
@ -1,4 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" default="true" />
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="Spring" name="Spring">
|
||||
<configuration />
|
||||
</facet>
|
||||
</component>
|
||||
</module>
|
||||
@ -1,35 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<!-- <link rel="icon" href="/favicon.ico"/>-->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="./hdmap/hdmap.css">
|
||||
|
||||
<script type="text/javascript" src="./hdmap/hdmap.js"></script>
|
||||
<script type="text/javascript" src="./bmapOffline/map_load.js"></script>
|
||||
<script type="text/javascript" src="./bmapOffline/HeatMap_min.js"></script>
|
||||
<title></title>
|
||||
<script type="module" crossorigin src="./assets/index.59fd3bab.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.82e78c29.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app" style="border: none">
|
||||
<div class="loading_index" style="border: none">
|
||||
<div class="loading-wrap" style="border: none">
|
||||
<div class="loading-dots" style="border: none">
|
||||
<span class="dot dot-spin">
|
||||
<i></i>
|
||||
<i></i>
|
||||
<i></i>
|
||||
<i></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="loading-title">
|
||||
正在缓冲...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,2 +0,0 @@
|
||||
org.springframework.boot.env.EnvironmentPostProcessor=\
|
||||
com.nmgs.MyEnvironmentPostProcessor
|
||||
@ -1,30 +0,0 @@
|
||||
<?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.nmgs.mapper.Mapper">
|
||||
<select id="select" parameterType="String" resultType="java.util.HashMap">
|
||||
${sql}
|
||||
</select>
|
||||
<select id="selectforlist" parameterType="String" resultType="java.util.HashMap">
|
||||
${sql}
|
||||
</select>
|
||||
<update id="update" parameterType="String">
|
||||
${sql}
|
||||
</update>
|
||||
|
||||
<insert id="insert" parameterType="String">
|
||||
${sql}
|
||||
</insert>
|
||||
<select id="selectpage" parameterType="String" resultType="java.util.HashMap">
|
||||
${sql}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectlow" parameterType="String" resultType="java.util.HashMap">
|
||||
${sql}
|
||||
</select>
|
||||
<select id="selectforlistlow" parameterType="String" resultType="java.util.HashMap">
|
||||
${sql}
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,51 +0,0 @@
|
||||
<?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.nmgs.mapper.WhiteAccountMapper">
|
||||
|
||||
<select id="getWhiteAccountByPage" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteAccountText">
|
||||
select
|
||||
t.ACOUNTID,t.ACOUNTNAME
|
||||
FROM WHITE_ACCOUNT_TEXT t
|
||||
<where>
|
||||
<if test="params.id != null and params.id != ''">
|
||||
AND t.acountid = #{params.id}
|
||||
</if>
|
||||
|
||||
<if test="params.name != null and params.name != ''">
|
||||
AND t.acountname like '%'|| #{params.name} || '%'
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<update id="updateById" parameterType="com.nmgs.entity.WhiteAccountText">
|
||||
update WHITE_ACCOUNT_TEXT
|
||||
<set>
|
||||
acountname=#{params.acountname},
|
||||
</set>
|
||||
where acountid=#{params.acountid}
|
||||
</update>
|
||||
<insert id="insertData" parameterType="com.nmgs.entity.WhiteAccountText">
|
||||
insert into WHITE_ACCOUNT_TEXT(VALUE,TEXT) values(#{params.acountid},#{params.text})
|
||||
</insert>
|
||||
<delete id="delDataById">
|
||||
DELETE FROM WHITE_ACCOUNT_TEXT WHERE acountid IN
|
||||
<foreach item="str" collection="ids" open="(" separator="," close=")">
|
||||
#{str}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="getWhiteAccountText" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteAccountText">
|
||||
select
|
||||
t.acountid,t.acountname
|
||||
FROM WHITE_ACCOUNT_TEXT t
|
||||
<where>
|
||||
<if test="params.id != null and params.id != ''">
|
||||
AND t.acountid = #{params.id}
|
||||
</if>
|
||||
|
||||
<if test="params.name != null and params.name != ''">
|
||||
AND t.acountname like '%'|| #{params.name} || '%'
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,43 +0,0 @@
|
||||
<?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.nmgs.mapper.WhiteCarnoDicMapper">
|
||||
|
||||
<select id="getWhiteCarnoDicByPage" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteCarnoDic">
|
||||
select
|
||||
t.memo,t.discrp,t.dicname,t.unuser1,t.unuser2
|
||||
FROM WHITE_CARNO_DIC_TABLE t
|
||||
<where>
|
||||
<if test="params.memo != null and params.memo != ''">
|
||||
AND t.memo = #{params.memo}
|
||||
</if>
|
||||
|
||||
<if test="params.dicname != null and params.dicname != ''">
|
||||
AND t.dicname like '%'|| #{params.dicname} || '%'
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<insert id="insertData" parameterType="com.nmgs.entity.WhiteCarnoDic">
|
||||
insert into WHITE_CARNO_DIC_TABLE(memo,discrp,dicname) values(#{params.memo},#{params.discrp},#{params.dicname})
|
||||
</insert>
|
||||
<delete id="delDataById">
|
||||
DELETE FROM WHITE_CARNO_DIC_TABLE WHERE memo IN
|
||||
<foreach item="str" collection="ids" open="(" separator="," close=")">
|
||||
#{str}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="getWhiteCarnoDicList" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteCarnoDic">
|
||||
select
|
||||
t.memo,t.discrp,t.dicname,t.unuser1,t.unuser2
|
||||
FROM WHITE_CARNO_DIC_TABLE t
|
||||
<where>
|
||||
<if test="params.memo != null and params.memo != ''">
|
||||
AND t.memo = #{params.memo}
|
||||
</if>
|
||||
<if test="params.dicname != null and params.dicname != ''">
|
||||
AND t.dicname like '%'|| #{params.dicname} || '%'
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,522 +0,0 @@
|
||||
<?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.nmgs.mapper.WhiteCarnoListMapper">
|
||||
|
||||
<select id="getWhiteCarnoListByPage" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteCarnoList">
|
||||
select
|
||||
t.id,t.acarno,t.COLOR,t.DT,t.BEGDT,t.ENDDT,
|
||||
t.VEHICLE_TYPE,t.DATAFLAG,t.DESCRIB,t.BEGDATE,
|
||||
t.ACCOUNT,t.VERNO,t.bak1,t.bak2,t.bak3,t.memo,t.VEHICLE_CLASS,t.DISCRP,
|
||||
<if test="params.DBTYPE ==1">
|
||||
(case when t.ENDDT< dateadd(day,0,#{params.CURRENTDATE}) THEN '已过期'
|
||||
when t.ENDDT< dateadd(day,0,#{params.CURRENTWILLDATE}) THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
<if test="params.DBTYPE ==2">
|
||||
(case
|
||||
when t.ENDDT< to_Date(#{params.CURRENTDATE},'YYYY-MM-DD HH24:mi:ss') THEN '已过期'
|
||||
when t.ENDDT< to_Date(#{params.CURRENTWILLDATE},'YYYY-MM-DD HH24:mi:ss') THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
<if test="params.DBTYPE ==3">
|
||||
(case
|
||||
when t.ENDDT< to_Date(#{params.CURRENTDATE},'YYYY-MM-DD HH24:mi:ss') THEN '已过期'
|
||||
when t.ENDDT< to_Date(#{params.CURRENTWILLDATE},'YYYY-MM-DD HH24:mi:ss') THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
<if test="params.DBTYPE ==4">
|
||||
(case
|
||||
when t.ENDDT< STR_TO_DATE(#{params.CURRENTDATE},'%Y-%m-%d %H:%k:%s') THEN '已过期'
|
||||
when t.ENDDT< STR_TO_DATE(#{params.CURRENTWILLDATE},'%Y-%m-%d %H:%k:%s') THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
(case when t.DATAFLAG='1' then '在用' else '停用' end) as flagName,
|
||||
wct.acountname as accountName,wpc.text as colorName,wvc.text as vehicleClassName,'' as vehicleTypeName
|
||||
FROM WHITE_CARNO_TABLE t
|
||||
left join white_ACCOUNT_text wct on(t.ACCOUNT = wct.acountid)
|
||||
left join white_plate_color wpc on(t.COLOR = wpc.value)
|
||||
left join WHITE_VEHICLE_CLASS wvc on(t.VEHICLE_CLASS = wvc.value)
|
||||
<where>
|
||||
<if test="params.id != null and params.id != ''">
|
||||
AND t.id = #{params.id}
|
||||
</if>
|
||||
<if test="params.queryStartTime!= null and params.queryStartTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDT >= dateadd(day,0,#{params.queryStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDT >= TO_DATE(#{params.queryStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDT >= TO_DATE(#{params.queryStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDT >= STR_TO_DATE(#{params.queryStartTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryEndTime!= null and params.queryEndTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDT <= dateadd(day,0,#{params.queryEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDT <= TO_DATE(#{params.queryEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDT <= TO_DATE(#{params.queryEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDT <= STR_TO_DATE(#{params.queryEndTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryEndTimeS!= null and params.queryEndTimeS!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.ENDDT = dateadd(day,0,#{params.queryEndTimeS})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.ENDDT >= TO_DATE(#{params.queryEndTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.ENDDT >= TO_DATE(#{params.queryEndTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.ENDDT >= STR_TO_DATE(#{params.queryEndTimeS}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryEndTimeE!= null and params.queryEndTimeE!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.ENDDT <= dateadd(day,0,#{params.queryEndTimeE})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.ENDDT <= TO_DATE(#{params.queryEndTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.ENDDT <= TO_DATE(#{params.queryEndTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.ENDDT <= STR_TO_DATE(#{params.queryEndTimeE}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<if test="params.queryOperStartTime!= null and params.queryOperStartTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDATE >= dateadd(day,0,#{params.queryOperStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDATE >= TO_DATE(#{params.queryOperStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDATE >= TO_DATE(#{params.queryOperStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDATE >= STR_TO_DATE(#{params.queryOperStartTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryOperEndTime!= null and params.queryOperEndTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDATE <= dateadd(day,0,#{params.queryOperEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDATE <= TO_DATE(#{params.queryOperEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDATE <= TO_DATE(#{params.queryOperEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDATE <= STR_TO_DATE(#{params.queryOperEndTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryCreateTimeS!= null and params.queryCreateTimeS!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.DT >= dateadd(day,0,#{params.queryCreateTimeS})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.DT >= TO_DATE(#{params.queryCreateTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.DT >= TO_DATE(#{params.queryCreateTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.DT >= STR_TO_DATE(#{params.queryCreateTimeS}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryCreateTimeE!= null and params.queryCreateTimeE!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.DT <= dateadd(day,0,#{params.queryCreateTimeE})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.DT <= TO_DATE(#{params.queryCreateTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.DT <= TO_DATE(#{params.queryCreateTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.DT <= STR_TO_DATE(#{params.queryCreateTimeE}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.WILLDATE!= null and params.WILLDATE!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.ENDDT < dateadd(day,0,#{params.WILLDATE})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.ENDDT < TO_DATE(#{params.WILLDATE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.ENDDT < TO_DATE(#{params.WILLDATE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.ENDDT < STR_TO_DATE(#{params.WILLDATE}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.SVEHICLEID != null and params.SVEHICLEID != ''">
|
||||
AND t.acarno like '%'|| #{params.SVEHICLEID} || '%'
|
||||
</if>
|
||||
<if test="params.SCOMNO != null and params.SCOMNO != ''">
|
||||
AND t.ACCOUNT = #{params.SCOMNO}
|
||||
</if>
|
||||
<if test="params.SSTATUS != null and params.SSTATUS != ''">
|
||||
AND t.DATAFLAG = #{params.SSTATUS}
|
||||
</if>
|
||||
<if test="params.SVECHECLASS != null and params.SVECHECLASS != ''">
|
||||
AND t.VEHICLECLASS = #{params.SVECHECLASS}
|
||||
</if>
|
||||
<if test="params.SVECHETYPE != null and params.SVECHETYPE != ''">
|
||||
AND t.VEHICLETYPE = #{params.SVECHETYPE}
|
||||
</if>
|
||||
<if test="params.SDESCRIBE != null and params.SDESCRIBE != ''">
|
||||
AND t.DESCRIB = #{params.SDESCRIBE}
|
||||
</if>
|
||||
<if test="params.SPROMPOTY != null and params.SPROMPOTY != ''">
|
||||
<!-- 7天之内 将要过期 -->
|
||||
<if test="params.SPROMPOTY =='WILL'">
|
||||
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<update id="updateById" parameterType="com.nmgs.entity.WhiteCarnoList">
|
||||
update WHITE_CARNO_TABLE
|
||||
<set>
|
||||
ACARNO=#{params.acarno},
|
||||
COLOR=#{params.color},
|
||||
BEGDT= #{params.begdt},
|
||||
ENDDT= #{params.enddt},
|
||||
VEHICLE_TYPE=#{params.vehicleType} ,
|
||||
DATAFLAG= #{params.dataflag},
|
||||
DESCRIB= #{params.describ},
|
||||
BEGDATE= #{params.begdate},
|
||||
ACCOUNT= #{params.account},
|
||||
<if test="params.verno !='' and params.verno != null">
|
||||
VERNO= #{params.verno},
|
||||
</if>
|
||||
<if test="params.bak1 !='' and params.bak1 != null">
|
||||
BAK1= #{params.bak1},
|
||||
</if>
|
||||
<if test="params.bak2 !='' and params.bak2 != null">
|
||||
BAK2= #{params.bak12},
|
||||
</if>
|
||||
<if test="params.bak3 !='' and params.bak3 != null">
|
||||
BAK3= #{params.bak3},
|
||||
</if>
|
||||
<if test="params.discrp !='' and params.discrp != null">
|
||||
DISCRP= #{params.discrp},
|
||||
</if>
|
||||
<if test="params.vehicleClass !='' and params.vehicleClass != null">
|
||||
VEHICLE_CLASS=#{params.vehicleClass},
|
||||
</if>
|
||||
MEMO= #{params.memo}
|
||||
|
||||
</set>
|
||||
where ID=#{params.id}
|
||||
</update>
|
||||
<update id="batchUpdateById" parameterType="java.util.HashMap">
|
||||
update WHITE_CARNO_TABLE
|
||||
<set>
|
||||
<if test="params.DBType == 1">
|
||||
BEGDT = dateadd(day,0,#{params.begdt}),
|
||||
ENDDT= dateadd(day,0,#{params.enddt}),
|
||||
</if>
|
||||
<if test="params.DBType == 2">
|
||||
BEGDT= TO_DATE(#{params.begdt}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
ENDDT= TO_DATE(#{params.enddt}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBType == 3">
|
||||
BEGDT = TO_DATE(#{params.begdt}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
ENDDT= TO_DATE(#{params.enddt}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBType == 4">
|
||||
BEGDT= STR_TO_DATE(#{params.begdt}, '%Y-%m-%d %H:%k:%s'),
|
||||
ENDDT= STR_TO_DATE(#{params.enddt}, '%Y-%m-%d %H:%k:%s'),
|
||||
</if>
|
||||
DATAFLAG= #{params.dataflag},
|
||||
ACCOUNT= #{params.account}
|
||||
</set>
|
||||
where ID IN
|
||||
<foreach item="str" collection="ids" open="(" separator="," close=")">
|
||||
#{str}
|
||||
</foreach>
|
||||
</update>
|
||||
<update id="publishVersion" parameterType="java.util.HashMap">
|
||||
update WHITE_CARNO_TABLE
|
||||
<set>
|
||||
<if test="params.DBType == 1">
|
||||
BEGDATE = dateadd(day,0,#{params.begdate})
|
||||
</if>
|
||||
<if test="params.DBType == 2">
|
||||
BEGDATE= TO_DATE(#{params.begdate}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBType == 3">
|
||||
BEGDATE = TO_DATE(#{params.begdate}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBType == 4">
|
||||
BEGDATE= STR_TO_DATE(#{params.begdate}, '%Y-%m-%d %H:%k:%s'),
|
||||
</if>
|
||||
VERNO= #{params.verno}
|
||||
</set>
|
||||
</update>
|
||||
|
||||
<insert id="insertData" parameterType="com.nmgs.entity.WhiteCarnoList">
|
||||
insert into WHITE_CARNO_TABLE(ID,
|
||||
acarno,
|
||||
COLOR,
|
||||
DT,BEGDT,ENDDT,
|
||||
VEHICLE_TYPE,
|
||||
DATAFLAG,DESCRIB,BEGDATE,ACCOUNT,VERNO,
|
||||
BAK1,BAK2,BAK3,MEMO,
|
||||
VEHICLE_CLASS,DISCRP)
|
||||
values(#{params.id},
|
||||
#{params.acarno},
|
||||
#{params.color},
|
||||
#{params.dt},
|
||||
#{params.begdt},
|
||||
#{params.enddt},
|
||||
#{params.vehicleType},
|
||||
#{params.dataflag},#{params.describ},#{params.begdate},
|
||||
#{params.account},#{params.verno},#{params.bak1},
|
||||
#{params.bak2},#{params.bak3},#{params.memo},
|
||||
#{params.vehicleClass},#{params.discrp}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertDataBatch" parameterType="java.util.List">
|
||||
insert into WHITE_CARNO_TABLE(ID,acarno,COLOR,DT,BEGDT,ENDDT,VEHICLE_TYPE,
|
||||
DATAFLAG,DESCRIB,BEGDATE,ACCOUNT,VERNO,BAK1,BAK2,BAK3,MEMO,
|
||||
VEHICLE_CLASS,DISCRP) values
|
||||
<foreach collection="list" item="params" separator=",">
|
||||
(#{params.id},#{params.acarno},#{params.color},#{params.dt},#{params.begdt},
|
||||
#{params.enddt},#{params.vehicleType},#{params.dataflag},#{params.describ},#{params.begdate},
|
||||
#{params.account},#{params.verno},#{params.bak1},#{params.bak2},#{params.bak3},#{params.memo},#{params.vehicleClass},#{params.discrp}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
<delete id="delDataBatch">
|
||||
DELETE FROM WHITE_CARNO_TABLE WHERE ID IN
|
||||
<foreach item="str" collection="ids" open="(" separator="," close=")">
|
||||
#{str}
|
||||
</foreach>
|
||||
</delete>
|
||||
<select id="getWhiteCarnoList" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteCarnoList">
|
||||
select
|
||||
t.id,t.acarno,t.COLOR,t.DT,t.BEGDT,t.ENDDT,
|
||||
t.VEHICLE_TYPE,t.DATAFLAG,t.DESCRIB,t.BEGDATE,
|
||||
t.ACCOUNT,t.VERNO,t.bak1,t.bak2,t.bak3,t.memo,t.VEHICLE_CLASS,t.DISCRP,
|
||||
<if test="params.DBTYPE ==1">
|
||||
(case when t.ENDDT< dateadd(day,0,#{params.CURRENTDATE}) THEN '已过期'
|
||||
when t.ENDDT< dateadd(day,0,#{params.CURRENTWILLDATE}) THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
<if test="params.DBTYPE ==2">
|
||||
(case
|
||||
when t.ENDDT< to_Date(#{params.CURRENTDATE},'YYYY-MM-DD HH24:mi:ss') THEN '已过期'
|
||||
when t.ENDDT< to_Date(#{params.CURRENTWILLDATE},'YYYY-MM-DD HH24:mi:ss') THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
<if test="params.DBTYPE ==3">
|
||||
(case
|
||||
when t.ENDDT< to_Date(#{params.CURRENTDATE},'YYYY-MM-DD HH24:mi:ss') THEN '已过期'
|
||||
when t.ENDDT< to_Date(#{params.CURRENTWILLDATE},'YYYY-MM-DD HH24:mi:ss') THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
<if test="params.DBTYPE ==4">
|
||||
(case
|
||||
when t.ENDDT< STR_TO_DATE(#{params.CURRENTDATE},'%Y-%m-%d %H:%k:%s') THEN '已过期'
|
||||
when t.ENDDT< STR_TO_DATE(#{params.CURRENTWILLDATE},'%Y-%m-%d %H:%k:%s') THEN '将到期'
|
||||
else '正常' end) AS promperty,
|
||||
</if>
|
||||
|
||||
(case when t.DATAFLAG='1' then '在用' else '停用' end) as flagName,
|
||||
wct.acountname as accountName,wpc.text as colorName,wvc.text as vehicleClassName,'' as vehicleTypeName
|
||||
FROM WHITE_CARNO_TABLE t
|
||||
left join white_account_text wct on(t.ACCOUNT = wct.acountid)
|
||||
left join white_plate_color wpc on(t.COLOR = wpc.value)
|
||||
left join WHITE_VEHICLE_CLASS wvc on(t.VEHICLE_CLASS = wvc.value)
|
||||
<where>
|
||||
<if test="params.id != null and params.id != ''">
|
||||
AND t.id = #{params.id}
|
||||
</if>
|
||||
<if test="params.queryStartTime!= null and params.queryStartTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDT >= dateadd(day,0,#{params.queryStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDT >= TO_DATE(#{params.queryStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDT >= TO_DATE(#{params.queryStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDT >= STR_TO_DATE(#{params.queryStartTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryEndTime!= null and params.queryEndTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDT <= dateadd(day,0,#{params.queryEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDT <= TO_DATE(#{params.queryEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDT <= TO_DATE(#{params.queryEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDT <= STR_TO_DATE(#{params.queryEndTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryEndTimeS!= null and params.queryEndTimeS!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.ENDDT = dateadd(day,0,#{params.queryEndTimeS})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.ENDDT >= TO_DATE(#{params.queryEndTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.ENDDT >= TO_DATE(#{params.queryEndTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.ENDDT >= STR_TO_DATE(#{params.queryEndTimeS}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryEndTimeE!= null and params.queryEndTimeE!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.ENDDT <= dateadd(day,0,#{params.queryEndTimeE})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.ENDDT <= TO_DATE(#{params.queryEndTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.ENDDT <= TO_DATE(#{params.queryEndTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.ENDDT <= STR_TO_DATE(#{params.queryEndTimeE}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<if test="params.queryOperStartTime!= null and params.queryOperStartTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDATE >= dateadd(day,0,#{params.queryOperStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDATE >= TO_DATE(#{params.queryOperStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDATE >= TO_DATE(#{params.queryOperStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDATE >= STR_TO_DATE(#{params.queryOperStartTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryOperEndTime!= null and params.queryOperEndTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.BEGDATE <= dateadd(day,0,#{params.queryOperEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.BEGDATE <= TO_DATE(#{params.queryOperEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.BEGDATE <= TO_DATE(#{params.queryOperEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.BEGDATE <= STR_TO_DATE(#{params.queryOperEndTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryCreateTimeS!= null and params.queryCreateTimeS!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.DT >= dateadd(day,0,#{params.queryCreateTimeS})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.DT >= TO_DATE(#{params.queryCreateTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.DT >= TO_DATE(#{params.queryCreateTimeS}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.DT >= STR_TO_DATE(#{params.queryCreateTimeS}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryCreateTimeE!= null and params.queryCreateTimeE!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.DT <= dateadd(day,0,#{params.queryCreateTimeE})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.DT <= TO_DATE(#{params.queryCreateTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.DT <= TO_DATE(#{params.queryCreateTimeE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.DT <= STR_TO_DATE(#{params.queryCreateTimeE}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.WILLDATE!= null and params.WILLDATE!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.ENDDT < dateadd(day,0,#{params.WILLDATE})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.ENDDT < TO_DATE(#{params.WILLDATE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.ENDDT < TO_DATE(#{params.WILLDATE}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.ENDDT < STR_TO_DATE(#{params.WILLDATE}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.SVEHICLEID != null and params.SVEHICLEID != ''">
|
||||
AND t.acarno like '%'|| #{params.SVEHICLEID} || '%'
|
||||
</if>
|
||||
<if test="params.acarNo != null and params.acarNo != ''">
|
||||
AND t.acarno =#{params.acarNo}
|
||||
</if>
|
||||
<if test="params.color != null and params.color != ''">
|
||||
AND t.COLOR =#{params.color}
|
||||
</if>
|
||||
<if test="params.SCOMNO != null and params.SCOMNO != ''">
|
||||
AND t.account = #{params.SCOMNO}
|
||||
</if>
|
||||
<if test="params.SSTATUS != null and params.SSTATUS != ''">
|
||||
AND t.dataflag = #{params.SSTATUS}
|
||||
</if>
|
||||
<if test="params.SVECHECLASS != null and params.SVECHECLASS != ''">
|
||||
AND t.VEHICLECLASS = #{params.SVECHECLASS}
|
||||
</if>
|
||||
<if test="params.SVECHETYPE != null and params.SVECHETYPE != ''">
|
||||
AND t.VEHICLETYPE = #{params.SVECHETYPE}
|
||||
</if>
|
||||
<if test="params.SDESCRIBE != null and params.SDESCRIBE != ''">
|
||||
AND t.DESCRIB = #{params.SDESCRIBE}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getWhiteCarno" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteCarnoList">
|
||||
select
|
||||
max(t.VERNO) as verno
|
||||
FROM WHITE_CARNO_TABLE t
|
||||
<where>
|
||||
<if test="params.whereSql != null and params.whereSql != ''">
|
||||
${params.whereSql}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,90 +0,0 @@
|
||||
<?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.nmgs.mapper.WhiteCarnoLogMapper">
|
||||
<insert id="insertBatch" parameterType="java.util.List">
|
||||
<foreach collection="list" item="params" separator=";">
|
||||
insert into WHITE_CARNO_LOG_TABLE(ID,acarno,COLOR,DT,BEGDT,ENDDT,VEHICLE_TYPE,
|
||||
STATUS,DESCRIB,BEGDATE,ACCOUNT,VERNO,BAK1,BAK2,BAK3,MEMO,
|
||||
VEHICLE_CLASS,OPERTYPE,OPERTYPENAME,OPERDATE,OPERMANO,OPERMANAME,COMNO,IDBUSINESS)
|
||||
values
|
||||
(#{params.id},#{params.acarno},#{params.color},#{params.dt},#{params.begdt},
|
||||
#{params.enddt},#{params.vehicleType},#{params.dataflag},#{params.describ},#{params.begdate},
|
||||
#{params.account},#{params.verno},#{params.bak1},#{params.bak2},#{params.bak3},#{params.memo},
|
||||
#{params.vehicleClass},#{params.opertype},#{params.opertypename},#{params.operdate},
|
||||
#{params.opermano},#{params.opermaname},#{params.comno},#{params.idbusiness}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="getWhiteCarnoLogByPage" parameterType="java.util.HashMap" resultType="com.nmgs.entity.WhiteCarnoLogTable">
|
||||
select
|
||||
t.id,t.acarno,t.COLOR,t.DT,t.BEGDT,t.ENDDT,
|
||||
t.VEHICLE_TYPE,t.DATAFLAG,t.DESCRIB,t.BEGDATE,
|
||||
t.ACCOUNT,t.VERNO,t.bak1,t.bak2,t.bak3,t.memo,t.VEHICLE_CLASS AS vehicleClass,
|
||||
(case when t.DATAFLAG='1' then '在用' else '停用' end) as flagName,
|
||||
wct.acountname as accountName,wpc.text as colorName,wvc.text as vehicleClassName,'' as vehicleTypeName,
|
||||
t.OPERTYPE,t.OPERTYPENAME,t.OPERDATE,t.OPERMANO,t.OPERMANAME,t.COMNO,t.IDBUSINESS
|
||||
FROM WHITE_CARNO_LOG_TABLE t
|
||||
left join white_ACCOUNT_text wct on(t.ACCOUNT = wct.acountid)
|
||||
left join white_plate_color wpc on(t.COLOR = wpc.value)
|
||||
left join WHITE_VEHICLE_CLASS wvc on(t.VEHICLE_CLASS = wvc.value)
|
||||
|
||||
<where>
|
||||
<if test="params.id != null and params.id != ''">
|
||||
AND t.id = #{params.id}
|
||||
</if>
|
||||
<if test="params.queryOperStartTime!= null and params.queryOperStartTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.OPERDATE >= dateadd(day,0,#{params.queryOperStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.OPERDATE >= TO_DATE(#{params.queryOperStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.OPERDATE >= TO_DATE(#{params.queryOperStartTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.OPERDATE >= STR_TO_DATE(#{params.queryOperStartTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.queryOperEndTime!= null and params.queryOperEndTime!= ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND t.OPERDATE <= dateadd(day,0,#{params.queryOperEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND t.OPERDATE <= TO_DATE(#{params.queryOperEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND t.OPERDATE <= TO_DATE(#{params.queryOperEndTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND t.OPERDATE <= STR_TO_DATE(#{params.queryOperEndTime}, '%Y-%m-%d %H:%k:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.SVEHICLEID != null and params.SVEHICLEID != ''">
|
||||
AND t.acarno like '%'|| #{params.SVEHICLEID} || '%'
|
||||
</if>
|
||||
<if test="params.SCOLOR != null and params.SCOLOR != ''">
|
||||
AND t.COLOR = #{params.SCOLOR}
|
||||
</if>
|
||||
<if test="params.SOPERTYPE != null and params.SOPERTYPE != ''">
|
||||
AND t.OPERTYPE = #{params.SOPERTYPE}
|
||||
</if>
|
||||
<if test="params.SOPERMANAME != null and params.SOPERMANAME != ''">
|
||||
AND t.OPERMANAME like '%'|| #{params.SOPERMANAME} || '%'
|
||||
</if>
|
||||
<if test="params.SVECHECLASS != null and params.SVECHECLASS != ''">
|
||||
AND t.VEHICLECLASS = #{params.SVECHECLASS}
|
||||
</if>
|
||||
<if test="params.SVECHETYPE != null and params.SVECHETYPE != ''">
|
||||
AND t.VEHICLETYPE = #{params.SVECHETYPE}
|
||||
</if>
|
||||
<if test="params.SDESCRIBE != null and params.SDESCRIBE != ''">
|
||||
AND t.DESCRIB = #{params.SDESCRIBE}
|
||||
</if>
|
||||
</where>
|
||||
order by t.OPERDATE DESC
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,50 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Hello, World</title>
|
||||
<style type="text/css">
|
||||
html{height:100%}
|
||||
body{height:100%;margin:0px;padding:0px}
|
||||
#container{height:100%}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="map_load.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
<script type="text/javascript">
|
||||
var outputPath = 'tiles/'; //地图瓦片所在的文件夹
|
||||
var fromat = ".jpg"; //格式
|
||||
|
||||
/*var tileLayer = new BMap.TileLayer();
|
||||
tileLayer.getTilesUrl = function (tileCoord, zoom) {
|
||||
var x = tileCoord.x;
|
||||
var y = tileCoord.y;
|
||||
var url = outputPath + zoom + '/' + x + '/' + y + fromat;
|
||||
return url;
|
||||
}
|
||||
var tileMapType = new BMap.MapType('tileMapType', tileLayer);*/
|
||||
|
||||
var map = new BMap.Map("container")
|
||||
|
||||
var point = new BMap.Point(116.404, 39.915); // 创建点坐标
|
||||
map.centerAndZoom(point, 6); // 初始化地图,设置中心点坐标和地图级别
|
||||
//添加地图类型控件
|
||||
map.addControl(new BMap.MapTypeControl({
|
||||
mapTypes:[
|
||||
BMAP_NORMAL_MAP,
|
||||
BMAP_HYBRID_MAP
|
||||
]}));
|
||||
map.setCurrentCity("北京"); // 设置地图显示的城市 此项是必须设置的
|
||||
map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
|
||||
//单击获取点击的经纬度
|
||||
map.addEventListener("click",function(e){
|
||||
alert(e.point.lng + "," + e.point.lat);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 49 B |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 326 B |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 73 B |
|
Before Width: | Height: | Size: 73 B |
|
Before Width: | Height: | Size: 76 B |
|
Before Width: | Height: | Size: 59 B |