fix issue
This commit is contained in:
parent
bbf02a0fca
commit
488e958cc5
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.DevInfoMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.DevInfoMapper">
|
||||||
|
|
||||||
<resultMap type="DevInfo" id="DevInfoResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.DevInfo" id="DevInfoResult">
|
||||||
<result property="maId" column="ma_id" />
|
<result property="maId" column="ma_id" />
|
||||||
<result property="code" column="code" />
|
<result property="code" column="code" />
|
||||||
<result property="typeId" column="type_id" />
|
<result property="typeId" column="type_id" />
|
||||||
|
|
@ -36,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select ma_id, code, type_id, ma_status, lease_scope, location, brand, model_name, production_date, working_hours, serial_number, month_lease_price, day_lease_price, pic_url, js_month_price, js_day_price, description, gps_code, own_co, create_time, creator, deposit, is_active, update_time, update_by from ma_dev_info
|
select ma_id, code, type_id, ma_status, lease_scope, location, brand, model_name, production_date, working_hours, serial_number, month_lease_price, day_lease_price, pic_url, js_month_price, js_day_price, description, gps_code, own_co, create_time, creator, deposit, is_active, update_time, update_by from ma_dev_info
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDevInfoList" parameterType="DevInfo" resultMap="DevInfoResult">
|
<select id="selectDevInfoList" parameterType="com.bonus.zlpt.equip.domain.DevInfo" resultMap="DevInfoResult">
|
||||||
<include refid="selectDevInfoVo"/>
|
<include refid="selectDevInfoVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||||
|
|
@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where ma_id = #{maId}
|
where ma_id = #{maId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertDevInfo" parameterType="DevInfo">
|
<insert id="insertDevInfo" parameterType="com.bonus.zlpt.equip.domain.DevInfo">
|
||||||
insert into ma_dev_info
|
insert into ma_dev_info
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="maId != null">ma_id,</if>
|
<if test="maId != null">ma_id,</if>
|
||||||
|
|
@ -127,7 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateDevInfo" parameterType="DevInfo">
|
<update id="updateDevInfo" parameterType="com.bonus.zlpt.equip.domain.DevInfo">
|
||||||
update ma_dev_info
|
update ma_dev_info
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="code != null">code = #{code},</if>
|
<if test="code != null">code = #{code},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.FileInfoMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.FileInfoMapper">
|
||||||
|
|
||||||
<resultMap type="FileInfo" id="FileInfoResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.FileInfo" id="FileInfoResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="maId" column="ma_id" />
|
<result property="maId" column="ma_id" />
|
||||||
<result property="fileName" column="file_name" />
|
<result property="fileName" column="file_name" />
|
||||||
|
|
@ -16,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id, ma_id, file_name, file_url, type from ma_file_info
|
select id, ma_id, file_name, file_url, type from ma_file_info
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectFileInfoList" parameterType="FileInfo" resultMap="FileInfoResult">
|
<select id="selectFileInfoList" parameterType="com.bonus.zlpt.equip.domain.FileInfo" resultMap="FileInfoResult">
|
||||||
<include refid="selectFileInfoVo"/>
|
<include refid="selectFileInfoVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||||
|
|
@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateFileInfo" parameterType="FileInfo">
|
<update id="updateFileInfo" parameterType="com.bonus.zlpt.equip.domain.FileInfo">
|
||||||
update ma_file_info
|
update ma_file_info
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="maId != null">ma_id = #{maId},</if>
|
<if test="maId != null">ma_id = #{maId},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.HotSearchMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.HotSearchMapper">
|
||||||
|
|
||||||
<resultMap type="HotSearch" id="HotSearchResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.HotSearch" id="HotSearchResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="maId" column="ma_id" />
|
<result property="maId" column="ma_id" />
|
||||||
<result property="searchNum" column="search_num" />
|
<result property="searchNum" column="search_num" />
|
||||||
|
|
@ -14,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id, ma_id, search_num from ma_hot_search
|
select id, ma_id, search_num from ma_hot_search
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectHotSearchList" parameterType="HotSearch" resultMap="HotSearchResult">
|
<select id="selectHotSearchList" parameterType="com.bonus.zlpt.equip.domain.HotSearch" resultMap="HotSearchResult">
|
||||||
<include refid="selectHotSearchVo"/>
|
<include refid="selectHotSearchVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||||
|
|
@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertHotSearch" parameterType="HotSearch">
|
<insert id="insertHotSearch" parameterType="com.bonus.zlpt.equip.domain.HotSearch">
|
||||||
insert into ma_hot_search
|
insert into ma_hot_search
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
|
|
@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateHotSearch" parameterType="HotSearch">
|
<update id="updateHotSearch" parameterType="com.bonus.zlpt.equip.domain.HotSearch">
|
||||||
update ma_hot_search
|
update ma_hot_search
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="maId != null">ma_id = #{maId},</if>
|
<if test="maId != null">ma_id = #{maId},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.LeaseInfoMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.LeaseInfoMapper">
|
||||||
|
|
||||||
<resultMap type="LeaseInfo" id="LeaseInfoResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.LeaseInfo" id="LeaseInfoResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="czNum" column="cz_num" />
|
<result property="czNum" column="cz_num" />
|
||||||
<result property="qzNum" column="qz_num" />
|
<result property="qzNum" column="qz_num" />
|
||||||
|
|
@ -14,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id, cz_num, qz_num from ma_lease_info
|
select id, cz_num, qz_num from ma_lease_info
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectLeaseInfoList" parameterType="LeaseInfo" resultMap="LeaseInfoResult">
|
<select id="selectLeaseInfoList" parameterType="com.bonus.zlpt.equip.domain.LeaseInfo" resultMap="LeaseInfoResult">
|
||||||
<include refid="selectLeaseInfoVo"/>
|
<include refid="selectLeaseInfoVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="czNum != null "> and cz_num = #{czNum}</if>
|
<if test="czNum != null "> and cz_num = #{czNum}</if>
|
||||||
|
|
@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertLeaseInfo" parameterType="LeaseInfo">
|
<insert id="insertLeaseInfo" parameterType="com.bonus.zlpt.equip.domain.LeaseInfo">
|
||||||
insert into ma_lease_info
|
insert into ma_lease_info
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
|
|
@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateLeaseInfo" parameterType="LeaseInfo">
|
<update id="updateLeaseInfo" parameterType="com.bonus.zlpt.equip.domain.LeaseInfo">
|
||||||
update ma_lease_info
|
update ma_lease_info
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="czNum != null">cz_num = #{czNum},</if>
|
<if test="czNum != null">cz_num = #{czNum},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.TypeInfoMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.TypeInfoMapper">
|
||||||
|
|
||||||
<resultMap type="TypeInfo" id="TypeInfoResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.TypeInfo" id="TypeInfoResult">
|
||||||
<result property="typeId" column="type_id" />
|
<result property="typeId" column="type_id" />
|
||||||
<result property="parentId" column="parent_id" />
|
<result property="parentId" column="parent_id" />
|
||||||
<result property="typeName" column="type_name" />
|
<result property="typeName" column="type_name" />
|
||||||
|
|
@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select type_id, parent_id, type_name, unit_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info
|
select type_id, parent_id, type_name, unit_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectTypeInfoList" parameterType="TypeInfo" resultMap="TypeInfoResult">
|
<select id="selectTypeInfoList" parameterType="com.bonus.zlpt.equip.domain.TypeInfo" resultMap="TypeInfoResult">
|
||||||
<include refid="selectTypeInfoVo"/>
|
<include refid="selectTypeInfoVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="typeId != null "> and type_id = #{typeId}</if>
|
<if test="typeId != null "> and type_id = #{typeId}</if>
|
||||||
|
|
@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where type_id = #{typeId}
|
where type_id = #{typeId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertTypeInfo" parameterType="TypeInfo">
|
<insert id="insertTypeInfo" parameterType="com.bonus.zlpt.equip.domain.TypeInfo">
|
||||||
insert into ma_type_info
|
insert into ma_type_info
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeId != null">type_id,</if>
|
<if test="typeId != null">type_id,</if>
|
||||||
|
|
@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateTypeInfo" parameterType="TypeInfo">
|
<update id="updateTypeInfo" parameterType="com.bonus.zlpt.equip.domain.TypeInfo">
|
||||||
update ma_type_info
|
update ma_type_info
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.TypeInfoRecordMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.TypeInfoRecordMapper">
|
||||||
|
|
||||||
<resultMap type="TypeInfoRecord" id="TypeInfoRecordResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.TypeInfoRecord" id="TypeInfoRecordResult">
|
||||||
<result property="typeId" column="type_id" />
|
<result property="typeId" column="type_id" />
|
||||||
<result property="parentId" column="parent_id" />
|
<result property="parentId" column="parent_id" />
|
||||||
<result property="typeName" column="type_name" />
|
<result property="typeName" column="type_name" />
|
||||||
|
|
@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select type_id, parent_id, type_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info_record
|
select type_id, parent_id, type_name, level, sort, is_active, create_time, update_time, update_by from ma_type_info_record
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectTypeInfoRecordList" parameterType="TypeInfoRecord" resultMap="TypeInfoRecordResult">
|
<select id="selectTypeInfoRecordList" parameterType="com.bonus.zlpt.equip.domain.TypeInfoRecord" resultMap="TypeInfoRecordResult">
|
||||||
<include refid="selectTypeInfoRecordVo"/>
|
<include refid="selectTypeInfoRecordVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="typeId != null "> and type_id = #{typeId}</if>
|
<if test="typeId != null "> and type_id = #{typeId}</if>
|
||||||
|
|
@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where type_id = #{typeId}
|
where type_id = #{typeId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertTypeInfoRecord" parameterType="TypeInfoRecord">
|
<insert id="insertTypeInfoRecord" parameterType="com.bonus.zlpt.equip.domain.TypeInfoRecord">
|
||||||
insert into ma_type_info_record
|
insert into ma_type_info_record
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeId != null">type_id,</if>
|
<if test="typeId != null">type_id,</if>
|
||||||
|
|
@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateTypeInfoRecord" parameterType="TypeInfoRecord">
|
<update id="updateTypeInfoRecord" parameterType="com.bonus.zlpt.equip.domain.TypeInfoRecord">
|
||||||
update ma_type_info_record
|
update ma_type_info_record
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.UpOffMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.UpOffMapper">
|
||||||
|
|
||||||
<resultMap type="UpOff" id="UpOffResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.UpOff" id="UpOffResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="maId" column="ma_id" />
|
<result property="maId" column="ma_id" />
|
||||||
<result property="applyTime" column="apply_time" />
|
<result property="applyTime" column="apply_time" />
|
||||||
|
|
@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id, ma_id, apply_time, apply_user, apply_company, type, audit_user, audit_time, status from ma_up_off
|
select id, ma_id, apply_time, apply_user, apply_company, type, audit_user, audit_time, status from ma_up_off
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectUpOffList" parameterType="UpOff" resultMap="UpOffResult">
|
<select id="selectUpOffList" parameterType="com.bonus.zlpt.equip.domain.UpOff" resultMap="UpOffResult">
|
||||||
<include refid="selectUpOffVo"/>
|
<include refid="selectUpOffVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="maId != null "> and ma_id = #{maId}</if>
|
<if test="maId != null "> and ma_id = #{maId}</if>
|
||||||
|
|
@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertUpOff" parameterType="UpOff">
|
<insert id="insertUpOff" parameterType="com.bonus.zlpt.equip.domain.UpOff">
|
||||||
insert into ma_up_off
|
insert into ma_up_off
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
|
|
@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateUpOff" parameterType="UpOff">
|
<update id="updateUpOff" parameterType="com.bonus.zlpt.equip.domain.UpOff">
|
||||||
update ma_up_off
|
update ma_up_off
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="maId != null">ma_id = #{maId},</if>
|
<if test="maId != null">ma_id = #{maId},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.equip.mapper.UserCollectMapper">
|
<mapper namespace="com.bonus.zlpt.equip.mapper.UserCollectMapper">
|
||||||
|
|
||||||
<resultMap type="UserCollect" id="UserCollectResult">
|
<resultMap type="com.bonus.zlpt.equip.domain.UserCollect" id="UserCollectResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="userId" column="user_id" />
|
<result property="userId" column="user_id" />
|
||||||
<result property="maId" column="ma_id" />
|
<result property="maId" column="ma_id" />
|
||||||
|
|
@ -15,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id, user_id, ma_id, time from ma_user_collect
|
select id, user_id, ma_id, time from ma_user_collect
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectUserCollectList" parameterType="UserCollect" resultMap="UserCollectResult">
|
<select id="selectUserCollectList" parameterType="com.bonus.zlpt.equip.domain.UserCollect" resultMap="UserCollectResult">
|
||||||
<include refid="selectUserCollectVo"/>
|
<include refid="selectUserCollectVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="userId != null "> and user_id = #{userId}</if>
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
|
@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertUserCollect" parameterType="UserCollect">
|
<insert id="insertUserCollect" parameterType="com.bonus.zlpt.equip.domain.UserCollect">
|
||||||
insert into ma_user_collect
|
insert into ma_user_collect
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
|
|
@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateUserCollect" parameterType="UserCollect">
|
<update id="updateUserCollect" parameterType="com.bonus.zlpt.equip.domain.UserCollect">
|
||||||
update ma_user_collect
|
update ma_user_collect
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="userId != null">user_id = #{userId},</if>
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.order.mapper.OrderDetailsMapper">
|
<mapper namespace="com.bonus.zlpt.order.mapper.OrderDetailsMapper">
|
||||||
|
|
||||||
<resultMap type="OrderDetails" id="OrderDetailsResult">
|
<resultMap type="com.bonus.zlpt.order.domain.OrderDetails" id="OrderDetailsResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="orderId" column="order_id" />
|
<result property="orderId" column="order_id" />
|
||||||
<result property="needCompany" column="need_company" />
|
<result property="needCompany" column="need_company" />
|
||||||
|
|
@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select id, order_id, need_company, plan_start_time, is_machinist, address, duration, invoice_type, description, ma_id, lease_type, lease_price, machinist_price, order_contract, machinist_name, phone, logistics_phone, real_start_time, rental_name, tenant_name, entry_attachment from ma_order_details
|
select id, order_id, need_company, plan_start_time, is_machinist, address, duration, invoice_type, description, ma_id, lease_type, lease_price, machinist_price, order_contract, machinist_name, phone, logistics_phone, real_start_time, rental_name, tenant_name, entry_attachment from ma_order_details
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectOrderDetailsList" parameterType="OrderDetails" resultMap="OrderDetailsResult">
|
<select id="selectOrderDetailsList" parameterType="com.bonus.zlpt.order.domain.OrderDetails" resultMap="OrderDetailsResult">
|
||||||
<include refid="selectOrderDetailsVo"/>
|
<include refid="selectOrderDetailsVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="orderId != null "> and order_id = #{orderId}</if>
|
<if test="orderId != null "> and order_id = #{orderId}</if>
|
||||||
|
|
@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertOrderDetails" parameterType="OrderDetails">
|
<insert id="insertOrderDetails" parameterType="com.bonus.zlpt.order.domain.OrderDetails">
|
||||||
insert into ma_order_details
|
insert into ma_order_details
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">id,</if>
|
<if test="id != null">id,</if>
|
||||||
|
|
@ -113,7 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateOrderDetails" parameterType="OrderDetails">
|
<update id="updateOrderDetails" parameterType="com.bonus.zlpt.order.domain.OrderDetails">
|
||||||
update ma_order_details
|
update ma_order_details
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="orderId != null">order_id = #{orderId},</if>
|
<if test="orderId != null">order_id = #{orderId},</if>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.zlpt.order.mapper.OrderInfoMapper">
|
<mapper namespace="com.bonus.zlpt.order.mapper.OrderInfoMapper">
|
||||||
|
|
||||||
<resultMap type="OrderInfo" id="OrderInfoResult">
|
<resultMap type="com.bonus.zlpt.order.domain.OrderInfo" id="OrderInfoResult">
|
||||||
<result property="orderId" column="order_id" />
|
<result property="orderId" column="order_id" />
|
||||||
<result property="pId" column="p_id" />
|
<result property="pId" column="p_id" />
|
||||||
<result property="code" column="code" />
|
<result property="code" column="code" />
|
||||||
|
|
@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select order_id, p_id, code, time, deposit, cost, pay_type, supplier, order_status, order_user, order_company from ma_order_info
|
select order_id, p_id, code, time, deposit, cost, pay_type, supplier, order_status, order_user, order_company from ma_order_info
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectOrderInfoList" parameterType="OrderInfo" resultMap="OrderInfoResult">
|
<select id="selectOrderInfoList" parameterType="com.bonus.zlpt.order.domain.OrderInfo" resultMap="OrderInfoResult">
|
||||||
<include refid="selectOrderInfoVo"/>
|
<include refid="selectOrderInfoVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="orderId != null "> and order_id = #{orderId}</if>
|
<if test="orderId != null "> and order_id = #{orderId}</if>
|
||||||
|
|
@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where order_id = #{orderId}
|
where order_id = #{orderId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertOrderInfo" parameterType="OrderInfo">
|
<insert id="insertOrderInfo" parameterType="com.bonus.zlpt.order.domain.OrderInfo">
|
||||||
insert into ma_order_info
|
insert into ma_order_info
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="orderId != null">order_id,</if>
|
<if test="orderId != null">order_id,</if>
|
||||||
|
|
@ -74,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateOrderInfo" parameterType="OrderInfo">
|
<update id="updateOrderInfo" parameterType="com.bonus.zlpt.order.domain.OrderInfo">
|
||||||
update ma_order_info
|
update ma_order_info
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="pId != null">p_id = #{pId},</if>
|
<if test="pId != null">p_id = #{pId},</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue