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 {
private String installRemark;
private Byte installDiviceType;
private String installDeviceType;
public Byte getInstallDiviceType() {
return installDiviceType;
public String getInstallDeviceType() {
return installDeviceType;
}
public void setInstallDiviceType(Byte installDiviceType) {
this.installDiviceType = installDiviceType;
public void setInstallDeviceType(String installDeviceType) {
this.installDeviceType = installDeviceType;
}
public String getInstallRemark() {
......
......@@ -41,7 +41,7 @@
<result column="install_location_picture" jdbcType="VARCHAR" property="installLocationPicture" />
<result column="complete_time" jdbcType="TIMESTAMP" property="completeTime" />
<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>
<sql id="Example_Where_Clause">
<where>
......@@ -81,7 +81,7 @@
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,
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>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select
......@@ -251,8 +251,8 @@
<if test="installRemark != null">
install_remark,
</if>
<if test="installDiviceType != null">
install_divice_type,
<if test="installDeviceType != null">
install_device_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
......@@ -367,8 +367,8 @@
<if test="installRemark != null">
#{installRemark,jdbcType=VARCHAR},
</if>
<if test="installDiviceType != null">
#{installDiviceType,jdbcType=TINYINT},
<if test="installDeviceType != null">
#{installDeviceType,jdbcType=VARCHAR},
</if>
</trim>
</insert>
......@@ -494,8 +494,8 @@
<if test="installRemark != null">
install_remark = #{installRemark,jdbcType=VARCHAR},
</if>
<if test="installDiviceType != null">
#{installDiviceType,jdbcType=TINYINT},
<if test="installDeviceType != null">
#{installDeviceType,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
......@@ -618,13 +618,13 @@
<select id="getServiceItemScale" resultType="com.glsx.ordercenter.dto.ServiceItemInfo">
SELECT
install_divice_type installDiviceType,
COUNT(install_divice_type) count
install_device_type installDeviceType,
COUNT(install_device_type) count
FROM sys_order
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 !=''">
and sys_order.create_time between #{dateStart,jdbcType=TIMESTAMP} and #{dateEnd,jdbcType=TIMESTAMP}
</if>
GROUP BY install_divice_type
GROUP BY install_device_type
</select>
</mapper>
\ 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!