|
|
|
|
@ -1,9 +1,12 @@ |
|
|
|
|
|
|
|
|
|
package org.springblade.modules.business.service.impl; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
@ -41,8 +44,17 @@ public class InvoiceApplyServiceImpl extends BaseServiceImpl<InvoiceApplyMapper, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<Map<String, Object>> finishWorkList() { |
|
|
|
|
return baseMapper.finishWorkList(); |
|
|
|
|
public IPage finishWorkList(Query query) { |
|
|
|
|
int startPage = query == null || query.getCurrent() == null ? 1 : query.getCurrent(); |
|
|
|
|
int size = query == null || query.getSize() == null ? 10 : query.getSize(); |
|
|
|
|
|
|
|
|
|
List<Map<String, Object>> data = baseMapper.finishWorkList((startPage - 1) * size, size); |
|
|
|
|
int total = baseMapper.finishWorkListCount(); |
|
|
|
|
|
|
|
|
|
IPage page = new Page(startPage, size); |
|
|
|
|
page.setRecords(data); |
|
|
|
|
page.setTotal(total); |
|
|
|
|
return page; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@ -56,7 +68,8 @@ public class InvoiceApplyServiceImpl extends BaseServiceImpl<InvoiceApplyMapper, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
applyOld.setApplyUser(AuthUtil.getUserId()); |
|
|
|
|
applyOld.setApplyUserName(AuthUtil.getUserName()); |
|
|
|
|
applyOld.setApplyUserAccount(AuthUtil.getUserName()); |
|
|
|
|
applyOld.setApplyUserName(AuthUtil.getNickName()); |
|
|
|
|
applyOld.setApplyTime(DateUtil.now()); |
|
|
|
|
|
|
|
|
|
applyOld.setUpdateUser(AuthUtil.getUserId()); |
|
|
|
|
@ -75,7 +88,8 @@ public class InvoiceApplyServiceImpl extends BaseServiceImpl<InvoiceApplyMapper, |
|
|
|
|
InvoiceApply applyOld = getById(id); |
|
|
|
|
applyOld.setUpdateUser(AuthUtil.getUserId()); |
|
|
|
|
applyOld.setConfirmUser(AuthUtil.getUserId()); |
|
|
|
|
applyOld.setConfirmUserName(AuthUtil.getUserName()); |
|
|
|
|
applyOld.setConfirmUserAccount(AuthUtil.getUserName()); |
|
|
|
|
applyOld.setConfirmUserName(AuthUtil.getNickName()); |
|
|
|
|
applyOld.setConfirmTime(DateUtil.now()); |
|
|
|
|
applyOld.setStatus(InvoiceEnum.INVOICE_STATUS_CONFIRM.getValue()); |
|
|
|
|
updateById(applyOld); |
|
|
|
|
|