企业端门口门禁开发完成并且人员信息增加门口门禁卡号字段完成
parent
332f52244c
commit
b7c071980e
|
@ -37,7 +37,7 @@ public class MkmjAreaGateController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/add")
|
||||||
@RequiresPermissions("mkmjAreaGate:add")
|
@RequiresPermissions("mkmjArea:add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap add() throws Exception{
|
public ReturnMap add() throws Exception{
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
|
@ -56,7 +56,7 @@ public class MkmjAreaGateController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/delete")
|
@RequestMapping(value="/delete")
|
||||||
@RequiresPermissions("mkmjAreaGate:del")
|
@RequiresPermissions("mkmjArea:del")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap delete() throws Exception{
|
public ReturnMap delete() throws Exception{
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
|
@ -69,7 +69,7 @@ public class MkmjAreaGateController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/edit")
|
@RequestMapping(value="/edit")
|
||||||
@RequiresPermissions("mkmjAreaGate:edit")
|
@RequiresPermissions("mkmjArea:edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap edit() throws Exception{
|
public ReturnMap edit() throws Exception{
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
|
@ -84,7 +84,7 @@ public class MkmjAreaGateController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/list")
|
@RequestMapping(value="/list")
|
||||||
@RequiresPermissions("mkmjAreaGate:list")
|
@RequiresPermissions("mkmjArea:list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object list(Page page) throws Exception{
|
public Object list(Page page) throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
|
@ -106,7 +106,7 @@ public class MkmjAreaGateController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/goEdit")
|
@RequestMapping(value="/goEdit")
|
||||||
@RequiresPermissions("mkmjAreaGate:edit")
|
@RequiresPermissions("mkmjArea:edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object goEdit() throws Exception{
|
public Object goEdit() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class MkmjGateLogController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/add")
|
@RequestMapping(value="/add")
|
||||||
@RequiresPermissions("mkmjGateLog:add")
|
@RequiresPermissions("mkmjArea:add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap add() throws Exception{
|
public ReturnMap add() throws Exception{
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
|
@ -56,7 +56,7 @@ public class MkmjGateLogController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/delete")
|
@RequestMapping(value="/delete")
|
||||||
@RequiresPermissions("mkmjGateLog:del")
|
@RequiresPermissions("mkmjArea:del")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap delete() throws Exception{
|
public ReturnMap delete() throws Exception{
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
|
@ -69,7 +69,7 @@ public class MkmjGateLogController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/edit")
|
@RequestMapping(value="/edit")
|
||||||
@RequiresPermissions("mkmjGateLog:edit")
|
@RequiresPermissions("mkmjArea:edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public ReturnMap edit() throws Exception{
|
public ReturnMap edit() throws Exception{
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
|
@ -84,7 +84,7 @@ public class MkmjGateLogController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/list")
|
@RequestMapping(value="/list")
|
||||||
@RequiresPermissions("mkmjGateLog:list")
|
@RequiresPermissions("mkmjArea:list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object list(Page page) throws Exception{
|
public Object list(Page page) throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
|
@ -106,7 +106,7 @@ public class MkmjGateLogController extends BaseController {
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value="/goEdit")
|
@RequestMapping(value="/goEdit")
|
||||||
@RequiresPermissions("mkmjGateLog:edit")
|
@RequiresPermissions("mkmjArea:edit")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Object goEdit() throws Exception{
|
public Object goEdit() throws Exception{
|
||||||
Map<String,Object> map = new HashMap<String,Object>();
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
|
|
|
@ -18,7 +18,8 @@
|
||||||
f.AREA_GATE_ID,
|
f.AREA_GATE_ID,
|
||||||
f.STATE,
|
f.STATE,
|
||||||
f.LOG_TIME,
|
f.LOG_TIME,
|
||||||
f.USER_CARD,
|
f.USER_ID,
|
||||||
|
f.USER_NAME,
|
||||||
f.GATE_TYPE,
|
f.GATE_TYPE,
|
||||||
f.CREATOR,
|
f.CREATOR,
|
||||||
f.CREATTIME,
|
f.CREATTIME,
|
||||||
|
@ -38,7 +39,8 @@
|
||||||
AREA_GATE_ID,
|
AREA_GATE_ID,
|
||||||
STATE,
|
STATE,
|
||||||
LOG_TIME,
|
LOG_TIME,
|
||||||
USER_CARD,
|
USER_ID,
|
||||||
|
USER_NAME,
|
||||||
GATE_TYPE,
|
GATE_TYPE,
|
||||||
CREATOR,
|
CREATOR,
|
||||||
CREATTIME,
|
CREATTIME,
|
||||||
|
@ -58,7 +60,8 @@
|
||||||
#{AREA_GATE_ID},
|
#{AREA_GATE_ID},
|
||||||
#{STATE},
|
#{STATE},
|
||||||
#{LOG_TIME},
|
#{LOG_TIME},
|
||||||
#{USER_CARD},
|
#{USER_ID},
|
||||||
|
#{USER_NAME}
|
||||||
#{GATE_TYPE},
|
#{GATE_TYPE},
|
||||||
#{CREATOR},
|
#{CREATOR},
|
||||||
#{CREATTIME},
|
#{CREATTIME},
|
||||||
|
@ -131,9 +134,27 @@
|
||||||
<!-- 列表 -->
|
<!-- 列表 -->
|
||||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||||
select
|
select
|
||||||
<include refid="Field"></include>
|
f.AREA_LOG_ID,
|
||||||
|
f.AREA_GATE_ID,
|
||||||
|
f.STATE,
|
||||||
|
f.LOG_TIME,
|
||||||
|
IFNULL(u.NAME,f.USER_NAME) NAME,
|
||||||
|
f.GATE_TYPE,
|
||||||
|
f.CREATOR,
|
||||||
|
f.CREATTIME,
|
||||||
|
f.OPERATOR,
|
||||||
|
f.OPERATTIME,
|
||||||
|
f.ISDELETE,
|
||||||
|
f.EX1,
|
||||||
|
f.EX2,
|
||||||
|
f.EX3,
|
||||||
|
f.EX4,
|
||||||
|
f.EX5,
|
||||||
|
g.GATE_NAME
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
|
LEFT JOIN MKMJ_AREA_GATE g on g.AREA_GATE_ID = f.AREA_GATE_ID
|
||||||
|
LEFT JOIN vi_user_all u on f.USER_ID = u.USER_ID
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||||
and
|
and
|
||||||
|
@ -145,8 +166,8 @@
|
||||||
-->
|
-->
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.AREA_GATE_ID != null and pd.AREA_GATE_ID != ''"><!-- 关键词检索 -->
|
<if test="pd.AREA_ID != null and pd.AREA_ID != ''"><!-- 关键词检索 -->
|
||||||
and f.AREA_GATE_ID=#{pd.AREA_GATE_ID}
|
and g.AREA_ID=#{pd.AREA_ID}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
JCR,
|
JCR,
|
||||||
CORPINFO_ID,
|
CORPINFO_ID,
|
||||||
CARDNO,
|
CARDNO,
|
||||||
|
MKMJCARD.
|
||||||
ISDELETE
|
ISDELETE
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 字段 -->
|
<!-- 字段 -->
|
||||||
|
@ -131,6 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
f.JCR,
|
f.JCR,
|
||||||
f.CORPINFO_ID,
|
f.CORPINFO_ID,
|
||||||
f.CARDNO,
|
f.CARDNO,
|
||||||
|
f.MKMJCARD,
|
||||||
f.ISDELETE
|
f.ISDELETE
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 字段值 -->
|
<!-- 字段值 -->
|
||||||
|
@ -168,6 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
#{JCR},
|
#{JCR},
|
||||||
#{CORPINFO_ID},
|
#{CORPINFO_ID},
|
||||||
#{CARDNO},
|
#{CARDNO},
|
||||||
|
#{MKMJCARD},
|
||||||
#{ISDELETE}
|
#{ISDELETE}
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
@ -387,6 +390,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="CARDNO != null and CARDNO != ''">
|
<if test="CARDNO != null and CARDNO != ''">
|
||||||
,CARDNO = #{CARDNO}
|
,CARDNO = #{CARDNO}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="MKMJCARD != null and MKMJCARD != ''">
|
||||||
|
,MKMJCARD = #{MKMJCARD}
|
||||||
|
</if>
|
||||||
<if test="DURATION != null and DURATION != ''">
|
<if test="DURATION != null and DURATION != ''">
|
||||||
,DURATION = #{DURATION}
|
,DURATION = #{DURATION}
|
||||||
</if>
|
</if>
|
||||||
|
|
Loading…
Reference in New Issue