59 lines
2.0 KiB
XML
59 lines
2.0 KiB
XML
<?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.adc.da.scheduled.dao.SarStandardInfoDao">
|
|
|
|
<!-- Result Map-->
|
|
<!-- <resultMap id="resultMap" type="com.adc.da.scheduled.entity.WarningEO" >-->
|
|
<!-- <id column="ID" property="standId" />-->
|
|
<!-- <result column="STAND_NUMBER" property="standNum" />-->
|
|
<!-- <result column="STAND_NAME" property="standName" />-->
|
|
<!-- <result column="STAND_SORT" property="standSort"/>-->
|
|
<!-- <result column="STAND_YEAR" property="standYear"/>-->
|
|
<!-- <result column="XCXSSRQ" property="XCXSSRQ"/>-->
|
|
<!-- <result column="ZCCSSRQ" property="ZCCSSRQ"/>-->
|
|
<!-- <result column="SSRQ" property="SSRQ"/>-->
|
|
<!-- <result column="CLLX" property="applyType" />-->
|
|
<!-- <result column="STAND_TYPE" property="standType" />-->
|
|
<!-- <result column="ZRGCS" property="dutyEngineer" />-->
|
|
<!-- </resultMap>-->
|
|
|
|
<!-- 查询条件 -->
|
|
<select id="selectWithinTerm" resultType="java.lang.String" parameterType="com.adc.da.scheduled.entity.TermDTO">
|
|
SELECT
|
|
info.ID
|
|
FROM
|
|
sar_standards_info AS info
|
|
JOIN sar_stand_attr_info AS attrInfo ON info.id = attrinfo.stand_id
|
|
<where>
|
|
1=1
|
|
<if test="date!=null">
|
|
and
|
|
attrInfo.SSRQ
|
|
BETWEEN #{date.startDate} and #{date.endDate}
|
|
or
|
|
attrInfo.${str}
|
|
BETWEEN #{date.startDate} and #{date.endDate}
|
|
</if>
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<update id="updateStandardInfo">
|
|
update sar_standards_info
|
|
set TEXT_STATUS=#{textStatus}
|
|
where ID=#{id}
|
|
</update>
|
|
|
|
<update id="deleteStandSystem">
|
|
update sar_standards_info
|
|
set STAND_SYSTEM = null
|
|
where STAND_SYSTEM like #{menuName}
|
|
</update>
|
|
|
|
|
|
</mapper>
|