winter 1 год назад
Родитель
Сommit
34431d72f1
3 измененных файлов: 8 добавлений и 2 удалений
  1. +2
    -2
      mallinkAdmin/src/main/java/com/iformall/controller/market/WxFinanceController.java
  2. +4
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxFinanceCheckOut.java
  3. +2
    -0
      mallinkService/src/main/resources/mapper/WxFinanceCheckOutMapper.xml

+ 2
- 2
mallinkAdmin/src/main/java/com/iformall/controller/market/WxFinanceController.java Просмотреть файл

@@ -862,8 +862,8 @@ public class WxFinanceController extends BaseController {
private boolean isValidPayTime(Date date,TenantEntity tenantEntity) {
WxFinanceCheckOut periodFindq = new WxFinanceCheckOut();
periodFindq.updateTenantInfo(tenantEntity);
periodFindq.setStartDate(date);
periodFindq.setEndDate(date);
periodFindq.setStartDateGt(date);
periodFindq.setEndDateLt(date);
List<WxFinanceCheckOut> list = wxFinanceService.getCheckOutList(periodFindq);
if (null != list && list.size() > 0 ) {
return false;


+ 4
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxFinanceCheckOut.java Просмотреть файл

@@ -54,7 +54,11 @@ public class WxFinanceCheckOut extends TenantEntity {
@io.swagger.annotations.ApiModelProperty(value = "交款开始日期", name = "startDate")
private Date startDate;
@TableField(exist = false)
private Date startDateGt;
@io.swagger.annotations.ApiModelProperty(value = "交款结束日期", name = "endDate")
private Date endDate;
@TableField(exist = false)
private Date endDateLt;
}

+ 2
- 0
mallinkService/src/main/resources/mapper/WxFinanceCheckOutMapper.xml Просмотреть файл

@@ -41,7 +41,9 @@
</if>
<if test=" null != createBy ">and `create_by` = #{createBy}</if>
<if test=" null != startDate ">and `start_date` &gt;= #{startDate}</if>
<if test=" null != startDateGt ">and `start_date` &lt;= #{startDateGt}</if>
<if test=" null != endDate ">and `end_date` &lt;= #{endDate}</if>
<if test=" null != endDateLt ">and `end_date` &gt;= #{endDateLt}</if>
<if test=" null != ids ">
and id in
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">


Загрузка…
Отмена
Сохранить