Skip to content

Commit 6143e41

Browse files
committed
优化代码
1 parent 6d6fca5 commit 6143e41

File tree

5 files changed

+28
-7
lines changed

5 files changed

+28
-7
lines changed

Readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Provide users with use, including complaints and suggestions, payment, repairs,
1616

1717
## how to use
1818

19-
[Operation Manual](http://bbs.homecommunity.cn/document.html?docId=102022031484710001)
20-
19+
[Operation Manual](https://github.com/java110/MicroCommunity/wiki)
2120

2221
## product
2322

Readme_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Provide users with use, including complaints and suggestions, payment, repairs,
1616

1717
## how to use
1818

19-
[Operation Manual](http://bbs.homecommunity.cn/document.html?docId=102022031484710001)
19+
[Operation Manual](https://github.com/java110/MicroCommunity/wiki)
2020

2121

2222
## product

java110-bean/src/main/java/com/java110/dto/reportOwnerPayFee/ReportOwnerPayFeeDto.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public class ReportOwnerPayFeeDto extends PageDto implements Serializable {
4747

4848
private String statusCd = "0";
4949

50+
private String feeEndTime;
51+
52+
5053
private List<ReportOwnerPayFeeDto> reportOwnerPayFeeDtos;
5154

5255

@@ -276,4 +279,12 @@ public String getRoomNum() {
276279
public void setRoomNum(String roomNum) {
277280
this.roomNum = roomNum;
278281
}
282+
283+
public String getFeeEndTime() {
284+
return feeEndTime;
285+
}
286+
287+
public void setFeeEndTime(String feeEndTime) {
288+
this.feeEndTime = feeEndTime;
289+
}
279290
}

java110-db/src/main/resources/mapper/report/ReportOwnerPayFeeServiceDaoImplMapper.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
LEFT JOIN f_floor ff on bu.floor_id = ff.floor_id and ff.status_cd = '0'
5151
left join owner_car oc on t.payer_obj_id = oc.car_id and t.payer_obj_type = '6666' and oc.status_cd = '0' and oc.car_type_cd='1001'
5252
left join contract con on t.payer_obj_id = con.contract_id and t.payer_obj_type = '7777' and con.status_cd = '0'
53-
where t.end_time > NOW()
53+
where 1=1
54+
<if test="feeEndTime !=null and feeEndTime != ''">
55+
and t.end_time &gt; #{feeEndTime}
56+
</if>
5457
and t.state = '2008001'
5558
and t.status_cd = '0'
5659
<if test="configId !=null and configId != ''">
@@ -153,7 +156,10 @@
153156
LEFT JOIN f_floor ff on bu.floor_id = ff.floor_id and ff.status_cd = '0'
154157
left join owner_car oc on t.payer_obj_id = oc.car_id and t.payer_obj_type = '6666' and oc.status_cd = '0' and oc.car_type_cd='1001'
155158
left join contract con on t.payer_obj_id = con.contract_id and t.payer_obj_type = '7777' and con.status_cd = '0'
156-
where t.end_time > NOW()
159+
where 1=1
160+
<if test="feeEndTime !=null and feeEndTime != ''">
161+
and t.end_time &gt; #{feeEndTime}
162+
</if>
157163
and t.state = '2008001'
158164
and t.status_cd = '0'
159165
<if test="configId !=null and configId != ''">

service-report/src/main/java/com/java110/report/bmo/reportOwnerPayFee/impl/GetReportOwnerPayFeeBMOImpl.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.springframework.stereotype.Service;
1414

1515
import java.util.ArrayList;
16+
import java.util.Calendar;
1617
import java.util.List;
1718

1819
@Service("getReportOwnerPayFeeBMOImpl")
@@ -26,8 +27,12 @@ public class GetReportOwnerPayFeeBMOImpl implements IGetReportOwnerPayFeeBMO {
2627
* @return 订单服务能够接受的报文
2728
*/
2829
public ResponseEntity<String> get(ReportOwnerPayFeeDto reportOwnerPayFeeDto) {
29-
30-
30+
if(!StringUtil.isEmpty(reportOwnerPayFeeDto.getPfYear())) {
31+
reportOwnerPayFeeDto.setFeeEndTime(reportOwnerPayFeeDto.getPfYear()+"-01-01");
32+
}else{
33+
Calendar calendar =Calendar.getInstance();
34+
reportOwnerPayFeeDto.setFeeEndTime(calendar.get(Calendar.YEAR)+"-01-01");
35+
}
3136
int count = reportOwnerPayFeeInnerServiceSMOImpl.queryReportOwnerPayFeesCount(reportOwnerPayFeeDto);
3237

3338
List<ReportOwnerPayFeeDto> reportOwnerPayFeeDtos = null;

0 commit comments

Comments
 (0)