Commit 432ad969 by zhengxj

finish 修正安装设备类型 on 20190223 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17663 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7aae7e5a
...@@ -147,14 +147,14 @@ public class SysOrder { ...@@ -147,14 +147,14 @@ public class SysOrder {
private String installRemark; private String installRemark;
private Byte installDiviceType; private String installDeviceType;
public Byte getInstallDiviceType() { public String getInstallDeviceType() {
return installDiviceType; return installDeviceType;
} }
public void setInstallDiviceType(Byte installDiviceType) { public void setInstallDeviceType(String installDeviceType) {
this.installDiviceType = installDiviceType; this.installDeviceType = installDeviceType;
} }
public String getInstallRemark() { public String getInstallRemark() {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<result column="install_location_picture" jdbcType="VARCHAR" property="installLocationPicture" /> <result column="install_location_picture" jdbcType="VARCHAR" property="installLocationPicture" />
<result column="complete_time" jdbcType="TIMESTAMP" property="completeTime" /> <result column="complete_time" jdbcType="TIMESTAMP" property="completeTime" />
<result column="install_remark" jdbcType="VARCHAR" property="installRemark" /> <result column="install_remark" jdbcType="VARCHAR" property="installRemark" />
<result column="install_divice_type" jdbcType="TINYINT" property="installDiviceType" /> <result column="install_device_type" jdbcType="VARCHAR" property="installDeviceType" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
expect_install_time, service_type, car_owner, car_owner_phone, cancel_time, active_status_array, merchant_id, expect_install_time, service_type, car_owner, car_owner_phone, cancel_time, active_status_array, merchant_id,
mechanic_id, repair_reason, remark, create_time, update_time, create_by, update_by, device_no, mechanic_id, repair_reason, remark, create_time, update_time, create_by, update_by, device_no,
install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture, install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture,
complete_time,install_remark,install_divice_type complete_time,install_remark,install_device_type
</sql> </sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select select
...@@ -251,8 +251,8 @@ ...@@ -251,8 +251,8 @@
<if test="installRemark != null"> <if test="installRemark != null">
install_remark, install_remark,
</if> </if>
<if test="installDiviceType != null"> <if test="installDeviceType != null">
install_divice_type, install_device_type,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
...@@ -367,8 +367,8 @@ ...@@ -367,8 +367,8 @@
<if test="installRemark != null"> <if test="installRemark != null">
#{installRemark,jdbcType=VARCHAR}, #{installRemark,jdbcType=VARCHAR},
</if> </if>
<if test="installDiviceType != null"> <if test="installDeviceType != null">
#{installDiviceType,jdbcType=TINYINT}, #{installDeviceType,jdbcType=VARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -494,8 +494,8 @@ ...@@ -494,8 +494,8 @@
<if test="installRemark != null"> <if test="installRemark != null">
install_remark = #{installRemark,jdbcType=VARCHAR}, install_remark = #{installRemark,jdbcType=VARCHAR},
</if> </if>
<if test="installDiviceType != null"> <if test="installDeviceType != null">
#{installDiviceType,jdbcType=TINYINT}, #{installDeviceType,jdbcType=VARCHAR},
</if> </if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
...@@ -618,13 +618,13 @@ ...@@ -618,13 +618,13 @@
<select id="getServiceItemScale" resultType="com.glsx.ordercenter.dto.ServiceItemInfo"> <select id="getServiceItemScale" resultType="com.glsx.ordercenter.dto.ServiceItemInfo">
SELECT SELECT
install_divice_type installDiviceType, install_device_type installDeviceType,
COUNT(install_divice_type) count COUNT(install_device_type) count
FROM sys_order FROM sys_order
WHERE sys_order.order_type = 1 AND active_status = 8 AND merchant_id = #{userId} WHERE sys_order.order_type = 1 AND active_status = 8 AND merchant_id = #{userId}
<if test="dateStart != null and dateEnd!=null and dateStart !='' and dateEnd !=''"> <if test="dateStart != null and dateEnd!=null and dateStart !='' and dateEnd !=''">
and sys_order.create_time between #{dateStart,jdbcType=TIMESTAMP} and #{dateEnd,jdbcType=TIMESTAMP} and sys_order.create_time between #{dateStart,jdbcType=TIMESTAMP} and #{dateEnd,jdbcType=TIMESTAMP}
</if> </if>
GROUP BY install_divice_type GROUP BY install_device_type
</select> </select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!