- 浏览: 15884 次
- 性别:
最新评论
<?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.goldmantis.common.lms.mapper.SalecluesMapper">
<resultMap id="SalecluesResult" type="com.goldmantis.common.lms.model.Saleclues">
<result property="id" column="id"/>
<result property="houseId" column="house_id"/>
<result property="customerManager" column="customer_manager"/>
<result property="contactDate" column="contact_date"/>
<result property="lastContactDate" column="last_contact_date"/>
<result property="sourceCd" column="source_cd"/>
<result property="statusCd" column="status_cd"/>
<result property="natureCd" column="nature_cd"/>
<result property="isTmallOrder" column="is_tmall_order"/>
<result property="tmallOrderNo" column="tmall_order_no"/>
<result property="isRecommand" column="is_recommand"/>
<result property="recommandBy" column="recommand_by"/>
<result property="recommandRemark" column="recommand_remark"/>
<result property="intentionsCd" column="intentions_cd"/>
<result property="expectedTransDate" column="expected_trans_date"/>
<result property="constructPackage" column="construct_package"/>
<result property="constructPackageRemark" column="construct_package_remark"/>
<result property="standardPlanPrice" column="standard_plan_price"/>
<result property="materialPackageRemark" column="material_package_remark"/>
<result property="softPackageRemark" column="soft_package_remark"/>
<result property="stationId" column="station_id"/>
<result property="weshopId" column="weshop_id"/>
<result property="orderNo" column="order_no"/>
<result property="actMeasureDate" column="act_measure_date"/>
<result property="blueprintDate" column="blueprint_date"/>
<result property="reserveOrderDate" column="reserve_order_date"/>
<result property="attentionFactorCd" column="attention_factor_cd"/>
<result property="stylePreferenceCd" column="style_preference_cd"/>
<result property="colorPreferenceCd" column="color_preference_cd"/>
<result property="materialPackageCd" column="material_package_cd"/>
<result property="softPackageCd" column="soft_package_cd"/>
<result property="budget" column="budget"/>
<result property="closeReason" column="close_reason"/>
<result property="deleted" column="deleted"/>
<result property="createDt" column="create_dt"/>
<result property="updateDt" column="update_dt"/>
<result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by"/>
</resultMap>
<resultMap id="SalecluesFollowResult" type="com.goldmantis.common.lms.model.SalecluesFollow">
<result property="id" column="id"/>
<result property="salecluesId" column="saleclues_id"/>
<result property="followWayCd" column="follow_way_cd"/>
<result property="nextFollowDate" column="next_follow_date"/>
<result property="followRecord" column="follow_record"/>
<result property="followDate" column="follow_date"/>
<result property="followBy" column="follow_by"/>
<result property="typeCd" column="type_cd"/>
<result property="deleted" column="deleted"/>
<result property="createDt" column="create_dt"/>
<result property="updateDt" column="update_dt"/>
<result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by"/>
</resultMap>
<resultMap id="SalecluesIncludeFollowlogResult" type="com.goldmantis.common.lms.model.Saleclues" extends="SalecluesResult">
<collection property="followList" ofType="com.goldmantis.common.lms.model.SalecluesFollow" select="getFollowlogListBySalecluesId" column="id"/>
</resultMap>
<sql id="searchColumns">
t.id,
t.house_id houseId,
t.customer_manager customerManager,
t.contact_date contactDate,
t.last_contact_date lastContactDate,
t.source_cd sourceCd,
t.status_cd statusCd,
t.nature_cd natureCd,
t.is_tmall_order isTmallOrder,
t.tmall_order_no tmallOrderNo,
t.is_recommand isRecommand,
t.recommand_by recommandBy,
t.recommand_remark recommandRemark,
t.intentions_cd intentionsCd,
t.expected_trans_date expectedTransDate,
t.construct_package constructPackage,
t.construct_package_remark constructPackageRemark,
t.standard_plan_price standardPlanPrice,
t.material_package_remark materialPackageRemark,
t.soft_package_remark softPackageRemark,
t.station_id stationId,
t.weshop_id weshopId,
t.order_no orderNo,
t.act_measure_date actMeasureDate,
t.blueprint_date blueprintDate,
t.reserve_order_date reserveOrderDate,
t.attention_factor_cd attentionFactorCd,
t.style_preference_cd stylePreferenceCd,
t.color_preference_cd colorPreferenceCd,
t.material_package_cd materialPackageCd,
t.soft_package_cd softPackageCd,
t.budget,
t.close_reason closeReason,
t.deleted,
t.create_dt createDt,
t.update_dt updateDt,
t.create_by createBy,
t.update_by updateBy
</sql>
<select id="listSaleclues" parameterType="map" resultMap="SalecluesResult">
select
<include refid="searchColumns"/>
from
lms_saleclues t
<where>
<if test="id !=null and id != ''">
and t.id = #{id}
</if>
<if test="houseId !=null and houseId != ''">
and t.house_id = #{houseId}
</if>
<if test="customerManager !=null and customerManager != ''">
and t.customer_manager = #{customerManager}
</if>
<if test="contactDate !=null">
and t.contact_date = #{contactDate}
</if>
<if test="lastContactDate !=null">
and t.last_contact_date = #{lastContactDate}
</if>
<if test="sourceCd !=null and sourceCd != ''">
and t.source_cd = #{sourceCd}
</if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd = #{statusCd}
</if>
<if test="natureCd !=null and natureCd != ''">
and t.nature_cd = #{natureCd}
</if>
<if test="isTmallOrder !=null and isTmallOrder != ''">
and t.is_tmall_order = #{isTmallOrder}
</if>
<if test="tmallOrderNo !=null and tmallOrderNo != ''">
and t.tmall_order_no = #{tmallOrderNo}
</if>
<if test="isRecommand !=null and isRecommand != ''">
and t.is_recommand = #{isRecommand}
</if>
<if test="recommandBy !=null and recommandBy != ''">
and t.recommand_by = #{recommandBy}
</if>
<if test="recommandRemark !=null and recommandRemark != ''">
and t.recommand_remark = #{recommandRemark}
</if>
<if test="intentionsCd !=null and intentionsCd != ''">
and t.intentions_cd = #{intentionsCd}
</if>
<if test="expectedTransDate !=null">
and t.expected_trans_date = #{expectedTransDate}
</if>
<if test="constructPackage !=null and constructPackage != ''">
and t.construct_package = #{constructPackage}
</if>
<if test="constructPackageRemark !=null and constructPackageRemark != ''">
and t.construct_package_remark = #{constructPackageRemark}
</if>
<if test="standardPlanPrice !=null">
and t.standard_plan_price = #{standardPlanPrice}
</if>
<if test="materialPackageRemark !=null and materialPackageRemark != ''">
and t.material_package_remark = #{materialPackageRemark}
</if>
<if test="softPackageRemark !=null and softPackageRemark != ''">
and t.soft_package_remark = #{softPackageRemark}
</if>
<if test="stationId !=null and stationId != ''">
and t.station_id = #{stationId}
</if>
<if test="weshopId !=null and weshopId != ''">
and t.weshop_id = #{weshopId}
</if>
<if test="orderNo !=null and orderNo != ''">
and t.order_no = #{orderNo}
</if>
<if test="actMeasureDate !=null">
and t.act_measure_date = #{actMeasureDate}
</if>
<if test="blueprintDate !=null">
and t.blueprint_date = #{blueprintDate}
</if>
<if test="reserveOrderDate !=null">
and t.reserve_order_date = #{reserveOrderDate}
</if>
<if test="attentionFactorCd !=null and attentionFactorCd != ''">
and t.attention_factor_cd = #{attentionFactorCd}
</if>
<if test="stylePreferenceCd !=null and stylePreferenceCd != ''">
and t.style_preference_cd = #{stylePreferenceCd}
</if>
<if test="colorPreferenceCd !=null and colorPreferenceCd != ''">
and t.color_preference_cd = #{colorPreferenceCd}
</if>
<if test="materialPackageCd !=null and materialPackageCd != ''">
and t.material_package_cd = #{materialPackageCd}
</if>
<if test="softPackageCd !=null and softPackageCd != ''">
and t.soft_package_cd = #{softPackageCd}
</if>
<if test="budget !=null and budget != ''">
and t.budget = #{budget}
</if>
<if test="closeReason !=null and closeReason != ''">
and t.close_reason = #{closeReason}
</if>
<if test="deleted !=null and deleted != ''">
and t.deleted = #{deleted}
</if>
<if test="createDt !=null">
and t.create_dt = #{createDt}
</if>
<if test="updateDt !=null">
and t.update_dt = #{updateDt}
</if>
<if test="createBy !=null and createBy != ''">
and t.create_by = #{createBy}
</if>
<if test="updateBy !=null and updateBy != ''">
and t.update_by = #{updateBy}
</if>
</where>
</select>
<select id="getFollowlogListBySalecluesId" parameterType="java.lang.String" resultMap="SalecluesFollowResult">
select
t.id,
t.saleclues_id salecluesId,
t.follow_way_cd followWayCd,
t.next_follow_date nextFollowDate,
t.follow_record followRecord,
t.follow_date followDate,
t.follow_by followBy,
t.type_cd typeCd,
t.deleted,
t.create_dt createDt,
t.update_dt updateDt,
t.create_by createBy,
t.update_by updateBy
from lms_saleclues_follow t
where saleclues_id = #{salecluesId}
</select>
<select id="getSalecluesById" parameterType="java.lang.String" resultType="com.goldmantis.common.lms.model.Saleclues">
select
<include refid="searchColumns"/>
from
lms_saleclues t
where id=#{id}
</select>
<insert id="addSaleclues" parameterType="com.goldmantis.common.lms.model.Saleclues">
insert into lms_saleclues (
id,
house_id,
customer_manager,
contact_date,
last_contact_date,
source_cd,
status_cd,
nature_cd,
is_tmall_order,
tmall_order_no,
is_recommand,
recommand_by,
recommand_remark,
intentions_cd,
expected_trans_date,
construct_package,
construct_package_remark,
standard_plan_price,
material_package_remark,
soft_package_remark,
station_id,
weshop_id,
order_no,
act_measure_date,
blueprint_date,
reserve_order_date,
attention_factor_cd,
style_preference_cd,
color_preference_cd,
material_package_cd,
soft_package_cd,
budget,
close_reason,
deleted,
create_dt,
update_dt,
create_by,
update_by
) values (
#{id},
#{houseId},
#{customerManager},
#{contactDate},
#{lastContactDate},
#{sourceCd},
#{statusCd},
#{natureCd},
#{isTmallOrder},
#{tmallOrderNo},
#{isRecommand},
#{recommandBy},
#{recommandRemark},
#{intentionsCd},
#{expectedTransDate},
#{constructPackage},
#{constructPackageRemark},
#{standardPlanPrice},
#{materialPackageRemark},
#{softPackageRemark},
#{stationId},
#{weshopId},
#{orderNo},
#{actMeasureDate},
#{blueprintDate},
#{reserveOrderDate},
#{attentionFactorCd},
#{stylePreferenceCd},
#{colorPreferenceCd},
#{materialPackageCd},
#{softPackageCd},
#{budget},
#{closeReason},
#{deleted},
#{createDt},
#{updateDt},
#{createBy},
#{updateBy}
)
</insert>
<update id="updateSaleclues" parameterType="com.goldmantis.common.lms.model.Saleclues">
update lms_saleclues
set
house_id = #{houseId},
customer_manager = #{customerManager},
contact_date = #{contactDate},
last_contact_date = #{lastContactDate},
source_cd = #{sourceCd},
status_cd = #{statusCd},
nature_cd = #{natureCd},
is_tmall_order = #{isTmallOrder},
tmall_order_no = #{tmallOrderNo},
is_recommand = #{isRecommand},
recommand_by = #{recommandBy},
recommand_remark = #{recommandRemark},
intentions_cd = #{intentionsCd},
expected_trans_date = #{expectedTransDate},
construct_package = #{constructPackage},
construct_package_remark = #{constructPackageRemark},
standard_plan_price = #{standardPlanPrice},
material_package_remark = #{materialPackageRemark},
soft_package_remark = #{softPackageRemark},
station_id = #{stationId},
weshop_id = #{weshopId},
order_no = #{orderNo},
act_measure_date = #{actMeasureDate},
blueprint_date = #{blueprintDate},
reserve_order_date = #{reserveOrderDate},
attention_factor_cd = #{attentionFactorCd},
style_preference_cd = #{stylePreferenceCd},
color_preference_cd = #{colorPreferenceCd},
material_package_cd = #{materialPackageCd},
soft_package_cd = #{softPackageCd},
budget = #{budget},
close_reason = #{closeReason},
deleted = #{deleted},
create_dt = #{createDt},
update_dt = #{updateDt},
create_by = #{createBy},
update_by = #{updateBy}
where id=#{id}
</update>
<update id="deleteSalecluesByIds" parameterType="java.lang.String">
update lms_saleclues set deleted=1
where id in
<foreach collection="array" index="index" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.goldmantis.common.lms.mapper.SalecluesMapper">
<resultMap id="SalecluesResult" type="com.goldmantis.common.lms.model.Saleclues">
<result property="id" column="id"/>
<result property="houseId" column="house_id"/>
<result property="customerManager" column="customer_manager"/>
<result property="contactDate" column="contact_date"/>
<result property="lastContactDate" column="last_contact_date"/>
<result property="sourceCd" column="source_cd"/>
<result property="statusCd" column="status_cd"/>
<result property="natureCd" column="nature_cd"/>
<result property="isTmallOrder" column="is_tmall_order"/>
<result property="tmallOrderNo" column="tmall_order_no"/>
<result property="isRecommand" column="is_recommand"/>
<result property="recommandBy" column="recommand_by"/>
<result property="recommandRemark" column="recommand_remark"/>
<result property="intentionsCd" column="intentions_cd"/>
<result property="expectedTransDate" column="expected_trans_date"/>
<result property="constructPackage" column="construct_package"/>
<result property="constructPackageRemark" column="construct_package_remark"/>
<result property="standardPlanPrice" column="standard_plan_price"/>
<result property="materialPackageRemark" column="material_package_remark"/>
<result property="softPackageRemark" column="soft_package_remark"/>
<result property="stationId" column="station_id"/>
<result property="weshopId" column="weshop_id"/>
<result property="orderNo" column="order_no"/>
<result property="actMeasureDate" column="act_measure_date"/>
<result property="blueprintDate" column="blueprint_date"/>
<result property="reserveOrderDate" column="reserve_order_date"/>
<result property="attentionFactorCd" column="attention_factor_cd"/>
<result property="stylePreferenceCd" column="style_preference_cd"/>
<result property="colorPreferenceCd" column="color_preference_cd"/>
<result property="materialPackageCd" column="material_package_cd"/>
<result property="softPackageCd" column="soft_package_cd"/>
<result property="budget" column="budget"/>
<result property="closeReason" column="close_reason"/>
<result property="deleted" column="deleted"/>
<result property="createDt" column="create_dt"/>
<result property="updateDt" column="update_dt"/>
<result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by"/>
</resultMap>
<resultMap id="SalecluesFollowResult" type="com.goldmantis.common.lms.model.SalecluesFollow">
<result property="id" column="id"/>
<result property="salecluesId" column="saleclues_id"/>
<result property="followWayCd" column="follow_way_cd"/>
<result property="nextFollowDate" column="next_follow_date"/>
<result property="followRecord" column="follow_record"/>
<result property="followDate" column="follow_date"/>
<result property="followBy" column="follow_by"/>
<result property="typeCd" column="type_cd"/>
<result property="deleted" column="deleted"/>
<result property="createDt" column="create_dt"/>
<result property="updateDt" column="update_dt"/>
<result property="createBy" column="create_by"/>
<result property="updateBy" column="update_by"/>
</resultMap>
<resultMap id="SalecluesIncludeFollowlogResult" type="com.goldmantis.common.lms.model.Saleclues" extends="SalecluesResult">
<collection property="followList" ofType="com.goldmantis.common.lms.model.SalecluesFollow" select="getFollowlogListBySalecluesId" column="id"/>
</resultMap>
<sql id="searchColumns">
t.id,
t.house_id houseId,
t.customer_manager customerManager,
t.contact_date contactDate,
t.last_contact_date lastContactDate,
t.source_cd sourceCd,
t.status_cd statusCd,
t.nature_cd natureCd,
t.is_tmall_order isTmallOrder,
t.tmall_order_no tmallOrderNo,
t.is_recommand isRecommand,
t.recommand_by recommandBy,
t.recommand_remark recommandRemark,
t.intentions_cd intentionsCd,
t.expected_trans_date expectedTransDate,
t.construct_package constructPackage,
t.construct_package_remark constructPackageRemark,
t.standard_plan_price standardPlanPrice,
t.material_package_remark materialPackageRemark,
t.soft_package_remark softPackageRemark,
t.station_id stationId,
t.weshop_id weshopId,
t.order_no orderNo,
t.act_measure_date actMeasureDate,
t.blueprint_date blueprintDate,
t.reserve_order_date reserveOrderDate,
t.attention_factor_cd attentionFactorCd,
t.style_preference_cd stylePreferenceCd,
t.color_preference_cd colorPreferenceCd,
t.material_package_cd materialPackageCd,
t.soft_package_cd softPackageCd,
t.budget,
t.close_reason closeReason,
t.deleted,
t.create_dt createDt,
t.update_dt updateDt,
t.create_by createBy,
t.update_by updateBy
</sql>
<select id="listSaleclues" parameterType="map" resultMap="SalecluesResult">
select
<include refid="searchColumns"/>
from
lms_saleclues t
<where>
<if test="id !=null and id != ''">
and t.id = #{id}
</if>
<if test="houseId !=null and houseId != ''">
and t.house_id = #{houseId}
</if>
<if test="customerManager !=null and customerManager != ''">
and t.customer_manager = #{customerManager}
</if>
<if test="contactDate !=null">
and t.contact_date = #{contactDate}
</if>
<if test="lastContactDate !=null">
and t.last_contact_date = #{lastContactDate}
</if>
<if test="sourceCd !=null and sourceCd != ''">
and t.source_cd = #{sourceCd}
</if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd = #{statusCd}
</if>
<if test="natureCd !=null and natureCd != ''">
and t.nature_cd = #{natureCd}
</if>
<if test="isTmallOrder !=null and isTmallOrder != ''">
and t.is_tmall_order = #{isTmallOrder}
</if>
<if test="tmallOrderNo !=null and tmallOrderNo != ''">
and t.tmall_order_no = #{tmallOrderNo}
</if>
<if test="isRecommand !=null and isRecommand != ''">
and t.is_recommand = #{isRecommand}
</if>
<if test="recommandBy !=null and recommandBy != ''">
and t.recommand_by = #{recommandBy}
</if>
<if test="recommandRemark !=null and recommandRemark != ''">
and t.recommand_remark = #{recommandRemark}
</if>
<if test="intentionsCd !=null and intentionsCd != ''">
and t.intentions_cd = #{intentionsCd}
</if>
<if test="expectedTransDate !=null">
and t.expected_trans_date = #{expectedTransDate}
</if>
<if test="constructPackage !=null and constructPackage != ''">
and t.construct_package = #{constructPackage}
</if>
<if test="constructPackageRemark !=null and constructPackageRemark != ''">
and t.construct_package_remark = #{constructPackageRemark}
</if>
<if test="standardPlanPrice !=null">
and t.standard_plan_price = #{standardPlanPrice}
</if>
<if test="materialPackageRemark !=null and materialPackageRemark != ''">
and t.material_package_remark = #{materialPackageRemark}
</if>
<if test="softPackageRemark !=null and softPackageRemark != ''">
and t.soft_package_remark = #{softPackageRemark}
</if>
<if test="stationId !=null and stationId != ''">
and t.station_id = #{stationId}
</if>
<if test="weshopId !=null and weshopId != ''">
and t.weshop_id = #{weshopId}
</if>
<if test="orderNo !=null and orderNo != ''">
and t.order_no = #{orderNo}
</if>
<if test="actMeasureDate !=null">
and t.act_measure_date = #{actMeasureDate}
</if>
<if test="blueprintDate !=null">
and t.blueprint_date = #{blueprintDate}
</if>
<if test="reserveOrderDate !=null">
and t.reserve_order_date = #{reserveOrderDate}
</if>
<if test="attentionFactorCd !=null and attentionFactorCd != ''">
and t.attention_factor_cd = #{attentionFactorCd}
</if>
<if test="stylePreferenceCd !=null and stylePreferenceCd != ''">
and t.style_preference_cd = #{stylePreferenceCd}
</if>
<if test="colorPreferenceCd !=null and colorPreferenceCd != ''">
and t.color_preference_cd = #{colorPreferenceCd}
</if>
<if test="materialPackageCd !=null and materialPackageCd != ''">
and t.material_package_cd = #{materialPackageCd}
</if>
<if test="softPackageCd !=null and softPackageCd != ''">
and t.soft_package_cd = #{softPackageCd}
</if>
<if test="budget !=null and budget != ''">
and t.budget = #{budget}
</if>
<if test="closeReason !=null and closeReason != ''">
and t.close_reason = #{closeReason}
</if>
<if test="deleted !=null and deleted != ''">
and t.deleted = #{deleted}
</if>
<if test="createDt !=null">
and t.create_dt = #{createDt}
</if>
<if test="updateDt !=null">
and t.update_dt = #{updateDt}
</if>
<if test="createBy !=null and createBy != ''">
and t.create_by = #{createBy}
</if>
<if test="updateBy !=null and updateBy != ''">
and t.update_by = #{updateBy}
</if>
</where>
</select>
<select id="getFollowlogListBySalecluesId" parameterType="java.lang.String" resultMap="SalecluesFollowResult">
select
t.id,
t.saleclues_id salecluesId,
t.follow_way_cd followWayCd,
t.next_follow_date nextFollowDate,
t.follow_record followRecord,
t.follow_date followDate,
t.follow_by followBy,
t.type_cd typeCd,
t.deleted,
t.create_dt createDt,
t.update_dt updateDt,
t.create_by createBy,
t.update_by updateBy
from lms_saleclues_follow t
where saleclues_id = #{salecluesId}
</select>
<select id="getSalecluesById" parameterType="java.lang.String" resultType="com.goldmantis.common.lms.model.Saleclues">
select
<include refid="searchColumns"/>
from
lms_saleclues t
where id=#{id}
</select>
<insert id="addSaleclues" parameterType="com.goldmantis.common.lms.model.Saleclues">
insert into lms_saleclues (
id,
house_id,
customer_manager,
contact_date,
last_contact_date,
source_cd,
status_cd,
nature_cd,
is_tmall_order,
tmall_order_no,
is_recommand,
recommand_by,
recommand_remark,
intentions_cd,
expected_trans_date,
construct_package,
construct_package_remark,
standard_plan_price,
material_package_remark,
soft_package_remark,
station_id,
weshop_id,
order_no,
act_measure_date,
blueprint_date,
reserve_order_date,
attention_factor_cd,
style_preference_cd,
color_preference_cd,
material_package_cd,
soft_package_cd,
budget,
close_reason,
deleted,
create_dt,
update_dt,
create_by,
update_by
) values (
#{id},
#{houseId},
#{customerManager},
#{contactDate},
#{lastContactDate},
#{sourceCd},
#{statusCd},
#{natureCd},
#{isTmallOrder},
#{tmallOrderNo},
#{isRecommand},
#{recommandBy},
#{recommandRemark},
#{intentionsCd},
#{expectedTransDate},
#{constructPackage},
#{constructPackageRemark},
#{standardPlanPrice},
#{materialPackageRemark},
#{softPackageRemark},
#{stationId},
#{weshopId},
#{orderNo},
#{actMeasureDate},
#{blueprintDate},
#{reserveOrderDate},
#{attentionFactorCd},
#{stylePreferenceCd},
#{colorPreferenceCd},
#{materialPackageCd},
#{softPackageCd},
#{budget},
#{closeReason},
#{deleted},
#{createDt},
#{updateDt},
#{createBy},
#{updateBy}
)
</insert>
<update id="updateSaleclues" parameterType="com.goldmantis.common.lms.model.Saleclues">
update lms_saleclues
set
house_id = #{houseId},
customer_manager = #{customerManager},
contact_date = #{contactDate},
last_contact_date = #{lastContactDate},
source_cd = #{sourceCd},
status_cd = #{statusCd},
nature_cd = #{natureCd},
is_tmall_order = #{isTmallOrder},
tmall_order_no = #{tmallOrderNo},
is_recommand = #{isRecommand},
recommand_by = #{recommandBy},
recommand_remark = #{recommandRemark},
intentions_cd = #{intentionsCd},
expected_trans_date = #{expectedTransDate},
construct_package = #{constructPackage},
construct_package_remark = #{constructPackageRemark},
standard_plan_price = #{standardPlanPrice},
material_package_remark = #{materialPackageRemark},
soft_package_remark = #{softPackageRemark},
station_id = #{stationId},
weshop_id = #{weshopId},
order_no = #{orderNo},
act_measure_date = #{actMeasureDate},
blueprint_date = #{blueprintDate},
reserve_order_date = #{reserveOrderDate},
attention_factor_cd = #{attentionFactorCd},
style_preference_cd = #{stylePreferenceCd},
color_preference_cd = #{colorPreferenceCd},
material_package_cd = #{materialPackageCd},
soft_package_cd = #{softPackageCd},
budget = #{budget},
close_reason = #{closeReason},
deleted = #{deleted},
create_dt = #{createDt},
update_dt = #{updateDt},
create_by = #{createBy},
update_by = #{updateBy}
where id=#{id}
</update>
<update id="deleteSalecluesByIds" parameterType="java.lang.String">
update lms_saleclues set deleted=1
where id in
<foreach collection="array" index="index" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>
发表评论
-
删除<作废>
2015-05-03 15:54 484<table class="tbl-box& ... -
excel转换成JAVA到Mysql
2015-04-29 13:43 617excel转换成JAVA到Mysql -
第一个项目的jsp<不会的很多啊!!!>
2015-04-27 18:27 807<%@ page language="java ... -
/*发送短信*/
2015-04-27 18:23 350/*发送邮件*/ $("#sendEma ... -
jquery 删除
2015-04-26 18:32 413$("#btn_clear").click ... -
省市区
2015-04-27 18:23 539<script> $(function(){ ... -
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
2015-04-26 13:16 895<%@ taglib uri="http:// ... -
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
2015-04-24 14:43 1649<%@ taglib prefix="spri ... -
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2015-04-24 14:44 959<%@ taglib prefix="c&qu ... -
<%@ taglib prefix="code" uri="/WEB-INF/tld/code4dropdown.tld"%>
2015-04-24 14:44 639<%@ taglib prefix="code ... -
Android工具下载
2015-04-24 14:44 421原文:http://blog.csdn.net/shulian ... -
mybatis的配置
2015-04-08 16:49 532jdbc.properties driver=com.my ... -
mybatis
2015-04-08 16:45 447pom <project xmlns="htt ... -
JAVA 入门简单的增删改查(Servlet+JSP)二
2015-04-08 16:42 931接着上次的 DAO层 删除操作 package com.zho ... -
JAVA入门简单的增删改查(Servlet+JSP)一
2015-04-08 16:20 2551是一个图书的增删改查 JDBC的连接 package com. ...
相关推荐
##通过sqlcmd执行sql文件 由于sql文件过大,超过了100M,再数据库的窗口执行,结果超出内存了,对于特别大的sql文件可以使用sqlcmd进行执行 ###1.打开cmd窗口 运行–cmd–进入到sql文件所在的文件夹。 如果是win7可...
java sql操作工具类 java sql操作工具类java sql操作工具类 java sql操作工具类java sql操作工具类 java sql操作工具类java sql操作工具类 java sql操作工具类java sql操作工具类 java sql操作工具类java sql操作...
在我个人编写SQL脚本时,至少会把SQL的格式排列成易于阅读的,因为其他人会阅读到你的SQL,无论是在程序中或是脚本文件中,良好的排版不仅让人看起来赏心悦目,在和他人之间做交流时也省时省力,不会因为揉成一团的...
SQL优化是数据库管理中的关键环节,它涉及到提升查询性能、减少资源消耗以及改善系统整体效率。SQL优化软件和工具能够帮助数据库管理员(DBA)和开发人员找出性能瓶颈,优化查询逻辑,从而提高数据库系统的响应速度...
在IT行业中,数据库管理系统是核心组成部分,SQL Server和Oracle分别是微软和甲骨文公司推出的两款广泛应用的关系型数据库系统。在企业级应用中,有时需要在不同的数据库系统间进行数据迁移或兼容性处理,这就涉及到...
本人在Windows7 64位+SQL Server 2012环境下测试通过(系统是全新安装) 使用方法: 1,安装SQLPrompt v5.3,这个不多说。 2,安装完毕后,断开网络连接。 3,打开Visual Studio或者SQL Server Management Studio(版本...
SQLPrompt for SQLServer2016 智能提示插件 SQL2016 提示 SQLPrompt最新版本 绿色版 SQL Prompt 是一款拥有SQL智能提示功能的SQL Server和VS插件。SQL Prompt能根据数据库的对象名称,语法和用户编写的代码片段自动...
SQL Server 导入超大 SQL 脚本文件 SQL Server 是一种关系型数据库管理系统,广泛应用于各种行业。然而,在实际应用中,我们经常会遇到导入超大 SQL 脚本文件的问题。本文将介绍如何使用 osql 工具来导入超大 SQL ...
在Android开发中,有时我们需要与远程数据库进行交互,例如SQLServer。这个场景通常是通过Web服务,如WebService来实现。本文将详细介绍如何在Android应用中利用WebService接口连接到SQLServer数据库,实现数据的增...
SQL Prompt是Redgate Software开发的一款高效SQL代码编辑工具,它为SQL Server的开发人员提供了智能提示、格式化、重构和代码分析等功能,极大地提升了编写和维护SQL代码的效率。SQL Prompt 9是该系列的最新版本,...
SQL 基础 SQL 首页 SQL 简介 SQL 语法 SQL select SQL distinct SQL where SQL AND & OR SQL Order By SQL insert SQL update SQL delete SQL 高级 SQL Top SQL Like SQL 通配符 SQL In SQL Between ...
《SQLMonitor:Oracle数据库SQL跟踪与分析利器》 在IT行业中,数据库的高效管理与优化是至关重要的。针对Oracle数据库,有一款名为SQLMonitor的工具,它专为跟踪和监控SQL语句而设计,帮助开发者和DBA们找出程序...
开源的AI自动生成SQL语句源代码,这款SQLCoder-70B-Alpha在文本到SQL的转换能力上超越了包括GPT-4在内的所有通用模型,它能更准确地理解你的需求,并生成相应的SQL查询。SQLCoder2和SQLCoder-7B模型已经向公众开放,...
SQL Server驱动包是用于Java应用程序通过JDBC(Java Database Connectivity)接口与Microsoft SQL Server数据库进行交互的必备组件。本文将详细介绍这两个重要的驱动文件——sqljdbc.jar和sqljdbc4.jar,以及如何...
SQL Server驱动包`sqljdbc4.jar`是微软官方提供的Java数据库连接器(JDBC),用于在Java应用程序中与Microsoft SQL Server进行通信。JDBC是Java编程语言中的一个标准API,它使得开发人员能够以标准化的方式访问各种...
标题中的"sqlservr32和sqlservr64.zip"指的是SQL Server 2005服务中的两个关键组件,`sqlservr32.exe`和`sqlservr64.exe`。这两个文件是SQL Server服务的核心执行文件,分别对应于32位和64位操作系统。在Windows 8和...
SQLTracker是一款专为数据库操作监控设计的工具,它在IT领域中主要用于跟踪和记录SQL语句的执行情况。SQL(Structured Query Language)是用于管理关系数据库的编程语言,包括查询、更新、插入和删除数据等操作。SQL...
解决oracle sqldeveloper无法连接mysql、SQLServer问题,sqlDeveloper是ORACLE数据库开发工具,自带的是无法连接MS SQL Server以及mysql的,想连接的话需要第三方工具。 使用方法: 解压出来后将2个jar放入jlib...
在数据库管理领域,Oracle SQL和MySQL SQL是两种广泛使用的SQL方言,它们在语法和功能上存在一定的差异。当需要将一个基于Oracle SQL的应用程序迁移到MySQL环境时,就需要进行SQL语句的转换工作。本项目提供了一个...
在Kettle中配置SQL Server数据库连接时,我们需要依赖特定的数据库驱动,这就是SQL JDBC驱动。 SQL JDBC驱动是微软提供的Java Database Connectivity (JDBC) 驱动,使得Java应用程序能够与SQL Server进行交互。有两...