Commit ab88bfd7 by zhengxj

finish 技工银行信息 on 20191226 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25718 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent b15eb20b
...@@ -103,6 +103,29 @@ public class SysMechanic extends SysUser { ...@@ -103,6 +103,29 @@ public class SysMechanic extends SysUser {
private String operateType; private String operateType;
/**
* 银行卡号
*/
private String bankName;
private String bankArea;
public String getBankName() {
return bankName;
}
public void setBankName(String bankName) {
this.bankName = bankName;
}
public String getBankArea() {
return bankArea;
}
public void setBankArea(String bankArea) {
this.bankArea = bankArea;
}
public String getOperateType() { public String getOperateType() {
return operateType; return operateType;
} }
......
package com.glsx.usercenter.pojo.user; package com.glsx.usercenter.pojo.user;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
public class SysUserServiceFee { public class SysUserServiceFee {
private Integer id; private Integer id;
...@@ -8,35 +9,67 @@ public class SysUserServiceFee { ...@@ -8,35 +9,67 @@ public class SysUserServiceFee {
private Integer userId; private Integer userId;
private String serviceCode; private String serviceCode;
// service_fee,fee_type,user_type,create_time,create_by,remark
private BigDecimal serviceFee;
private BigDecimal installationFee; private Integer feeType;
private BigDecimal repairFee; private Integer userType;
private BigDecimal dismantleFee;
public BigDecimal getInstallationFee() { private Date createTime;
return installationFee;
private Integer createBy;
private String remark;
public BigDecimal getServiceFee() {
return serviceFee;
}
public void setServiceFee(BigDecimal serviceFee) {
this.serviceFee = serviceFee;
}
public Integer getFeeType() {
return feeType;
}
public void setFeeType(Integer feeType) {
feeType = feeType;
}
public Integer getUserType() {
return userType;
}
public void setUserType(Integer userType) {
this.userType = userType;
}
public Date getCreateTime() {
return createTime;
} }
public void setInstallationFee(BigDecimal installationFee) { public void setCreateTime(Date createTime) {
this.installationFee = installationFee; this.createTime = createTime;
} }
public BigDecimal getRepairFee() { public Integer getCreateBy() {
return repairFee; return createBy;
} }
public void setRepairFee(BigDecimal repairFee) { public void setCreateBy(Integer createBy) {
this.repairFee = repairFee; this.createBy = createBy;
} }
public BigDecimal getDismantleFee() { public String getRemark() {
return dismantleFee; return remark;
} }
public void setDismantleFee(BigDecimal dismantleFee) { public void setRemark(String remark) {
this.dismantleFee = dismantleFee; this.remark = remark;
} }
public String getServiceCode() { public String getServiceCode() {
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
package com.glsx.usercenter.service.impl; package com.glsx.usercenter.service.impl;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
import java.util.List; import java.util.List;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
...@@ -33,7 +34,6 @@ import org.slf4j.LoggerFactory; ...@@ -33,7 +34,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.glsx.usercenter.mapper.SysUserMapper;
import com.glsx.usercenter.mapper.SysUserServiceFeeMapper; import com.glsx.usercenter.mapper.SysUserServiceFeeMapper;
import com.glsx.usercenter.pojo.user.SysUserServiceFee; import com.glsx.usercenter.pojo.user.SysUserServiceFee;
import com.glsx.usercenter.service.IUserServicefeeService; import com.glsx.usercenter.service.IUserServicefeeService;
...@@ -90,15 +90,25 @@ public class UserServicefeeServiceImpl implements IUserServicefeeService { ...@@ -90,15 +90,25 @@ public class UserServicefeeServiceImpl implements IUserServicefeeService {
if (StringUtils.isNotBlank(str)) { if (StringUtils.isNotBlank(str)) {
sysUserServiceFeeMapper.deleteByUserId(userId); sysUserServiceFeeMapper.deleteByUserId(userId);
String[] array = str.split("|"); String[] array = str.split("|");
Date now = new Date();
for (int i = 0; i < array.length; i++) { for (int i = 0; i < array.length; i++) {
String item = array[i]; String item = array[i];
SysUserServiceFee sysUserServiceFee = new SysUserServiceFee(); SysUserServiceFee sysUserServiceFee = new SysUserServiceFee();
sysUserServiceFee.setUserId(userId); sysUserServiceFee.setUserId(userId);
sysUserServiceFee.setCreateTime(now);
sysUserServiceFee.setServiceCode(item.split(",")[0]); sysUserServiceFee.setServiceCode(item.split(",")[0]);
sysUserServiceFee.setInstallationFee(new BigDecimal(item.split(",")[1])); sysUserServiceFee.setServiceFee(new BigDecimal(item.split(",")[1]));
sysUserServiceFee.setRepairFee(new BigDecimal(item.split(",")[2])); sysUserServiceFee.setFeeType(1);
sysUserServiceFee.setDismantleFee(new BigDecimal(item.split(",")[3]));
sysUserServiceFeeMapper.insertSelective(sysUserServiceFee); sysUserServiceFeeMapper.insertSelective(sysUserServiceFee);
sysUserServiceFee.setServiceFee(new BigDecimal(item.split(",")[2]));
sysUserServiceFee.setFeeType(2);
sysUserServiceFeeMapper.insertSelective(sysUserServiceFee);
sysUserServiceFee.setServiceFee(new BigDecimal(item.split(",")[3]));
sysUserServiceFee.setFeeType(3);
sysUserServiceFeeMapper.insertSelective(sysUserServiceFee);
} }
} }
......
...@@ -1071,6 +1071,8 @@ ...@@ -1071,6 +1071,8 @@
sm.work_time_end workTimeEnd, sm.work_time_end workTimeEnd,
sm.dispatch_type dispatchType, sm.dispatch_type dispatchType,
sm.send_type sendType, sm.send_type sendType,
sm.bank_name as bankName,
sm.bank_area as bankArea,
ssm.service_id as serviceId, ssm.service_id as serviceId,
su.username as serviceName su.username as serviceName
FROM sys_user u FROM sys_user u
......
...@@ -5,13 +5,16 @@ ...@@ -5,13 +5,16 @@
<id column="id" jdbcType="INTEGER" property="id" /> <id column="id" jdbcType="INTEGER" property="id" />
<result column="user_id" jdbcType="INTEGER" property="userId" /> <result column="user_id" jdbcType="INTEGER" property="userId" />
<result column="service_code" jdbcType="VARCHAR" property="serviceCode" /> <result column="service_code" jdbcType="VARCHAR" property="serviceCode" />
<result column="installation_fee" jdbcType="DECIMAL" property="installationFee" /> <result column="service_fee" jdbcType="DECIMAL" property="serviceFee" />
<result column="repair_fee" jdbcType="DECIMAL" property="repairFee" /> <result column="fee_type" jdbcType="DECIMAL" property="feeType" />
<result column="dismantle_fee" jdbcType="DECIMAL" property="dismantleFee" /> <result column="user_type" jdbcType="INTEGER" property="userType" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, user_id, service_code,installation_fee,repair_fee,dismantle_fee id, user_id, service_code,service_fee,fee_type,user_type,create_time,create_by,remark
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -23,7 +26,7 @@ ...@@ -23,7 +26,7 @@
delete from sys_user_service_fee delete from sys_user_service_fee
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.user.SysUserOrderType"> <insert id="insertSelective" parameterType="com.glsx.usercenter.pojo.user.SysUserServiceFee">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
...@@ -35,15 +38,24 @@ ...@@ -35,15 +38,24 @@
<if test="serviceCode != null"> <if test="serviceCode != null">
service_code, service_code,
</if> </if>
<if test="installationFee != null"> <if test="serviceFee != null">
installation_fee, service_fee,
</if> </if>
<if test="repairFee != null"> <if test="feeType != null">
repair_fee, fee_type,
</if> </if>
<if test="dismantleFee != null"> <if test="userType != null">
dismantle_fee, user_type,
</if> </if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="remark != null">
remark,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
...@@ -54,19 +66,29 @@ ...@@ -54,19 +66,29 @@
#{serviceCode,jdbcType=VARCHAR}, #{serviceCode,jdbcType=VARCHAR},
</if> </if>
<if test="installationFee != null"> <if test="serviceFee != null">
#{installationFee}, #{serviceFee},
</if>
<if test="feeType != null">
#{feeType},
</if>
<if test="userType != null">
#{userType},
</if>
<if test="createTime != null">
#{createTime},
</if> </if>
<if test="repairFee != null"> <if test="createBy != null">
#{repairFee}, #{createBy},
</if> </if>
<if test="dismantleFee != null"> <if test="remark != null">
#{dismantleFee}, #{remark},
</if> </if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.user.SysUserOrderType"> <update id="updateByPrimaryKeySelective" parameterType="com.glsx.usercenter.pojo.user.SysUserServiceFee">
update sys_user_service_fee update sys_user_service_fee
<set> <set>
<if test="userId != null"> <if test="userId != null">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!