|
|
@@ -23,6 +23,8 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.File;
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.text.ParseException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
@@ -72,7 +74,7 @@ public class InvAccountOperateServiceImpl extends ServiceImpl<InvAccountOperateM
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public IPage<InvAccountOperate> selectList(InvAccountOperate accountOperate) {
|
|
|
+ public IPage<InvAccountOperate> selectList(InvAccountOperate accountOperate) throws ParseException {
|
|
|
PageRequest pageRequest = new PageRequest();
|
|
|
pageRequest.setPageNum(accountOperate.getPageNo());
|
|
|
pageRequest.setPageSize(accountOperate.getPageSize());
|
|
|
@@ -80,6 +82,11 @@ public class InvAccountOperateServiceImpl extends ServiceImpl<InvAccountOperateM
|
|
|
IPage<InvAccountOperate> invAccountOperateIPage = invAccountOperateMapper.selectInsAccountOperate(page, accountOperate);
|
|
|
List<InvAccountOperate> records = invAccountOperateIPage.getRecords();
|
|
|
for (InvAccountOperate record : records) {
|
|
|
+ String createTime = record.getCreateTime();
|
|
|
+ SimpleDateFormat inputFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ SimpleDateFormat outputFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+ String outputDate = outputFormat.format(inputFormat.parse(createTime));
|
|
|
+ record.setCreateTime(outputDate);
|
|
|
StringBuilder a = new StringBuilder();
|
|
|
if (record.getPayMethod() != null) {
|
|
|
String[] split = record.getPayMethod().split(",");
|
|
|
@@ -133,7 +140,7 @@ public class InvAccountOperateServiceImpl extends ServiceImpl<InvAccountOperateM
|
|
|
InvAccountCard invAccount = outsideTransfer(outAccountCard, outAccount, entAccountCard, entAccount, applyAmount);
|
|
|
invAccountCardService.updateById(invAccount);
|
|
|
BaseController baseController = new BaseController();
|
|
|
- invAccountOperate.setCreateTime(LocalDateTime.now());
|
|
|
+ invAccountOperate.setCreateTime(LocalDateTime.now().toString());
|
|
|
invAccountOperate.setOutProfit(null);
|
|
|
invAccountOperate.setEnterCardNum(entAccountCard.getBankCardNum());
|
|
|
invAccountOperate.setCreateBy(baseController.getUserName());
|