|
|
@ -22,6 +22,7 @@ import org.springframework.web.multipart.MultipartFile; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.OutputStream; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -41,7 +42,15 @@ public class ProjectDailyService extends ServiceImpl<ProjectDailyMapper, Project |
|
|
|
ProjectDailyQuery params = pq.getParams(); |
|
|
|
QueryWrapper<ProjectDaily> wq = new QueryWrapper<>(); |
|
|
|
if (params != null) { |
|
|
|
|
|
|
|
if (params.getDataDateStart() != null && !params.getDataDateStart().equals("")) { |
|
|
|
wq.ge("orderDate", params.getDataDateStart()); |
|
|
|
} |
|
|
|
if (params.getDataDateEnd() != null && !params.getDataDateEnd().equals("")) { |
|
|
|
wq.le("orderDate", params.getDataDateEnd()); |
|
|
|
} |
|
|
|
if (params.getProjectName() != null && !params.getProjectName().equals("")) { |
|
|
|
wq.like("projectName", params.getProjectName()); |
|
|
|
} |
|
|
|
} |
|
|
|
IPage<ProjectDaily> page = PagerUtil.queryToPage(pq); |
|
|
|
IPage<ProjectDailyVo> projectDailyVoIPage = baseMapper.selectPageVo(page, wq); |
|
|
@ -99,10 +108,7 @@ public class ProjectDailyService extends ServiceImpl<ProjectDailyMapper, Project |
|
|
|
} |
|
|
|
|
|
|
|
public ProjectDaily fetchByProjectAndDay(String projectSid, String orderDate) { |
|
|
|
QueryWrapper<ProjectDaily> qw = new QueryWrapper<>(); |
|
|
|
qw.eq("projectSid", projectSid) |
|
|
|
.eq("orderDate", orderDate); |
|
|
|
return baseMapper.selectOne(qw); |
|
|
|
return baseMapper.selectByProSidAndOrderDate(projectSid,orderDate); |
|
|
|
} |
|
|
|
|
|
|
|
public void sendMess(String projectSid, String orderDate) { |
|
|
@ -119,4 +125,12 @@ public class ProjectDailyService extends ServiceImpl<ProjectDailyMapper, Project |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean selectProBySid(String sid){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
ProjectDaily projectDaily = baseMapper.selectOne(sid); |
|
|
|
BigDecimal big = new BigDecimal(projectDaily.getTotalLoan()); |
|
|
|
projectDaily.setTotalLoanA(big.setScale(2, 2).toString()); |
|
|
|
return rb.success().setData(projectDaily); |
|
|
|
} |
|
|
|
} |
|
|
|