Commit f954d7dc authored by 赵啸非's avatar 赵啸非

添加系统接入模块

parent 8a053b2a
...@@ -28,49 +28,10 @@ public class PhQueueStatVo extends BaseEntityLong { ...@@ -28,49 +28,10 @@ public class PhQueueStatVo extends BaseEntityLong {
private List<String> hallNameList; private List<String> hallNameList;
/** 开始 */ /** 开始 评价时间 */
private Integer yearStart; private String timeStart;
/** 结束 年 */ /** 结束 评价时间 */
private Integer yearEnd; private String timeEnd;
/** 增加 年 */
private Integer yearIncrement;
/** 年列表 */
private List <Integer> yearList;
/** 年排除列表 */
private List <Integer> yearNotList;
/** 开始 月 */
private Integer monthStart;
/** 结束 月 */
private Integer monthEnd;
/** 增加 月 */
private Integer monthIncrement;
/** 月列表 */
private List <Integer> monthList;
/** 月排除列表 */
private List <Integer> monthNotList;
/** 开始 日 */
private Integer dayStart;
/** 结束 日 */
private Integer dayEnd;
/** 增加 日 */
private Integer dayIncrement;
/** 日列表 */
private List <Integer> dayList;
/** 日排除列表 */
private List <Integer> dayNotList;
} }
\ No newline at end of file
...@@ -33,4 +33,6 @@ public class PhQueueVo extends BaseEntityLong { ...@@ -33,4 +33,6 @@ public class PhQueueVo extends BaseEntityLong {
@MobileDesensitize @MobileDesensitize
private String peoplePhone; private String peoplePhone;
} }
\ No newline at end of file
...@@ -24,47 +24,10 @@ public class StatVo extends BaseEntityLong { ...@@ -24,47 +24,10 @@ public class StatVo extends BaseEntityLong {
/** 结束 创建时间 */ /** 结束 创建时间 */
private String createTimeEnd; private String createTimeEnd;
/** 开始 */ /** 开始 评价时间 */
private Integer yearStart; private String timeStart;
/** 结束 年 */ /** 结束 评价时间 */
private Integer yearEnd; private String timeEnd;
/** 增加 年 */
private Integer yearIncrement;
/** 年列表 */
private List <Integer> yearList;
/** 年排除列表 */
private List <Integer> yearNotList;
/** 开始 月 */
private Integer monthStart;
/** 结束 月 */
private Integer monthEnd;
/** 增加 月 */
private Integer monthIncrement;
/** 月列表 */
private List <Integer> monthList;
/** 月排除列表 */
private List <Integer> monthNotList;
/** 开始 日 */
private Integer dayStart;
/** 结束 日 */
private Integer dayEnd;
/** 日列表 */
private List <Integer> dayList;
/** 日排除列表 */
private List <Integer> dayNotList;
} }
\ No newline at end of file
...@@ -27,9 +27,31 @@ ...@@ -27,9 +27,31 @@
where where
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
<include refid="_condition_"/> <include refid="_condition_"/>
<include refid="_condition_two_"/>
</trim> </trim>
</trim> </trim>
<include refid="_group_by_"/> <include refid="_group_by_"/>
<include refid="_orderCols_"/> <include refid="_orderCols_"/>
</select> </select>
<!-- 条件映射 -->
<sql id="_condition_two_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_two_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
</if>
</sql>
<sql id="_condition_param_two_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('timeStart') and conditionParamRef.timeStart != null and conditionParamRef.timeStart!=''">
${_conditionType_} STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')<![CDATA[ >= ]]>STR_TO_DATE(#{${_conditionParam_}.timeStart},'%Y-%m-%d')
</if>
<if test="conditionParamRef.containsKey('timeEnd') and conditionParamRef.timeEnd != null and conditionParamRef.timeEnd!=''">
${_conditionType_} STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')<![CDATA[ <= ]]>STR_TO_DATE(#{${_conditionParam_}.timeEnd},'%Y-%m-%d')
</if>
</sql>
</mapper> </mapper>
\ No newline at end of file
...@@ -22,9 +22,31 @@ ...@@ -22,9 +22,31 @@
where where
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
<include refid="_condition_"/> <include refid="_condition_"/>
<include refid="_condition_two_"/>
</trim> </trim>
</trim> </trim>
<include refid="_group_by_"/> <include refid="_group_by_"/>
<include refid="_orderCols_"/> <include refid="_orderCols_"/>
</select> </select>
<!-- 条件映射 -->
<sql id="_condition_two_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_two_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
</if>
</sql>
<sql id="_condition_param_two_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('timeStart') and conditionParamRef.timeStart != null and conditionParamRef.timeStart!=''">
${_conditionType_} STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')<![CDATA[ >= ]]>STR_TO_DATE(#{${_conditionParam_}.timeStart},'%Y-%m-%d')
</if>
<if test="conditionParamRef.containsKey('timeEnd') and conditionParamRef.timeEnd != null and conditionParamRef.timeEnd!=''">
${_conditionType_} STR_TO_DATE(CONCAT(`year`,'-',`month`,'-',`day`),'%Y-%m-%d')<![CDATA[ <= ]]>STR_TO_DATE(#{${_conditionParam_}.timeEnd},'%Y-%m-%d')
</if>
</sql>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment