1. 模板、名片、海报、缴费、查看记录、转发记录、名片收藏、栏目组、栏目、栏目设置、动态表单、动态表单数据等功能都增加了Mybatis二级缓存

This commit is contained in:
cuibaocheng 2021-09-16 16:06:33 +08:00
parent 13773d7fc0
commit 0ceb7c0997
18 changed files with 108 additions and 75 deletions

View File

@ -158,8 +158,6 @@ public class CardTemplateUseAppController extends DefaultBaseController {
try {
String userId = securityComponent.getAppTokenUser(token).getId();
params.put("userId", userId);
if(1 == 1)
throw new SearchException("测试");
}catch(Exception e) {
throw new SearchException("没有登陆信息");
}

View File

@ -1,5 +1,7 @@
package cn.com.tenlion.systemcard.pojo.bos.cardtemplate;
import java.io.Serializable;
/**
*
* @ClassName: CardTemplateBO

View File

@ -3,6 +3,8 @@ package cn.com.tenlion.systemcard.pojo.dtos.cardcharge;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
*
* @ClassName: CardChargeDTO
@ -12,7 +14,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 3.0
**/
@ApiModel
public class CardChargeDTO {
public class CardChargeDTO implements Serializable {
@ApiModelProperty(name = "cardChargeId", value = "名片收费记录表")
private String cardChargeId;

View File

@ -3,6 +3,8 @@ package cn.com.tenlion.systemcard.pojo.dtos.cardtemplate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
*
* @ClassName: CardTemplateDTO
@ -12,7 +14,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 3.0
**/
@ApiModel
public class CardTemplateDTO {
public class CardTemplateDTO implements Serializable {
@ApiModelProperty(name = "cardTemplateId", value = "模板")
private String cardTemplateId;

View File

@ -4,6 +4,8 @@ import cn.com.tenlion.systemcard.pojo.dtos.cardtemplateuse.CardTemplateUseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
*
* @ClassName: CardTemplateDispatchDTO
@ -13,7 +15,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 3.0
**/
@ApiModel
public class CardTemplateDispatchDTO {
public class CardTemplateDispatchDTO implements Serializable {
@ApiModelProperty(name = "cardTemplateDispatchId", value = "名片转发")
private String cardTemplateDispatchId;

View File

@ -4,6 +4,8 @@ import cn.com.tenlion.systemcard.pojo.dtos.cardtemplateuse.CardTemplateUseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
*
* @ClassName: CardTemplateScansDTO
@ -13,7 +15,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 3.0
**/
@ApiModel
public class CardTemplateScansDTO {
public class CardTemplateScansDTO implements Serializable {
@ApiModelProperty(name = "cardTemplateScansId", value = "名片查看")
private String cardTemplateScansId;

View File

@ -4,6 +4,7 @@ import cn.com.tenlion.systemcard.pojo.dtos.cardtemplateusearea.CardTemplateUseAr
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@ -16,7 +17,7 @@ import java.util.List;
* @Version: 3.0
**/
@ApiModel
public class CardTemplateUseDTO {
public class CardTemplateUseDTO implements Serializable {
@ApiModelProperty(name = "cardTemplateUseId", value = "模板使用")
private String cardTemplateUseId;

View File

@ -3,6 +3,8 @@ package cn.com.tenlion.systemcard.pojo.dtos.cardtemplateusearea;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
*
* @ClassName: CardTemplateUseAreaDTO
@ -12,7 +14,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 3.0
**/
@ApiModel
public class CardTemplateUseAreaDTO {
public class CardTemplateUseAreaDTO implements Serializable {
@ApiModelProperty(name = "cardTemplateUseAreaId", value = "模板区域使用")
private String cardTemplateUseAreaId;

View File

@ -4,6 +4,8 @@ import cn.com.tenlion.systemcard.pojo.dtos.cardtemplateuse.CardTemplateUseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
*
* @ClassName: CardTemplateUseBagDTO
@ -13,7 +15,7 @@ import io.swagger.annotations.ApiModelProperty;
* @Version: 3.0
**/
@ApiModel
public class CardTemplateUseBagDTO {
public class CardTemplateUseBagDTO implements Serializable {
@ApiModelProperty(name = "cardTemplateUseBagId", value = "我的卡包")
private String cardTemplateUseBagId;

View File

@ -1,5 +1,7 @@
package cn.com.tenlion.systemcard.pojo.pos.cardtemplate;
import java.io.Serializable;
/**
*
* @ClassName: CardTemplatePO

View File

@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.systemcard.dao.cardcharge.ICardChargeDao">
<cache/>
<resultMap id="cardChargeDTO" type="cn.com.tenlion.systemcard.pojo.dtos.cardcharge.CardChargeDTO">
<result column="card_charge_id" property="cardChargeId"/>
<result column="card_charge_price" property="cardChargePrice"/>
@ -60,7 +62,7 @@
</resultMap>
<!-- 查询今日的充值记录-->
<select id="getToDayList" parameterType="map" resultMap="cardChargeDTO">
<select id="getToDayList" parameterType="map" resultMap="cardChargeDTO" useCache="true">
SELECT
t1.card_charge_price,
t1.card_charge_end,
@ -97,7 +99,7 @@
</select>
<!-- 查询我所有的未付款订单 -->
<select id="getNotPayList" parameterType="map" resultMap="cardChargeDTO">
<select id="getNotPayList" parameterType="map" resultMap="cardChargeDTO" useCache="true">
SELECT
t1.card_charge_price,
t1.card_charge_end,
@ -129,7 +131,7 @@
</select>
<!-- 通过微信预支付订单号查询 -->
<select id="getChargeByOrderNumber" parameterType="java.lang.String" resultMap="cardChargeDTO">
<select id="getChargeByOrderNumber" parameterType="java.lang.String" resultMap="cardChargeDTO" useCache="true">
SELECT
t1.card_charge_price,
t1.card_charge_end,
@ -153,7 +155,7 @@
t1.is_delete = 0 AND t1.card_charge_order_number = #{cardChargeOrderNumber}
</select>
<update id="updateOrderStatus" parameterType="map">
<update id="updateOrderStatus" parameterType="map" flushCache="true">
UPDATE
e_card_charge
SET
@ -165,7 +167,7 @@
</update>
<!-- 查询未核对的缴费单 -->
<select id="listNotCheckOrder" parameterType="map" resultMap="cardChargeDTO">
<select id="listNotCheckOrder" parameterType="map" resultMap="cardChargeDTO" useCache="true">
SELECT
t1.card_charge_price,
t1.card_charge_end,
@ -193,7 +195,7 @@
</select>
<!-- 判断我的名片使用权限是否到期-->
<select id="getLastEngTime" parameterType="map" resultMap="cardChargeDTO">
<select id="getLastEngTime" parameterType="map" resultMap="cardChargeDTO" useCache="true">
SELECT
t1.card_charge_price,
t1.card_charge_end,
@ -225,7 +227,7 @@
</select>
<!-- 新增CBC名片收费记录表 -->
<insert id="save" parameterType="map">
<insert id="save" parameterType="map" flushCache="true">
INSERT INTO e_card_charge(
card_charge_id,
card_charge_price,
@ -274,7 +276,7 @@
</insert>
<!-- 删除CBC名片收费记录表 -->
<update id="remove" parameterType="map">
<update id="remove" parameterType="map" flushCache="true">
UPDATE
e_card_charge
SET
@ -289,7 +291,7 @@
</update>
<!-- 删除CBC名片收费记录表物理 -->
<update id="delete" parameterType="map">
<update id="delete" parameterType="map" flushCache="true">
DELETE FROM
e_card_charge
WHERE
@ -300,7 +302,7 @@
</update>
<!-- 修改CBC名片收费记录表 -->
<update id="update" parameterType="map">
<update id="update" parameterType="map" flushCache="true">
UPDATE
e_card_charge
SET
@ -345,7 +347,7 @@
</update>
<!-- CBC名片收费记录表详情 -->
<select id="get" parameterType="map" resultMap="cardChargeDTO">
<select id="get" parameterType="map" resultMap="cardChargeDTO" useCache="true">
SELECT
t1.card_charge_price,
t1.card_charge_end,
@ -435,7 +437,7 @@
</select>
<!-- CBC名片收费记录表列表 -->
<select id="list" parameterType="map" resultMap="cardChargeDTO">
<select id="list" parameterType="map" resultMap="cardChargeDTO" useCache="true">
SELECT
t1.card_charge_id,
t1.card_charge_price,

View File

@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.systemcard.dao.cardtemplate.ICardTemplateDao">
<cache/>
<resultMap id="cardTemplateDTO" type="cn.com.tenlion.systemcard.pojo.dtos.cardtemplate.CardTemplateDTO">
<result column="card_template_id" property="cardTemplateId"/>
<result column="template_mode" property="templateMode"/>
@ -47,7 +49,7 @@
</resultMap>
<!-- 新增 -->
<insert id="save" parameterType="map">
<insert id="save" parameterType="map" flushCache="true">
INSERT INTO e_card_template(
card_template_id,
template_mode,
@ -80,7 +82,7 @@
</insert>
<!-- 删除 -->
<update id="remove" parameterType="map">
<update id="remove" parameterType="map" flushCache="true">
UPDATE
e_card_template
SET
@ -95,7 +97,7 @@
</update>
<!-- 删除(物理) -->
<update id="delete" parameterType="map">
<update id="delete" parameterType="map" flushCache="true">
DELETE FROM
e_card_template
WHERE
@ -106,7 +108,7 @@
</update>
<!-- 修改 -->
<update id="update" parameterType="map">
<update id="update" parameterType="map" flushCache="true">
UPDATE
e_card_template
SET
@ -135,7 +137,7 @@
</update>
<!-- 详情 -->
<select id="get" parameterType="map" resultMap="cardTemplateDTO">
<select id="get" parameterType="map" resultMap="cardTemplateDTO" useCache="true">
SELECT
t1.template_mode,
t1.template_type,
@ -208,7 +210,7 @@
</select>
<!-- 列表 -->
<select id="list" parameterType="map" resultMap="cardTemplateDTO">
<select id="list" parameterType="map" resultMap="cardTemplateDTO" useCache="true">
SELECT
t1.card_template_id,
t1.template_mode,

View File

@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.systemcard.dao.cardtemplatedispatch.ICardTemplateDispatchDao">
<cache/>
<resultMap id="cardTemplateDispatchDTO" type="cn.com.tenlion.systemcard.pojo.dtos.cardtemplatedispatch.CardTemplateDispatchDTO">
<result column="card_template_dispatch_id" property="cardTemplateDispatchId"/>
<result column="card_template_use_id" property="cardTemplateUseId"/>
@ -45,7 +47,7 @@
</resultMap>
<!-- 新增 -->
<insert id="save" parameterType="map">
<insert id="save" parameterType="map" flushCache="true">
INSERT INTO e_card_template_dispatch(
card_template_dispatch_id,
card_template_use_id,
@ -74,7 +76,7 @@
</insert>
<!-- 删除 -->
<update id="remove" parameterType="map">
<update id="remove" parameterType="map" flushCache="true">
UPDATE
e_card_template_dispatch
SET
@ -89,7 +91,7 @@
</update>
<!-- 删除(物理) -->
<update id="delete" parameterType="map">
<update id="delete" parameterType="map" flushCache="true">
DELETE FROM
e_card_template_dispatch
WHERE
@ -100,7 +102,7 @@
</update>
<!-- 修改 -->
<update id="update" parameterType="map">
<update id="update" parameterType="map" flushCache="true">
UPDATE
e_card_template_dispatch
SET
@ -127,7 +129,7 @@
</update>
<!-- 详情 -->
<select id="get" parameterType="map" resultMap="cardTemplateDispatchDTO">
<select id="get" parameterType="map" resultMap="cardTemplateDispatchDTO" useCache="true">
SELECT
t1.card_template_dispatch_id,
t1.card_template_use_id,
@ -195,7 +197,7 @@
</select>
<!-- 列表 -->
<select id="list" parameterType="map" resultMap="cardTemplateDispatchDTO">
<select id="list" parameterType="map" resultMap="cardTemplateDispatchDTO" useCache="true">
SELECT temp.* FROM
(
SELECT

View File

@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.systemcard.dao.cardtemplatescans.ICardTemplateScansDao">
<cache/>
<resultMap id="cardTemplateScansDTO" type="cn.com.tenlion.systemcard.pojo.dtos.cardtemplatescans.CardTemplateScansDTO">
<result column="card_template_scans_id" property="cardTemplateScansId"/>
<result column="card_template_dispatch_id" property="cardTemplateDispatchId"/>
@ -42,7 +44,7 @@
</resultMap>
<!-- 新增 -->
<insert id="save" parameterType="map">
<insert id="save" parameterType="map" flushCache="true">
INSERT INTO e_card_template_scans(
card_template_scans_id,
card_template_dispatch_id,
@ -69,7 +71,7 @@
</insert>
<!-- 删除 -->
<update id="remove" parameterType="map">
<update id="remove" parameterType="map" flushCache="true">
UPDATE
e_card_template_scans
SET
@ -84,7 +86,7 @@
</update>
<!-- 删除(物理) -->
<update id="delete" parameterType="map">
<update id="delete" parameterType="map" flushCache="true">
DELETE FROM
e_card_template_scans
WHERE
@ -95,7 +97,7 @@
</update>
<!-- 修改 -->
<update id="update" parameterType="map">
<update id="update" parameterType="map" flushCache="true">
UPDATE
e_card_template_scans
SET
@ -110,7 +112,7 @@
</update>
<!-- 详情 -->
<select id="get" parameterType="map" resultMap="cardTemplateScansDTO">
<select id="get" parameterType="map" resultMap="cardTemplateScansDTO" useCache="true">
SELECT
t1.card_template_scans_id,
t1.card_template_dispatch_id,
@ -183,7 +185,7 @@
</select>
<!-- 首页列表 -->
<select id="listHome" parameterType="map" resultMap="cardTemplateScansDTO">
<select id="listHome" parameterType="map" resultMap="cardTemplateScansDTO" useCache="true">
SELECT
t1.card_template_scans_id,
t1.card_template_dispatch_id,
@ -204,7 +206,7 @@
</select>
<!-- 列表 -->
<select id="list" parameterType="map" resultMap="cardTemplateScansDTO">
<select id="list" parameterType="map" resultMap="cardTemplateScansDTO" useCache="true">
SELECT
t1.card_template_scans_id,
t1.card_template_dispatch_id,

View File

@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.systemcard.dao.cardtemplateuse.ICardTemplateUseDao">
<cache/>
<resultMap id="cardTemplateUseDTO" type="cn.com.tenlion.systemcard.pojo.dtos.cardtemplateuse.CardTemplateUseDTO">
<result column="card_template_use_id" property="cardTemplateUseId"/>
<result column="picture_template_id" property="pictureTemplateId"/>
@ -83,7 +85,7 @@
</resultMap>
<!-- 修改系统默认状态 -->
<update id="updateSystem" parameterType="map">
<update id="updateSystem" parameterType="map" flushCache="true">
UPDATE
e_card_template_use
SET
@ -96,7 +98,7 @@
</update>
<!-- 修改审核状态 -->
<update id="updateCheck" parameterType="map">
<update id="updateCheck" parameterType="map" flushCache="true">
UPDATE
e_card_template_use
SET
@ -107,7 +109,7 @@
</update>
<!-- 名片浏览数量+1 -->
<update id="saveAddScansNumber" parameterType="java.lang.String">
<update id="saveAddScansNumber" parameterType="java.lang.String" flushCache="true">
UPDATE
e_card_template_use
SET
@ -117,7 +119,7 @@
</update>
<!-- 名片转发数量+1 -->
<update id="saveAddDispatchNumber" parameterType="java.lang.String">
<update id="saveAddDispatchNumber" parameterType="java.lang.String" flushCache="true">
UPDATE
e_card_template_use
SET
@ -127,7 +129,7 @@
</update>
<!-- 更新置顶名片 -->
<update id="updateDefault" parameterType="map">
<update id="updateDefault" parameterType="map" flushCache="true">
UPDATE
e_card_template_use
SET
@ -140,7 +142,7 @@
</update>
<!-- 新增 -->
<insert id="save" parameterType="map">
<insert id="save" parameterType="map" flushCache="true">
INSERT INTO e_card_template_use(
card_template_use_id,
picture_template_id,
@ -209,7 +211,7 @@
</insert>
<!-- 删除 -->
<update id="remove" parameterType="map">
<update id="remove" parameterType="map" flushCache="true">
UPDATE
e_card_template_use
SET
@ -224,7 +226,7 @@
</update>
<!-- 删除(物理) -->
<update id="delete" parameterType="map">
<update id="delete" parameterType="map" flushCache="true">
DELETE FROM
e_card_template_use
WHERE
@ -235,7 +237,7 @@
</update>
<!-- 修改 -->
<update id="update" parameterType="map">
<update id="update" parameterType="map" flushCache="true">
UPDATE
e_card_template_use
SET
@ -271,7 +273,7 @@
</update>
<!-- 我的默认 -->
<select id="getDefault" parameterType="map" resultMap="cardTemplateUseDTO">
<select id="getDefault" parameterType="map" resultMap="cardTemplateUseDTO" useCache="true">
SELECT
t1.card_template_use_id,
t1.picture_template_id,
@ -310,7 +312,7 @@
</select>
<!-- 系统默认 -->
<select id="getSystem" parameterType="map" resultMap="cardTemplateUseDTO">
<select id="getSystem" parameterType="map" resultMap="cardTemplateUseDTO" useCache="true">
SELECT
t1.card_template_use_id,
t1.picture_template_id,
@ -349,7 +351,7 @@
</select>
<!-- 详情 -->
<select id="get" parameterType="map" resultMap="cardTemplateUseDTO">
<select id="get" parameterType="map" resultMap="cardTemplateUseDTO" useCache="true">
SELECT
t1.card_template_use_id,
t1.picture_template_id,
@ -457,7 +459,7 @@
</select>
<!-- 列表 -->
<select id="list" parameterType="map" resultMap="cardTemplateUseDTO">
<select id="list" parameterType="map" resultMap="cardTemplateUseDTO" useCache="true">
SELECT
t1.card_template_use_id,
t1.picture_template_id,

View File

@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.systemcard.dao.cardtemplateusearea.ICardTemplateUseAreaDao">
<cache/>
<resultMap id="cardTemplateUseAreaDTO" type="cn.com.tenlion.systemcard.pojo.dtos.cardtemplateusearea.CardTemplateUseAreaDTO">
<result column="card_template_use_area_id" property="cardTemplateUseAreaId"/>
<result column="card_template_use_id" property="cardTemplateUseId"/>
@ -94,7 +96,7 @@
</resultMap>
<!-- 新增 -->
<insert id="save" parameterType="map">
<insert id="save" parameterType="map" flushCache="true">
INSERT INTO e_card_template_use_area(
card_template_use_area_id,
card_template_use_id,
@ -157,7 +159,7 @@
</insert>
<!-- 删除 -->
<update id="remove" parameterType="map">
<update id="remove" parameterType="map" flushCache="true">
UPDATE
e_card_template_use_area
SET
@ -172,7 +174,7 @@
</update>
<!-- 删除(物理) -->
<update id="delete" parameterType="map">
<update id="delete" parameterType="map" flushCache="true">
DELETE FROM
e_card_template_use_area
WHERE
@ -183,7 +185,7 @@
</update>
<!-- 修改 -->
<update id="update" parameterType="map">
<update id="update" parameterType="map" flushCache="true">
UPDATE
e_card_template_use_area
SET
@ -201,7 +203,7 @@
</update>
<!-- 详情 -->
<select id="get" parameterType="map" resultMap="cardTemplateUseAreaDTO">
<select id="get" parameterType="map" resultMap="cardTemplateUseAreaDTO" useCache="true">
SELECT
t1.card_template_use_area_id,
t1.card_template_use_id,
@ -320,7 +322,7 @@
</select>
<!-- 列表 -->
<select id="list" parameterType="map" resultMap="cardTemplateUseAreaDTO">
<select id="list" parameterType="map" resultMap="cardTemplateUseAreaDTO" useCache="true">
SELECT
t1.card_template_use_area_id,
t1.card_template_use_id,

View File

@ -2,6 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.tenlion.systemcard.dao.cardtemplateusebag.ICardTemplateUseBagDao">
<cache/>
<resultMap id="cardTemplateUseBagDTO" type="cn.com.tenlion.systemcard.pojo.dtos.cardtemplateusebag.CardTemplateUseBagDTO">
<result column="card_template_use_bag_id" property="cardTemplateUseBagId"/>
<result column="card_template_use_id" property="cardTemplateUseId"/>
@ -42,7 +44,7 @@
</resultMap>
<!-- 新增 -->
<insert id="save" parameterType="map">
<insert id="save" parameterType="map" flushCache="true">
INSERT INTO e_card_template_use_bag(
card_template_use_bag_id,
card_template_use_id,
@ -69,7 +71,7 @@
</insert>
<!-- 删除 -->
<update id="remove" parameterType="map">
<update id="remove" parameterType="map" flushCache="true">
UPDATE
e_card_template_use_bag
SET
@ -84,7 +86,7 @@
</update>
<!-- 删除(物理) -->
<update id="delete" parameterType="map">
<update id="delete" parameterType="map" flushCache="true">
DELETE FROM
e_card_template_use_bag
WHERE
@ -95,7 +97,7 @@
</update>
<!-- 我的卡包置顶状态修改 -->
<update id="updateTop" parameterType="map">
<update id="updateTop" parameterType="map" flushCache="true">
UPDATE
e_card_template_use_bag
SET
@ -105,7 +107,7 @@
</update>
<!-- 修改 -->
<update id="update" parameterType="map">
<update id="update" parameterType="map" flushCache="true">
UPDATE
e_card_template_use_bag
SET
@ -129,7 +131,7 @@
</update>
<!-- 详情 -->
<select id="get" parameterType="map" resultMap="cardTemplateUseBagDTO">
<select id="get" parameterType="map" resultMap="cardTemplateUseBagDTO" useCache="true">
SELECT
t1.card_template_use_bag_id,
t1.card_template_use_id,
@ -194,7 +196,7 @@
</select>
<!-- 列表 -->
<select id="list" parameterType="map" resultMap="cardTemplateUseBagDTO">
<select id="list" parameterType="map" resultMap="cardTemplateUseBagDTO" useCache="true">
SELECT temp.* FROM (
SELECT
t1.card_template_use_bag_id,

View File

@ -145,11 +145,13 @@
};
//关闭事件
socket.onclose = function() {
console.log("Socket已关闭");
consoleLog = "控制台连接断开...\r\n\r\n";
setCodeTxt(consoleLog);
};
//发生了错误事件
socket.onerror = function() {
alert("Socket发生了错误");
consoleLog = "控制台连接错误...\r\n\r\n";
setCodeTxt(consoleLog);
//此时可以尝试刷新页面
}
}
@ -298,13 +300,6 @@
$(cmainFrame());
// 初始化内容
function initData() {
}
initData();
//设置代码内容
function setCodeTxt(value){
$("#editor").focus();
@ -367,6 +362,15 @@
closeBox();
});
// 初始化内容
function initData() {
consoleLog = "控制台等待连接...\r\n\r\n";
setCodeTxt(consoleLog);
}
initData();
});
</script>
</body>