|
@@ -122,7 +122,7 @@ public class MobileTaskServiceImpl implements MobileTaskService {
|
|
|
+ emcode + "' and t.ta_uu = " + enuu + " order by t.ta_id desc ) where rownum < 2",
|
|
+ emcode + "' and t.ta_uu = " + enuu + " order by t.ta_id desc ) where rownum < 2",
|
|
|
OfficeTask.class);
|
|
OfficeTask.class);
|
|
|
List<AppFlowOperation> lastProcess = commonDao.query(
|
|
List<AppFlowOperation> lastProcess = commonDao.query(
|
|
|
- "select * from ( select t.fop_nodename nodename from mobile$flowoperation t where t.fop_statuscode = 'UNAUDIT' and t.fop_nodedealuu = "
|
|
|
|
|
|
|
+ "select * from ( select t.fop_caller caller, t.fop_dealname dealname from mobile$flowoperation t where t.fop_statuscode = 'UNAUDIT' and t.fop_nodedealuu = "
|
|
|
+ emcode + " and t.fop_nodeenuu = " + enuu + " order by t.fop_id desc ) where rownum < 2",
|
|
+ emcode + " and t.fop_nodeenuu = " + enuu + " order by t.fop_id desc ) where rownum < 2",
|
|
|
AppFlowOperation.class);
|
|
AppFlowOperation.class);
|
|
|
|
|
|
|
@@ -134,7 +134,7 @@ public class MobileTaskServiceImpl implements MobileTaskService {
|
|
|
map.put("lasttask", null);
|
|
map.put("lasttask", null);
|
|
|
}
|
|
}
|
|
|
if (!CollectionUtils.isEmpty(lastProcess)) {
|
|
if (!CollectionUtils.isEmpty(lastProcess)) {
|
|
|
- map.put("lastProcess", lastProcess.get(0).getNodename());
|
|
|
|
|
|
|
+ map.put("lastProcess", lastProcess.get(0).getDealname() + lastProcess.get(0).getCaller());
|
|
|
} else {
|
|
} else {
|
|
|
map.put("lastProcess", null);
|
|
map.put("lastProcess", null);
|
|
|
}
|
|
}
|
|
@@ -142,7 +142,7 @@ public class MobileTaskServiceImpl implements MobileTaskService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
- public ModelMap getMyTasks(Long emuu, Long enuu, Integer pageNumber, Integer pageSize, String status) {
|
|
|
|
|
|
|
+ public ModelMap getMyTasks(Long emuu, Long enuu, Integer pageNumber, Integer pageSize) {
|
|
|
ModelMap map = new ModelMap();
|
|
ModelMap map = new ModelMap();
|
|
|
PageParams params = new PageParams();
|
|
PageParams params = new PageParams();
|
|
|
params.setCount(pageSize);
|
|
params.setCount(pageSize);
|
|
@@ -150,7 +150,6 @@ public class MobileTaskServiceImpl implements MobileTaskService {
|
|
|
final PageInfo pageInfo = new PageInfo(params);
|
|
final PageInfo pageInfo = new PageInfo(params);
|
|
|
pageInfo.filter("uu", enuu);
|
|
pageInfo.filter("uu", enuu);
|
|
|
pageInfo.filter("recordercode", emuu);
|
|
pageInfo.filter("recordercode", emuu);
|
|
|
- pageInfo.filter("status", status);
|
|
|
|
|
Page<OfficeTask> officeTask = officeTaskDao.findAll(new Specification<OfficeTask>() {
|
|
Page<OfficeTask> officeTask = officeTaskDao.findAll(new Specification<OfficeTask>() {
|
|
|
public Predicate toPredicate(Root<OfficeTask> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
|
|
public Predicate toPredicate(Root<OfficeTask> root, CriteriaQuery<?> query, CriteriaBuilder builder) {
|
|
|
return query.where(pageInfo.getPredicates(root, query, builder)).getRestriction();
|
|
return query.where(pageInfo.getPredicates(root, query, builder)).getRestriction();
|