Commit 32a2b366 by zhanghj

V1.6.0--导出对账详情bug修复

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@25982 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e5b95005
...@@ -374,6 +374,7 @@ public class ReportController extends BaseReportController { ...@@ -374,6 +374,7 @@ public class ReportController extends BaseReportController {
exportVO.setAdvanceAmount(vo.getAdvanceAmount().toString()); exportVO.setAdvanceAmount(vo.getAdvanceAmount().toString());
exportVO.setAddress(vo.getProvince() + vo.getCity() + vo.getDistrict()); exportVO.setAddress(vo.getProvince() + vo.getCity() + vo.getDistrict());
exportVO.setStatementStatus(convertStatementStatus(vo.getStatementStatus())); exportVO.setStatementStatus(convertStatementStatus(vo.getStatementStatus()));
exportVO.setRemark("其中运营已垫付" + vo.getAdvanceCount() + "单,共计¥" + vo.getAdvanceAmount());
result.add(exportVO); result.add(exportVO);
} }
} }
......
...@@ -84,4 +84,5 @@ public class ExportReconciliationDetailVO { ...@@ -84,4 +84,5 @@ public class ExportReconciliationDetailVO {
public void setAmount(String amount) { public void setAmount(String amount) {
this.amount = amount; this.amount = amount;
} }
} }
...@@ -95,6 +95,12 @@ public class ExportReconciliationVo{ ...@@ -95,6 +95,12 @@ public class ExportReconciliationVo{
@ExcelColumn(value = "开户行城市",index = 13) @ExcelColumn(value = "开户行城市",index = 13)
private String address; private String address;
/**
* 备注
*/
@ExcelColumn(value = "备注",index = 14)
private String remark;
public String getReconciliationCycle() { public String getReconciliationCycle() {
return reconciliationCycle; return reconciliationCycle;
} }
...@@ -198,5 +204,21 @@ public class ExportReconciliationVo{ ...@@ -198,5 +204,21 @@ public class ExportReconciliationVo{
public void setIDCard(String iDCard) { public void setIDCard(String iDCard) {
IDCard = iDCard; IDCard = iDCard;
} }
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -123,6 +123,10 @@ public class SysReconciliation extends BaseModel implements Serializable { ...@@ -123,6 +123,10 @@ public class SysReconciliation extends BaseModel implements Serializable {
* 身份证号 * 身份证号
*/ */
private String IDCard; private String IDCard;
/**
* 垫付单数量
*/
private Integer advanceCount;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -310,4 +314,12 @@ public class SysReconciliation extends BaseModel implements Serializable { ...@@ -310,4 +314,12 @@ public class SysReconciliation extends BaseModel implements Serializable {
this.phoneNumber = phoneNumber; this.phoneNumber = phoneNumber;
} }
public Integer getAdvanceCount() {
return advanceCount;
}
public void setAdvanceCount(Integer advanceCount) {
this.advanceCount = advanceCount;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -28,14 +28,14 @@ ...@@ -28,14 +28,14 @@
<result column="update_by" jdbcType="INTEGER" property="updateBy" /> <result column="update_by" jdbcType="INTEGER" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="advance_count" jdbcType="INTEGER" property="advanceCount" />
<result column="reconciliation_cycle" jdbcType="VARCHAR" property="reconciliationCycle" /> <result column="reconciliation_cycle" jdbcType="VARCHAR" property="reconciliationCycle" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, reconciliation_monthly_id, reconciliation_sn, user_id, `name`, order_count, quasi_settlement_amount, id, reconciliation_monthly_id, reconciliation_sn, user_id, `name`, order_count, quasi_settlement_amount,
settlement_amount, statement_status, advance_amount, generate_time, bank_card_no, settlement_amount, statement_status, advance_amount, generate_time, bank_card_no,
bank_code, bank_name, province, province_code, city, city_code, district, district_code, bank_code, bank_name, province, province_code, city, city_code, district, district_code,
create_by, create_time, update_by, update_time, remark create_by, create_time, update_by, update_time, remark, advance_count
</sql> </sql>
<select id="selectInfo" parameterType="com.glsx.ordercenter.dto.ReconciliationQuery" resultMap="BaseResultMap"> <select id="selectInfo" parameterType="com.glsx.ordercenter.dto.ReconciliationQuery" resultMap="BaseResultMap">
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
#{province,jdbcType=VARCHAR}, #{provinceCode,jdbcType=INTEGER}, #{city,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, #{provinceCode,jdbcType=INTEGER}, #{city,jdbcType=VARCHAR},
#{cityCode,jdbcType=INTEGER}, #{district,jdbcType=VARCHAR}, #{districtCode,jdbcType=INTEGER}, #{cityCode,jdbcType=INTEGER}, #{district,jdbcType=VARCHAR}, #{districtCode,jdbcType=INTEGER},
#{createBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, #{createBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER},
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}),#{advanceCount, jdbcType=INTEGER},
</insert> </insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.ordercenter.pojo.SysReconciliation" useGeneratedKeys="true"> <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glsx.ordercenter.pojo.SysReconciliation" useGeneratedKeys="true">
insert into sys_reconciliation insert into sys_reconciliation
...@@ -189,6 +189,9 @@ ...@@ -189,6 +189,9 @@
<if test="remark != null"> <if test="remark != null">
remark, remark,
</if> </if>
<if test="advanceCount != null">
advance_count,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="reconciliationMonthlyId != null"> <if test="reconciliationMonthlyId != null">
...@@ -266,6 +269,9 @@ ...@@ -266,6 +269,9 @@
<if test="remark != null"> <if test="remark != null">
#{remark,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
</if> </if>
<if test="advanceCount != null">
#{advanceCount},
</if>
</trim> </trim>
</insert> </insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.ordercenter.pojo.SysReconciliation"> <update id="updateByPrimaryKeySelective" parameterType="com.glsx.ordercenter.pojo.SysReconciliation">
...@@ -346,6 +352,9 @@ ...@@ -346,6 +352,9 @@
<if test="remark != null"> <if test="remark != null">
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
</if> </if>
<if test="advanceCount != null">
advance_count = #{advanceCount},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -374,7 +383,8 @@ ...@@ -374,7 +383,8 @@
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=INTEGER}, update_by = #{updateBy,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR} remark = #{remark,jdbcType=VARCHAR},
advance_count = #{advanceCount}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -407,6 +417,7 @@ ...@@ -407,6 +417,7 @@
count(order_sn) as orderCount, count(order_sn) as orderCount,
SUM(srd.quasi_settlement_amount)as quasiSettlementAmount, SUM(srd.settlement_amount) as settlementAmount, SUM(srd.quasi_settlement_amount)as quasiSettlementAmount, SUM(srd.settlement_amount) as settlementAmount,
SUM(srd.advance_amount) as advancePayment, SUM(srd.advance_amount) as advancePayment,
SUM(CASE WHEN srd.advance_amount > 0 THEN 1 ELSE 0 END) AS advanceCount,
sr.id as id sr.id as id
FROM FROM
sys_reconciliation_detail srd sys_reconciliation_detail srd
......
...@@ -107,6 +107,7 @@ CREATE TABLE `sys_reconciliation` ( ...@@ -107,6 +107,7 @@ CREATE TABLE `sys_reconciliation` (
`update_by` int(11) DEFAULT NULL COMMENT '更新人', `update_by` int(11) DEFAULT NULL COMMENT '更新人',
`update_time` datetime DEFAULT NULL COMMENT '修改时间', `update_time` datetime DEFAULT NULL COMMENT '修改时间',
`remark` varchar(255) DEFAULT NULL COMMENT '备注', `remark` varchar(255) DEFAULT NULL COMMENT '备注',
`advance_count` int(11) NOT NULL DEFAULT 0 COMMENT '垫付单数量'
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `idx_reconciliation_sn` (`reconciliation_sn`) USING BTREE COMMENT '对账单号索引', KEY `idx_reconciliation_sn` (`reconciliation_sn`) USING BTREE COMMENT '对账单号索引',
KEY `idx_user_Id` (`user_id`) COMMENT '用户id索引' KEY `idx_user_Id` (`user_id`) COMMENT '用户id索引'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!