|
|
|
@ -13,6 +13,7 @@ import com.dxhy.common.controller.AbstractController; |
|
|
|
|
import com.dxhy.common.util.InvoiceUtil; |
|
|
|
|
import com.dxhy.common.util.StringHelper; |
|
|
|
|
import com.dxhy.common.util.UserInfoUtil; |
|
|
|
|
import com.dxhy.common.utils.DateUtils; |
|
|
|
|
import com.dxhy.common.utils.R; |
|
|
|
|
import com.dxhy.common.vo.Tax; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
@ -277,6 +278,35 @@ public class BaseInvoiceController extends AbstractController { |
|
|
|
|
if (StringUtils.isNotBlank(inAccountStatus)) { |
|
|
|
|
pramsMap.put("inAccountStatus", inAccountStatus); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(pramsMap.get("imageNumber") != null){ |
|
|
|
|
pramsMap.put("imageId",pramsMap.get("imageNumber")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(pramsMap.get("snVoucherNumber") != null){ |
|
|
|
|
pramsMap.put("snVoucherNumber",pramsMap.get("snVoucherNumber")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(pramsMap.get("accountPeriod") != null ){ |
|
|
|
|
if(pramsMap.get("accountPeriod").toString().length() > 7) { |
|
|
|
|
String accountPeriod = pramsMap.get("accountPeriod").toString().substring(0, 7); |
|
|
|
|
pramsMap.put("accountPeriod", accountPeriod); |
|
|
|
|
}else{ |
|
|
|
|
pramsMap.put("accountPeriod", pramsMap.get("accountPeriod")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (pramsMap.get("postingTimeStart") != null && !"".equals(pramsMap.get("postingTimeStart"))) { |
|
|
|
|
pramsMap.put("postingTimeStart", |
|
|
|
|
DateUtils.getMorning(DateUtils.strToDate(pramsMap.get("postingTimeStart").toString()))); |
|
|
|
|
} |
|
|
|
|
if (pramsMap.get("postingTimeEnd") != null && !"".equals(pramsMap.get("postingTimeEnd"))) { |
|
|
|
|
pramsMap.put("postingTimeEnd", |
|
|
|
|
DateUtils.getNight(DateUtils.strToDate(pramsMap.get("postingTimeEnd").toString()))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info("请求列表的参数为:{}",pramsMap); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
return ResponseEntity.ok(R.ok().put("data", baseRzFpxxService.selectByPramsMap(pramsMap, curr, size))); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|