|
@@ -23,6 +23,7 @@ import java.util.Set;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
+import com.base.service.IBaseOrgTypeService;
|
|
import jxl.Workbook;
|
|
import jxl.Workbook;
|
|
import jxl.format.Alignment;
|
|
import jxl.format.Alignment;
|
|
import jxl.write.Label;
|
|
import jxl.write.Label;
|
|
@@ -102,6 +103,9 @@ public class BusInitController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IBusOrgService busOrgService;
|
|
private IBusOrgService busOrgService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IBaseOrgTypeService baseOrgTypeService;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private IBusMeterReadInfoService busMeterReadInfoService;
|
|
private IBusMeterReadInfoService busMeterReadInfoService;
|
|
|
|
|
|
@@ -159,7 +163,7 @@ public String busInitList(Model model) {
|
|
public String bugInitInfoList(int pageNo, int pageSize, String orgNumber,
|
|
public String bugInitInfoList(int pageNo, int pageSize, String orgNumber,
|
|
String orgName, String year, String busOrgCustomerNumber,
|
|
String orgName, String year, String busOrgCustomerNumber,
|
|
String address, String busOrgMeterNumber, String isPlanUser,
|
|
String address, String busOrgMeterNumber, String isPlanUser,
|
|
- String userType, HttpServletRequest request) {
|
|
|
|
|
|
+ String userType, String orgNature, HttpServletRequest request) {
|
|
|
|
|
|
String hql = "select b from BusOrg b where b.importStatus='normal'";
|
|
String hql = "select b from BusOrg b where b.importStatus='normal'";
|
|
if (null != orgNumber && !orgNumber.equals("")) {
|
|
if (null != orgNumber && !orgNumber.equals("")) {
|
|
@@ -186,6 +190,9 @@ public String bugInitInfoList(int pageNo, int pageSize, String orgNumber,
|
|
if (null != isPlanUser && !isPlanUser.equals("")) {
|
|
if (null != isPlanUser && !isPlanUser.equals("")) {
|
|
hql += " and b.isPlanUser ='" + isPlanUser + "'";
|
|
hql += " and b.isPlanUser ='" + isPlanUser + "'";
|
|
}
|
|
}
|
|
|
|
+ if (null != orgNature && !orgNature.equals("")) {
|
|
|
|
+ hql += " and b.orgNature like '%" + orgNature + "%'";
|
|
|
|
+ }
|
|
this.page = busOrgService.getPageByHql(hql, pageNo, pageSize);
|
|
this.page = busOrgService.getPageByHql(hql, pageNo, pageSize);
|
|
String result = this.getPageJosnResult();
|
|
String result = this.getPageJosnResult();
|
|
|
|
|
|
@@ -258,8 +265,6 @@ public Object createYearWaterInfo(String ids, String startTime,
|
|
*
|
|
*
|
|
* @param startTime
|
|
* @param startTime
|
|
* @param endTime
|
|
* @param endTime
|
|
- * @param pageNo
|
|
|
|
- * @param pageSize
|
|
|
|
* @param year
|
|
* @param year
|
|
*/
|
|
*/
|
|
public void doInityearDate(Date startTime, Date endTime,String year,int initValue) {
|
|
public void doInityearDate(Date startTime, Date endTime,String year,int initValue) {
|
|
@@ -296,13 +301,18 @@ private void doDataInit(int orgNumber,Long orgId, Date startTime, Date endTime,i
|
|
// return;
|
|
// return;
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
+ BusOrg borg1 = busOrgService.get(orgId);
|
|
|
|
+ String name = borg1.getOrgNature();
|
|
|
|
+ //取增长比例
|
|
|
|
+ Float GR = baseOrgTypeService.getGrowthRatio(name);
|
|
|
|
+
|
|
// 找到12个月区间总水量
|
|
// 找到12个月区间总水量
|
|
List<BusMeterReadInfo> listM = busMeterReadInfoService.getStartOneMonthMeterInfo(orgNumber, startTime, endTime);
|
|
List<BusMeterReadInfo> listM = busMeterReadInfoService.getStartOneMonthMeterInfo(orgNumber, startTime, endTime);
|
|
Float w = 0f;
|
|
Float w = 0f;
|
|
for (int i = 0; i < listM.size(); i++) {
|
|
for (int i = 0; i < listM.size(); i++) {
|
|
- BusMeterReadInfo info = listM.get(i);
|
|
|
|
- w += info.getWater();
|
|
|
|
- }
|
|
|
|
|
|
+ BusMeterReadInfo info = listM.get(i);
|
|
|
|
+ w += info.getWater();
|
|
|
|
+ }
|
|
|
|
|
|
// 计划水量加上5%
|
|
// 计划水量加上5%
|
|
int planWater = (int) Math.round((1+Float.valueOf(initValue)/100) * w);
|
|
int planWater = (int) Math.round((1+Float.valueOf(initValue)/100) * w);
|
|
@@ -373,7 +383,7 @@ public String userInitInfoList(Model model) {
|
|
public String busUserInfoList(int pageNo, int pageSize, String orgNumber,
|
|
public String busUserInfoList(int pageNo, int pageSize, String orgNumber,
|
|
String orgName, String year, String busOrgCustomerNumber,
|
|
String orgName, String year, String busOrgCustomerNumber,
|
|
String address, String busOrgMeterNumber, String isPlanUser,
|
|
String address, String busOrgMeterNumber, String isPlanUser,
|
|
- String userType, HttpServletRequest request) {
|
|
|
|
|
|
+ String userType, String orgNature, HttpServletRequest request) {
|
|
String hql="select b from BusOrg b where b.importStatus='normal'";
|
|
String hql="select b from BusOrg b where b.importStatus='normal'";
|
|
if(null != busOrgCustomerNumber && !busOrgCustomerNumber.equals("")){
|
|
if(null != busOrgCustomerNumber && !busOrgCustomerNumber.equals("")){
|
|
hql +=" and b.orgId in(select bcm.org.orgId from BusCustomerMeter bcm where bcm.customerNumber='"+busOrgCustomerNumber+"')";
|
|
hql +=" and b.orgId in(select bcm.org.orgId from BusCustomerMeter bcm where bcm.customerNumber='"+busOrgCustomerNumber+"')";
|
|
@@ -399,6 +409,9 @@ public String busUserInfoList(int pageNo, int pageSize, String orgNumber,
|
|
if (null != isPlanUser && !isPlanUser.equals("")) {
|
|
if (null != isPlanUser && !isPlanUser.equals("")) {
|
|
hql += " and b.isPlanUser ='" + isPlanUser+"'";
|
|
hql += " and b.isPlanUser ='" + isPlanUser+"'";
|
|
}
|
|
}
|
|
|
|
+ if (null != orgNature && !orgNature.equals("")) {
|
|
|
|
+ hql += " and b.orgNature like '%" + orgNature + "%'";
|
|
|
|
+ }
|
|
this.page = busOrgService.getPageByHql(hql, pageNo, pageSize);
|
|
this.page = busOrgService.getPageByHql(hql, pageNo, pageSize);
|
|
String result = this.getPageJosnResult();
|
|
String result = this.getPageJosnResult();
|
|
log.debug("#########################result" + result);
|
|
log.debug("#########################result" + result);
|
|
@@ -646,7 +659,7 @@ public String unitYearPlanWater(Model model){
|
|
public String getYearPlanData(int pageNo,int pageSize,String orgNumber,
|
|
public String getYearPlanData(int pageNo,int pageSize,String orgNumber,
|
|
String orgName, String year, String busOrgCustomerNumber,
|
|
String orgName, String year, String busOrgCustomerNumber,
|
|
String address, String busOrgMeterNumber, String priYearUseWater,
|
|
String address, String busOrgMeterNumber, String priYearUseWater,
|
|
- String userType,String status,String org_name) throws ParseException{
|
|
|
|
|
|
+ String userType, String orgNature,String status,String org_name) throws ParseException{
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
//String sql = "select p.status_id,o.org_id,o.org_number,o.org_name,o.user_type,o.year,p.plan_of_water,p.replay_of_water,p.first_quarter_plan,p.second_quarter_plan,p.third_quarter_plan,p.fourth_quarter_plan,p.user_name,p.fill_time,p.remark,p.pri_year_usewater FROM `bus_annual_plan_for_water` as p left join bus_org o on p.org_id=o.org_id where p.is_cancel='yes'";
|
|
//String sql = "select p.status_id,o.org_id,o.org_number,o.org_name,o.user_type,o.year,p.plan_of_water,p.replay_of_water,p.first_quarter_plan,p.second_quarter_plan,p.third_quarter_plan,p.fourth_quarter_plan,p.user_name,p.fill_time,p.remark,p.pri_year_usewater FROM `bus_annual_plan_for_water` as p left join bus_org o on p.org_id=o.org_id where p.is_cancel='yes'";
|
|
String sql = "select p.status_id,o.org_id,o.org_number,o.org_name,o.user_type,o.year,p.plan_of_water,p.reply_of_water,p.first_quarter_reply,p.second_quarter_reply,p.third_quarter_reply,p.fourth_quarter_reply,p.user_name,p.fill_time,p.remark,p.pri_year_usewater ";
|
|
String sql = "select p.status_id,o.org_id,o.org_number,o.org_name,o.user_type,o.year,p.plan_of_water,p.reply_of_water,p.first_quarter_reply,p.second_quarter_reply,p.third_quarter_reply,p.fourth_quarter_reply,p.user_name,p.fill_time,p.remark,p.pri_year_usewater ";
|
|
@@ -668,6 +681,9 @@ public String getYearPlanData(int pageNo,int pageSize,String orgNumber,
|
|
if (null != orgName && !orgName.equals("")) {
|
|
if (null != orgName && !orgName.equals("")) {
|
|
sql +=" and o.org_name like '%"+orgName+"%'";
|
|
sql +=" and o.org_name like '%"+orgName+"%'";
|
|
}
|
|
}
|
|
|
|
+ if (null != orgNature && !orgNature.equals("")) {
|
|
|
|
+ sql += " and b.orgNature like '%" + orgNature + "%'";
|
|
|
|
+ }
|
|
if (null != year && !year.equals("")) {
|
|
if (null != year && !year.equals("")) {
|
|
sql +=" and o.year='"+year+"'";
|
|
sql +=" and o.year='"+year+"'";
|
|
}
|
|
}
|
|
@@ -928,7 +944,6 @@ public Object editYearUnitNotice(BusAnnualPlanForWater plan,BusOrg busOrg,Long s
|
|
/**
|
|
/**
|
|
* 水表信息数据
|
|
* 水表信息数据
|
|
* @param request
|
|
* @param request
|
|
- * @param model
|
|
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("AdjWaterList.do")
|
|
@RequestMapping("AdjWaterList.do")
|
|
@@ -982,7 +997,7 @@ public Object YearUnitNoticeCancel(Long[] ids){
|
|
* @throws UnsupportedEncodingException
|
|
* @throws UnsupportedEncodingException
|
|
*/
|
|
*/
|
|
@RequestMapping("unitWaterExportData.do")
|
|
@RequestMapping("unitWaterExportData.do")
|
|
-public void unitWaterExportData(String orgNumber,String orgName,String year,String busOrgCustomerNumber,String address,
|
|
|
|
|
|
+public void unitWaterExportData(String orgNumber,String orgName,String orgNature,String year,String busOrgCustomerNumber,String address,
|
|
String busOrgMeterNumber,String priYearUseWater,String userType,String status,HttpServletResponse response,HttpServletRequest request) throws UnsupportedEncodingException{
|
|
String busOrgMeterNumber,String priYearUseWater,String userType,String status,HttpServletResponse response,HttpServletRequest request) throws UnsupportedEncodingException{
|
|
//request.setCharacterEncoding("UTF-8");
|
|
//request.setCharacterEncoding("UTF-8");
|
|
String hql="select w from BusAnnualPlanForWater w join w.org o where w.isCancel='yes'";
|
|
String hql="select w from BusAnnualPlanForWater w join w.org o where w.isCancel='yes'";
|
|
@@ -994,6 +1009,11 @@ public void unitWaterExportData(String orgNumber,String orgName,String year,Stri
|
|
orgName = new String(orgName.getBytes("iso8859-1"),"UTF-8");
|
|
orgName = new String(orgName.getBytes("iso8859-1"),"UTF-8");
|
|
hql +=" and o.orgName like '%"+orgName+"%'";
|
|
hql +=" and o.orgName like '%"+orgName+"%'";
|
|
}
|
|
}
|
|
|
|
+ if(!orgNature.equals("")){
|
|
|
|
+
|
|
|
|
+ orgNature = new String(orgNature.getBytes("iso8859-1"),"UTF-8");
|
|
|
|
+ hql +=" and o.orgNature like '%"+orgNature+"%'";
|
|
|
|
+ }
|
|
if(!year.equals("")){
|
|
if(!year.equals("")){
|
|
hql +=" and o.year='"+year+"'";
|
|
hql +=" and o.year='"+year+"'";
|
|
}else{
|
|
}else{
|
|
@@ -1120,8 +1140,8 @@ private void fillExcel(WritableSheet sheet,String hql,int pageNo,int pageSize,in
|
|
sheet.addCell(new Label(10,row,Math.round(plan.getFourthQuarterReply())+""));//四季度
|
|
sheet.addCell(new Label(10,row,Math.round(plan.getFourthQuarterReply())+""));//四季度
|
|
sheet.addCell(new Label(11,row,Math.round(plan.getPlanOfWater())+""));//全年
|
|
sheet.addCell(new Label(11,row,Math.round(plan.getPlanOfWater())+""));//全年
|
|
sheet.addCell(new Label(12,row,Math.round(plan.getReplyOfWater())+""));//全年
|
|
sheet.addCell(new Label(12,row,Math.round(plan.getReplyOfWater())+""));//全年
|
|
- sheet.addCell(new Label(13,row,plan.getOrgType()));//用户类型
|
|
|
|
-
|
|
|
|
|
|
+ sheet.addCell(new Label(13,row,plan.getOrgType()));//用户类型
|
|
|
|
+ sheet.addCell(new Label(14,row,plan.getOrgNature()));//用水性质
|
|
|
|
|
|
row+=1;
|
|
row+=1;
|
|
}
|
|
}
|
|
@@ -1134,14 +1154,6 @@ private void fillExcel(WritableSheet sheet,String hql,int pageNo,int pageSize,in
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 打印年度计划通知
|
|
* 打印年度计划通知
|
|
- * @param orgNumber
|
|
|
|
- * @param orgName
|
|
|
|
- * @param year
|
|
|
|
- * @param busOrgCustomerNumber
|
|
|
|
- * @param address
|
|
|
|
- * @param busOrgMeterNumber
|
|
|
|
- * @param priYearUseWater
|
|
|
|
- * @param userType
|
|
|
|
* @param model
|
|
* @param model
|
|
* @param ids
|
|
* @param ids
|
|
* @return
|
|
* @return
|
|
@@ -1224,7 +1236,7 @@ public String unitYearPlanPrint(Model model){
|
|
* @throws UnsupportedEncodingException
|
|
* @throws UnsupportedEncodingException
|
|
*/
|
|
*/
|
|
@RequestMapping("unitYearReplyPrint.do")
|
|
@RequestMapping("unitYearReplyPrint.do")
|
|
-public String unitYearReplyPrint(String orgNumber,String orgName,String year,String busOrgCustomerNumber,
|
|
|
|
|
|
+public String unitYearReplyPrint(String orgNumber,String orgName,String orgNature,String year,String busOrgCustomerNumber,
|
|
String address,String busOrgMeterNumber,String priYearUseWater,String userType,Model model,Long[] ids){
|
|
String address,String busOrgMeterNumber,String priYearUseWater,String userType,Model model,Long[] ids){
|
|
if(year.equals("")){
|
|
if(year.equals("")){
|
|
year = getCurrentYear();
|
|
year = getCurrentYear();
|
|
@@ -1257,7 +1269,7 @@ public String unitYearReplyPrint(String orgNumber,String orgName,String year,Str
|
|
list.add(temp);
|
|
list.add(temp);
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- list = busOrgService.unitYearReplyPrin(orgNumber, orgName, year, busOrgCustomerNumber, address, busOrgMeterNumber, priYearUseWater, userType);
|
|
|
|
|
|
+ list = busOrgService.unitYearReplyPrin(orgNumber, orgName, year, busOrgCustomerNumber, address, busOrgMeterNumber, priYearUseWater, userType, orgNature);
|
|
}
|
|
}
|
|
model.addAttribute("unit", list);
|
|
model.addAttribute("unit", list);
|
|
model.addAttribute("year", year);
|
|
model.addAttribute("year", year);
|
|
@@ -1302,7 +1314,7 @@ static void saveToFile(BufferedImage paramBufferedImage, String paramString1, St
|
|
* @throws UnsupportedEncodingException
|
|
* @throws UnsupportedEncodingException
|
|
*/
|
|
*/
|
|
@RequestMapping("unitYearEmailPrint.do")
|
|
@RequestMapping("unitYearEmailPrint.do")
|
|
-public String unitYearEmailPrint(String orgNumber,String orgName,String year,String busOrgCustomerNumber,
|
|
|
|
|
|
+public String unitYearEmailPrint(String orgNumber,String orgName,String orgNature,String year,String busOrgCustomerNumber,
|
|
String address,String busOrgMeterNumber,String priYearUseWater,String userType,Model model,Long[] ids) throws UnsupportedEncodingException{
|
|
String address,String busOrgMeterNumber,String priYearUseWater,String userType,Model model,Long[] ids) throws UnsupportedEncodingException{
|
|
List<OrgTemp> orgList = new ArrayList<OrgTemp>();
|
|
List<OrgTemp> orgList = new ArrayList<OrgTemp>();
|
|
if(year.equals("")){
|
|
if(year.equals("")){
|
|
@@ -1313,12 +1325,13 @@ public String unitYearEmailPrint(String orgNumber,String orgName,String year,Str
|
|
BusOrg org = busOrgService.get(orgId);
|
|
BusOrg org = busOrgService.get(orgId);
|
|
String code = org.getCode();
|
|
String code = org.getCode();
|
|
String name = org.getOrgName();
|
|
String name = org.getOrgName();
|
|
|
|
+ String nature = org.getOrgNature();
|
|
String addr= org.getPostalAddress();
|
|
String addr= org.getPostalAddress();
|
|
OrgTemp temp = new OrgTemp(code,name,addr);
|
|
OrgTemp temp = new OrgTemp(code,name,addr);
|
|
orgList.add(temp);
|
|
orgList.add(temp);
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- orgList = busOrgService.emailPrintView(orgNumber, orgName, year, busOrgCustomerNumber, address, busOrgMeterNumber, priYearUseWater, userType);
|
|
|
|
|
|
+ orgList = busOrgService.emailPrintView(orgNumber, orgName, year, busOrgCustomerNumber, address, busOrgMeterNumber, priYearUseWater, userType, orgNature);
|
|
}
|
|
}
|
|
String result = JsonUtil.getJSONSerializer().deepSerialize(orgList);
|
|
String result = JsonUtil.getJSONSerializer().deepSerialize(orgList);
|
|
log.debug("#####################################size:"+orgList.size()+" "+result);
|
|
log.debug("#####################################size:"+orgList.size()+" "+result);
|
|
@@ -1341,7 +1354,7 @@ public String unitYearEmailPrint(String orgNumber,String orgName,String year,Str
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping("yearPlanPrint.do")
|
|
@RequestMapping("yearPlanPrint.do")
|
|
-public String yearPlanPrint(String orgNumber,String orgName,String year,String busOrgCustomerNumber,
|
|
|
|
|
|
+public String yearPlanPrint(String orgNumber,String orgName,String orgNature,String year,String busOrgCustomerNumber,
|
|
String address,String busOrgMeterNumber,String priYearUseWater,String userType,Model model,Long[] ids){
|
|
String address,String busOrgMeterNumber,String priYearUseWater,String userType,Model model,Long[] ids){
|
|
if(year.equals("")){
|
|
if(year.equals("")){
|
|
year = getCurrentYear();
|
|
year = getCurrentYear();
|
|
@@ -1370,7 +1383,7 @@ public String yearPlanPrint(String orgNumber,String orgName,String year,String b
|
|
list.add(temp);
|
|
list.add(temp);
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- list = busOrgService.unitYearReplyPrin(orgNumber, orgName, year, busOrgCustomerNumber, address, busOrgMeterNumber, priYearUseWater, userType);
|
|
|
|
|
|
+ list = busOrgService.unitYearReplyPrin(orgNumber, orgName, year, busOrgCustomerNumber, address, busOrgMeterNumber, priYearUseWater, userType, orgNature);
|
|
}
|
|
}
|
|
if(list!=null)
|
|
if(list!=null)
|
|
model.addAttribute("listLength", list.size());
|
|
model.addAttribute("listLength", list.size());
|
|
@@ -1404,8 +1417,6 @@ public String countReplyWaterList(Model model){
|
|
* @param year
|
|
* @param year
|
|
* @param busOrgCustomerNumber
|
|
* @param busOrgCustomerNumber
|
|
* @param address
|
|
* @param address
|
|
- * @param busOrgMeterNumber
|
|
|
|
- * @param priYearUseWater
|
|
|
|
* @param userType
|
|
* @param userType
|
|
* @return
|
|
* @return
|
|
* @throws ParseException
|
|
* @throws ParseException
|
|
@@ -1413,7 +1424,7 @@ public String countReplyWaterList(Model model){
|
|
@RequestMapping("listCountReplyWater.do")
|
|
@RequestMapping("listCountReplyWater.do")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String listCountReplyWater(int pageNo,int pageSize,String orgNumber,
|
|
public String listCountReplyWater(int pageNo,int pageSize,String orgNumber,
|
|
- String orgName, String year, String busOrgCustomerNumber,
|
|
|
|
|
|
+ String orgName,String orgNature, String year, String busOrgCustomerNumber,
|
|
String address,String userType) throws ParseException{
|
|
String address,String userType) throws ParseException{
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
@@ -1426,6 +1437,9 @@ public String listCountReplyWater(int pageNo,int pageSize,String orgNumber,
|
|
if(null !=orgName && !orgName.equals("")){
|
|
if(null !=orgName && !orgName.equals("")){
|
|
sql +=" and b.org_name like '%"+orgName+"%'";
|
|
sql +=" and b.org_name like '%"+orgName+"%'";
|
|
}
|
|
}
|
|
|
|
+ if(null !=orgNature && !orgNature.equals("")){
|
|
|
|
+ sql +=" and b.org_name like '%"+orgNature+"%'";
|
|
|
|
+ }
|
|
if(null !=address && !address.equals("")){
|
|
if(null !=address && !address.equals("")){
|
|
sql +=" and b.address like '%"+address+"%'";
|
|
sql +=" and b.address like '%"+address+"%'";
|
|
}
|
|
}
|
|
@@ -1468,7 +1482,7 @@ public String listCountReplyWater(int pageNo,int pageSize,String orgNumber,
|
|
* @throws ParseException
|
|
* @throws ParseException
|
|
*/
|
|
*/
|
|
@RequestMapping("importYearCountUnitWater.do")
|
|
@RequestMapping("importYearCountUnitWater.do")
|
|
-public void importYearCountUnitWater(String orgNumber,String orgName,String year,
|
|
|
|
|
|
+public void importYearCountUnitWater(String orgNumber,String orgName,String orgNature,String year,
|
|
String busOrgCustomerNumber,String address,String userType,HttpServletResponse response) throws UnsupportedEncodingException, ParseException{
|
|
String busOrgCustomerNumber,String address,String userType,HttpServletResponse response) throws UnsupportedEncodingException, ParseException{
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
int y =Integer.parseInt(year);
|
|
int y =Integer.parseInt(year);
|
|
@@ -1493,7 +1507,7 @@ public void importYearCountUnitWater(String orgNumber,String orgName,String year
|
|
addFirstRowExcel(sheet,y,f);
|
|
addFirstRowExcel(sheet,y,f);
|
|
|
|
|
|
//获取要导出的数据
|
|
//获取要导出的数据
|
|
- List<BusOrgTemp> list = busOrgService.getPlanYearCountData(orgNumber, orgName, year, busOrgCustomerNumber, address, userType);
|
|
|
|
|
|
+ List<BusOrgTemp> list = busOrgService.getPlanYearCountData(orgNumber, orgName, year, busOrgCustomerNumber, address, userType, orgNature);
|
|
int row =1;
|
|
int row =1;
|
|
if(list != null && list.size()>0){
|
|
if(list != null && list.size()>0){
|
|
for(int i=0;i<list.size();i++){
|
|
for(int i=0;i<list.size();i++){
|