Commit db229216 by yangliang

修改人员反馈加载方式

parent acb90ac7
package com.founder.ryswtz.service;
import com.founder.model.AutoTbStRy;
import com.founder.model.ResultMap;
import org.springframework.stereotype.Service;
import java.util.List;
......@@ -12,5 +13,5 @@ import java.util.List;
public interface RyxxService {
public AutoTbStRy getRycjInfoByrybh(String rybh);
public AutoTbStRy getRycjInfoByzjhm(String zjhm);
public List<AutoTbStRy> getRycjInfoByzjhmorder(String zjhm);
public ResultMap getRycjInfoByzjhmorder(String zjhm);
}
......@@ -2,10 +2,12 @@ package com.founder.ryswtz.service.impl;
import com.founder.dao.TbXwRycjDao;
import com.founder.model.AutoTbStRy;
import com.founder.model.ResultMap;
import com.founder.ryswtz.service.RyxxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -33,10 +35,21 @@ public class RyxxServiceImpl implements RyxxService{
}
@Override
public List<AutoTbStRy> getRycjInfoByzjhmorder(String zjhm) {
public ResultMap getRycjInfoByzjhmorder(String zjhm) {
AutoTbStRy xyrC=new AutoTbStRy();
Map<String, Object> map = new HashMap<>();
ResultMap resultMap=new ResultMap();
List<AutoTbStRy> xyrCs = rycjDao.getRycjInfoByzjhm(zjhm);
return xyrCs;
String szzwbh = "";
Date lrsj = null;
for(int i = 0;i<xyrCs.size();i++){
AutoTbStRy xyrtemp = xyrCs.get(i);
if(xyrtemp.getSzzwbh()!=null&&!"".equals(xyrtemp.getSzzwbh())&&(lrsj==null||(xyrtemp.getLrsj()!=null&&lrsj.before(xyrtemp.getLrsj())))){
szzwbh = xyrtemp.getSzzwbh();
lrsj = xyrtemp.getLrsj();
}
}
resultMap.setCount(xyrCs.size());
resultMap.setData(xyrCs);
return resultMap;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment