You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.3 KiB
64 lines
2.3 KiB
<?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.dxhy.erp.dao.RequestRecordDao">
|
|
|
|
<resultMap id="BaseResultMap" type="com.dxhy.erp.entity.RequestRecord">
|
|
<id column="id" property="id" />
|
|
<result column="bzdh" property="bzdh" />
|
|
<result column="invoice_code" property="invoiceCode" />
|
|
<result column="image_id" property="imageId" />
|
|
<result column="invoice_no" property="invoiceNo" />
|
|
<result column="request_detail" property="requestDetail" />
|
|
<result column="response_detail" property="responseDetail" />
|
|
<result column="port_name" property="portName" />
|
|
<result column="retry_times" property="retryTimes" />
|
|
<result column="failed_times" property="failedTimes" />
|
|
<result column="create_time" property="createTime" />
|
|
<result column="last_retry_time" property="lastRetryTime" />
|
|
<result column="status" property="status" />
|
|
<result column="method_name" property="methodName" />
|
|
<result column="active_call" property="activeCall" />
|
|
</resultMap>
|
|
|
|
<select id="selectRecordList" resultMap="BaseResultMap">
|
|
select
|
|
id,
|
|
bzdh,
|
|
invoice_code,
|
|
image_id,
|
|
invoice_no,
|
|
request_detail,
|
|
response_detail,
|
|
port_name,
|
|
retry_times,
|
|
failed_times,
|
|
create_time,
|
|
last_retry_time,
|
|
status,
|
|
method_name,
|
|
active_call from t_dx_erp_request_record
|
|
<where>
|
|
<if test="portName!=null and portName!=''">
|
|
and port_name=#{portName}
|
|
</if>
|
|
<if test="startTime!=null and startTime!=''">
|
|
and create_time>=#{startTime}
|
|
</if>
|
|
<if test="endTime!=null and endTime!=''">
|
|
<![CDATA[
|
|
and create_time<=#{create_time}
|
|
]]>
|
|
</if>
|
|
<if test="status!=null and status!=''">
|
|
and status=#{status}
|
|
</if>
|
|
<if test="methodName!=null and methodName!=''">
|
|
and method_name=#{methodName}
|
|
</if>
|
|
</where>
|
|
order by create_time
|
|
</select>
|
|
|
|
</mapper> |