Commit 33138982 by zhanghj

V1.5.1--服务项目新增相册选择功能

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25169 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 69e18dae
......@@ -17,6 +17,8 @@ public class SysServiceItemPhotoConfig {
private Integer sort;
private String remark;
private Boolean isAlbumSelect;
public Integer getId() {
return id;
......@@ -82,4 +84,12 @@ public class SysServiceItemPhotoConfig {
this.sort = sort;
}
public Boolean getIsAlbumSelect() {
return isAlbumSelect;
}
public void setIsAlbumSelect(Boolean isAlbumSelect) {
this.isAlbumSelect = isAlbumSelect;
}
}
\ No newline at end of file
......@@ -6,13 +6,14 @@
<result column="service_item_id" jdbcType="INTEGER" property="serviceItemId" />
<result column="icon_path" jdbcType="VARCHAR" property="iconPath" />
<result column="is_required" jdbcType="BIT" property="isRequired" />
<result column="is_album_select" jdbcType="BIT" property="isAlbumSelect" />
<result column="photo_name" jdbcType="VARCHAR" property="photoName" />
<result column="photo_desc" jdbcType="VARCHAR" property="photoDesc" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
id, service_item_id, icon_path, is_required, photo_name, photo_desc, sort, remark
id, service_item_id, icon_path, is_required, is_album_select, photo_name, photo_desc, sort, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
......@@ -42,10 +43,10 @@
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_service_item_photo_config (service_item_id, icon_path, is_required,
photo_name, photo_desc, sort,
is_album_select, photo_name, photo_desc, sort,
remark)
values (#{serviceItemId,jdbcType=INTEGER}, #{iconPath,jdbcType=VARCHAR}, #{isRequired,jdbcType=BIT},
#{photoName,jdbcType=VARCHAR}, #{photoDesc,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{isAlbumSelect,jdbcType=BIT}, #{photoName,jdbcType=VARCHAR}, #{photoDesc,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysServiceItemPhotoConfig">
......@@ -63,6 +64,9 @@
<if test="isRequired != null">
is_required,
</if>
<if test="isAlbumSelect != null">
is_album_select,
</if>
<if test="photoName != null">
photo_name,
</if>
......@@ -86,6 +90,9 @@
<if test="isRequired != null">
#{isRequired,jdbcType=BIT},
</if>
<if test="isAlbumSelect != null">
#{isAlbumSelect,jdbcType=BIT},
</if>
<if test="photoName != null">
#{photoName,jdbcType=VARCHAR},
</if>
......@@ -112,6 +119,9 @@
<if test="isRequired != null">
is_required = #{isRequired,jdbcType=BIT},
</if>
<if test="isAlbumSelect != null">
is_album_select = #{isAlbumSelect,jdbcType=BIT},
</if>
<if test="photoName != null">
photo_name = #{photoName,jdbcType=VARCHAR},
</if>
......@@ -132,6 +142,7 @@
set service_item_id = #{serviceItemId,jdbcType=INTEGER},
icon_path = #{iconPath,jdbcType=VARCHAR},
is_required = #{isRequired,jdbcType=BIT},
is_album_select = #{isAlbumSelect,jdbcType=BIT},
photo_name = #{photoName,jdbcType=VARCHAR},
photo_desc = #{photoDesc,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
......
......@@ -18,4 +18,5 @@ CREATE TABLE `sys_user_order_type` (
ALTER TABLE `sys_order_status`
MODIFY COLUMN `active_status` tinyint(4) NOT NULL COMMENT '订单进度:0:取消。1.商户已派单。2.服务商已接单,未指派给技工。3.服务商拒单4.服务商已派单,技工未接单。5.技工拒单。6.技工接单未预约。7.技工已预约,未完成 。8.完成。9:删除。10:开始竞价。110:重新指派技工,115:修改安装地址,120:重新预约,125:已上门' AFTER `order_id`;
ALTER TABLE `sys_service_item_photo_config`
ADD COLUMN `is_album_select` tinyint(1) NOT NULL DEFAULT 0 COMMENT '照片是否支持相册选择' AFTER `is_required`;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!