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 {
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() {
return operateType;
}
......
package com.glsx.usercenter.pojo.user;
import java.math.BigDecimal;
import java.util.Date;
public class SysUserServiceFee {
private Integer id;
......@@ -8,35 +9,67 @@ public class SysUserServiceFee {
private Integer userId;
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() {
return installationFee;
private Date createTime;
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) {
this.installationFee = installationFee;
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public BigDecimal getRepairFee() {
return repairFee;
public Integer getCreateBy() {
return createBy;
}
public void setRepairFee(BigDecimal repairFee) {
this.repairFee = repairFee;
public void setCreateBy(Integer createBy) {
this.createBy = createBy;
}
public BigDecimal getDismantleFee() {
return dismantleFee;
public String getRemark() {
return remark;
}
public void setDismantleFee(BigDecimal dismantleFee) {
this.dismantleFee = dismantleFee;
public void setRemark(String remark) {
this.remark = remark;
}
public String getServiceCode() {
......
......@@ -25,6 +25,7 @@
package com.glsx.usercenter.service.impl;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
......@@ -33,7 +34,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.glsx.usercenter.mapper.SysUserMapper;
import com.glsx.usercenter.mapper.SysUserServiceFeeMapper;
import com.glsx.usercenter.pojo.user.SysUserServiceFee;
import com.glsx.usercenter.service.IUserServicefeeService;
......@@ -90,15 +90,25 @@ public class UserServicefeeServiceImpl implements IUserServicefeeService {
if (StringUtils.isNotBlank(str)) {
sysUserServiceFeeMapper.deleteByUserId(userId);
String[] array = str.split("|");
Date now = new Date();
for (int i = 0; i < array.length; i++) {
String item = array[i];
SysUserServiceFee sysUserServiceFee = new SysUserServiceFee();
sysUserServiceFee.setUserId(userId);
sysUserServiceFee.setCreateTime(now);
sysUserServiceFee.setServiceCode(item.split(",")[0]);
sysUserServiceFee.setInstallationFee(new BigDecimal(item.split(",")[1]));
sysUserServiceFee.setRepairFee(new BigDecimal(item.split(",")[2]));
sysUserServiceFee.setDismantleFee(new BigDecimal(item.split(",")[3]));
sysUserServiceFee.setServiceFee(new BigDecimal(item.split(",")[1]));
sysUserServiceFee.setFeeType(1);
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 @@
sm.work_time_end workTimeEnd,
sm.dispatch_type dispatchType,
sm.send_type sendType,
sm.bank_name as bankName,
sm.bank_area as bankArea,
ssm.service_id as serviceId,
su.username as serviceName
FROM sys_user u
......
......@@ -5,13 +5,16 @@
<id column="id" jdbcType="INTEGER" property="id" />
<result column="user_id" jdbcType="INTEGER" property="userId" />
<result column="service_code" jdbcType="VARCHAR" property="serviceCode" />
<result column="installation_fee" jdbcType="DECIMAL" property="installationFee" />
<result column="repair_fee" jdbcType="DECIMAL" property="repairFee" />
<result column="dismantle_fee" jdbcType="DECIMAL" property="dismantleFee" />
<result column="service_fee" jdbcType="DECIMAL" property="serviceFee" />
<result column="fee_type" jdbcType="DECIMAL" property="feeType" />
<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>
<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>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
......@@ -23,7 +26,7 @@
delete from sys_user_service_fee
where id = #{id,jdbcType=INTEGER}
</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">
SELECT LAST_INSERT_ID()
</selectKey>
......@@ -35,15 +38,24 @@
<if test="serviceCode != null">
service_code,
</if>
<if test="installationFee != null">
installation_fee,
<if test="serviceFee != null">
service_fee,
</if>
<if test="repairFee != null">
repair_fee,
<if test="feeType != null">
fee_type,
</if>
<if test="dismantleFee != null">
dismantle_fee,
</if>
<if test="userType != null">
user_type,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="remark != null">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
......@@ -54,19 +66,29 @@
#{serviceCode,jdbcType=VARCHAR},
</if>
<if test="installationFee != null">
#{installationFee},
<if test="serviceFee != null">
#{serviceFee},
</if>
<if test="feeType != null">
#{feeType},
</if>
<if test="userType != null">
#{userType},
</if>
<if test="createTime != null">
#{createTime},
</if>
<if test="repairFee != null">
#{repairFee},
<if test="createBy != null">
#{createBy},
</if>
<if test="dismantleFee != null">
#{dismantleFee},
</if>
<if test="remark != null">
#{remark},
</if>
</trim>
</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
<set>
<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!