|
@@ -18,6 +18,7 @@
|
|
|
<result column="linkman_" property="linkman"/>
|
|
|
<result column="mobile_" property="mobile"/>
|
|
|
<result column="address_" property="address"/>
|
|
|
+ <result column="full_job_resource_" property="fullJobResource"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -33,8 +34,8 @@
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.Organization" useGeneratedKeys="true" keyColumn="id"
|
|
|
keyProperty="id">
|
|
|
- INSERT INTO organization (id_,name_,area_id_,create_time_,update_time_,register_date_,linkman_,mobile_,address_)
|
|
|
- VALUES(#{id},#{name},#{areaId},now(),now(),#{registerDate},#{linkman},#{mobile},#{address})
|
|
|
+ INSERT INTO organization (id_,name_,area_id_,create_time_,update_time_,register_date_,linkman_,mobile_,address_,full_job_resource_)
|
|
|
+ VALUES(#{id},#{name},#{areaId},now(),now(),#{registerDate},#{linkman},#{mobile},#{address},#{fullJobResource})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -44,6 +45,9 @@
|
|
|
<if test="delFlag != null">
|
|
|
del_flag_ = #{delFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
</if>
|
|
|
+ <if test="fullJobResource != null">
|
|
|
+ full_job_resource_ = #{fullJobResource},
|
|
|
+ </if>
|
|
|
<if test="areaId != null">
|
|
|
area_id_ = #{areaId},
|
|
|
</if>
|
|
@@ -76,6 +80,9 @@
|
|
|
|
|
|
<sql id="queryPageSql">
|
|
|
<where>
|
|
|
+ <if test="fullJobResource != null">
|
|
|
+ and o.full_job_resource_ = #{fullJobResource}
|
|
|
+ </if>
|
|
|
<if test="delFlag != null">
|
|
|
and o.del_flag_ = #{delFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|