优化界面,给商品和单位模块增加了部分字段
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
package com.jsh.action.basic;
|
||||
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
@@ -29,7 +27,6 @@ import com.jsh.model.vo.basic.AppModel;
|
||||
import com.jsh.service.basic.AppIService;
|
||||
import com.jsh.service.basic.UserBusinessIService;
|
||||
import com.jsh.util.common.PageUtil;
|
||||
//import com.opensymphony.xwork2.ActionContext;
|
||||
/**
|
||||
* 应用
|
||||
* @author ji_sheng_hua
|
||||
|
||||
@@ -21,7 +21,10 @@ import com.jsh.model.vo.basic.DepotModel;
|
||||
import com.jsh.service.basic.DepotIService;
|
||||
import com.jsh.service.basic.UserBusinessIService;
|
||||
import com.jsh.util.common.PageUtil;
|
||||
|
||||
/**
|
||||
* 仓库
|
||||
* @author ji sheng hua
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class DepotAction extends BaseAction<DepotModel>
|
||||
{
|
||||
|
||||
@@ -1,402 +1,406 @@
|
||||
package com.jsh.action.basic;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
import com.jsh.base.BaseAction;
|
||||
import com.jsh.base.Log;
|
||||
import com.jsh.model.po.Logdetails;
|
||||
import com.jsh.model.po.Supplier;
|
||||
import com.jsh.model.vo.basic.SupplierModel;
|
||||
import com.jsh.service.basic.SupplierIService;
|
||||
import com.jsh.util.common.PageUtil;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class SupplierAction extends BaseAction<SupplierModel>
|
||||
{
|
||||
private SupplierIService supplierService;
|
||||
private SupplierModel model = new SupplierModel();
|
||||
|
||||
/**
|
||||
* 增加供应商
|
||||
* @return
|
||||
*/
|
||||
public void create()
|
||||
{
|
||||
Log.infoFileSync("==================开始调用增加供应商方法===================");
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Supplier supplier = new Supplier();
|
||||
supplier.setContacts(model.getContacts());
|
||||
supplier.setType(model.getType());
|
||||
supplier.setDescription(model.getDescription());
|
||||
supplier.setEmail(model.getEmail());
|
||||
supplier.setIsystem((short)1);
|
||||
supplier.setPhonenum(model.getPhonenum());
|
||||
supplier.setSupplier(model.getSupplier());
|
||||
supplier.setEnabled(model.getEnabled());
|
||||
supplierService.create(supplier);
|
||||
|
||||
//========标识位===========
|
||||
flag = true;
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加供应商异常", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>增加供应商回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "增加供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "增加供应商名称为 "+ model.getSupplier() + " " + tipMsg + "!", "增加供应商" + tipMsg));
|
||||
Log.infoFileSync("==================结束调用增加供应商方法===================");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商
|
||||
* @return
|
||||
*/
|
||||
public String delete()
|
||||
{
|
||||
Log.infoFileSync("====================开始调用删除供应商信息方法delete()================");
|
||||
try
|
||||
{
|
||||
supplierService.delete(model.getSupplierID());
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getSupplierID() + " 的供应商异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
model.getShowModel().setMsgTip(tipMsg);
|
||||
logService.create(new Logdetails(getUser(), "删除供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "删除供应商ID为 "+ model.getSupplierID() + ",名称为 " + model.getSupplier() + tipMsg + "!", "删除供应商" + tipMsg));
|
||||
Log.infoFileSync("====================结束调用删除供应商信息方法delete()================");
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新供应商
|
||||
* @return
|
||||
*/
|
||||
public void update()
|
||||
{
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Supplier supplier = supplierService.get(model.getSupplierID());
|
||||
supplier.setContacts(model.getContacts());
|
||||
supplier.setType(model.getType());
|
||||
supplier.setDescription(model.getDescription());
|
||||
supplier.setEmail(model.getEmail());
|
||||
supplier.setIsystem((short)1);
|
||||
supplier.setPhonenum(model.getPhonenum());
|
||||
supplier.setSupplier(model.getSupplier());
|
||||
supplier.setEnabled(model.getEnabled());
|
||||
supplierService.update(supplier);
|
||||
|
||||
flag = true;
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>修改供应商ID为 : " + model.getSupplierID() + "信息失败", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>修改供应商回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
logService.create(new Logdetails(getUser(), "更新供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "更新供应商ID为 "+ model.getSupplierID() + " " + tipMsg + "!", "更新供应商" + tipMsg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除指定ID供应商
|
||||
* @return
|
||||
*/
|
||||
public String batchDelete()
|
||||
{
|
||||
try
|
||||
{
|
||||
supplierService.batchDelete(model.getSupplierIDs());
|
||||
model.getShowModel().setMsgTip("成功");
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>批量删除供应商ID为:" + model.getSupplierIDs() + "信息异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "批量删除供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "批量删除供应商ID为 "+ model.getSupplierIDs() + " " + tipMsg + "!", "批量删除供应商" + tipMsg));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查输入名称是否存在
|
||||
*/
|
||||
public void checkIsNameExist()
|
||||
{
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
flag = supplierService.checkIsNameExist("supplier",model.getSupplier(),"id", model.getSupplierID());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>检查供应商名称为:" + model.getSupplier() + " ID为: " + model.getSupplierID() + " 是否存在异常!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>回写检查供应商名称为:" + model.getSupplier() + " ID为: " + model.getSupplierID() + " 是否存在异常!",e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找供应商信息
|
||||
* @return
|
||||
*/
|
||||
public void findBy()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Supplier> pageUtil = new PageUtil<Supplier>();
|
||||
pageUtil.setPageSize(model.getPageSize());
|
||||
pageUtil.setCurPage(model.getPageNo());
|
||||
pageUtil.setAdvSearch(getCondition());
|
||||
supplierService.find(pageUtil);
|
||||
List<Supplier> dataList = pageUtil.getPageList();
|
||||
|
||||
//开始拼接json数据
|
||||
// {"total":28,"rows":[
|
||||
// {"productid":"AV-CB-01","attr1":"Adult Male","itemid":"EST-18"}
|
||||
// ]}
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("total", pageUtil.getTotalCount());
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Supplier supplier:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//供应商名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
item.put("type", supplier.getType());
|
||||
item.put("contacts",supplier.getContacts());
|
||||
item.put("phonenum", supplier.getPhonenum());
|
||||
item.put("email", supplier.getEmail());
|
||||
item.put("isystem", supplier.getIsystem() == (short)0?"是":"否");
|
||||
item.put("description", supplier.getDescription());
|
||||
item.put("enabled", supplier.getEnabled());
|
||||
item.put("op", supplier.getIsystem());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("rows", dataArray);
|
||||
//回写查询结果
|
||||
toClient(outer.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找供应商信息-下拉框
|
||||
* @return
|
||||
*/
|
||||
public void findBySelect_sup()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Supplier> pageUtil = new PageUtil<Supplier>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Select_sup());
|
||||
supplierService.find(pageUtil);
|
||||
List<Supplier> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Supplier supplier:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//供应商名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
//回写查询结果
|
||||
toClient(dataArray.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 查找客户信息-下拉框
|
||||
* @return
|
||||
*/
|
||||
public void findBySelect_cus()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Supplier> pageUtil = new PageUtil<Supplier>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Select_cus());
|
||||
supplierService.find(pageUtil);
|
||||
List<Supplier> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Supplier supplier:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//客户名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
//回写查询结果
|
||||
toClient(dataArray.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找客户信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询客户信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("supplier_s_like", model.getSupplier());
|
||||
condition.put("type_s_like", model.getType());
|
||||
condition.put("contacts_s_like", model.getContacts());
|
||||
condition.put("phonenum_s_like", model.getPhonenum());
|
||||
condition.put("email_s_like", model.getEmail());
|
||||
condition.put("description_s_like", model.getDescription());
|
||||
condition.put("id_s_order", "desc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件-下拉框-供应商
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Select_sup()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("type_s_like", "供应商");
|
||||
condition.put("id_s_order", "desc");
|
||||
return condition;
|
||||
}
|
||||
/**
|
||||
* 拼接搜索条件-下拉框-客户
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Select_cus()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("type_s_like", "客户");
|
||||
condition.put("id_s_order", "desc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
//=============以下spring注入以及Model驱动公共方法,与Action处理无关==================
|
||||
@Override
|
||||
public SupplierModel getModel()
|
||||
{
|
||||
return model;
|
||||
}
|
||||
public void setSupplierService(SupplierIService supplierService)
|
||||
{
|
||||
this.supplierService = supplierService;
|
||||
}
|
||||
}
|
||||
package com.jsh.action.basic;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
import com.jsh.base.BaseAction;
|
||||
import com.jsh.base.Log;
|
||||
import com.jsh.model.po.Logdetails;
|
||||
import com.jsh.model.po.Supplier;
|
||||
import com.jsh.model.vo.basic.SupplierModel;
|
||||
import com.jsh.service.basic.SupplierIService;
|
||||
import com.jsh.util.common.PageUtil;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class SupplierAction extends BaseAction<SupplierModel>
|
||||
{
|
||||
private SupplierIService supplierService;
|
||||
private SupplierModel model = new SupplierModel();
|
||||
|
||||
/**
|
||||
* 增加供应商
|
||||
* @return
|
||||
*/
|
||||
public void create()
|
||||
{
|
||||
Log.infoFileSync("==================开始调用增加供应商方法===================");
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Supplier supplier = new Supplier();
|
||||
supplier.setContacts(model.getContacts());
|
||||
supplier.setType(model.getType());
|
||||
supplier.setDescription(model.getDescription());
|
||||
supplier.setEmail(model.getEmail());
|
||||
supplier.setBeginNeedGet(model.getBeginNeedGet());
|
||||
supplier.setBeginNeedPay(model.getBeginNeedPay());
|
||||
supplier.setIsystem((short)1);
|
||||
supplier.setPhonenum(model.getPhonenum());
|
||||
supplier.setSupplier(model.getSupplier());
|
||||
supplier.setEnabled(model.getEnabled());
|
||||
supplierService.create(supplier);
|
||||
|
||||
//========标识位===========
|
||||
flag = true;
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加供应商异常", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>增加供应商回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "增加供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "增加供应商名称为 "+ model.getSupplier() + " " + tipMsg + "!", "增加供应商" + tipMsg));
|
||||
Log.infoFileSync("==================结束调用增加供应商方法===================");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商
|
||||
* @return
|
||||
*/
|
||||
public String delete()
|
||||
{
|
||||
Log.infoFileSync("====================开始调用删除供应商信息方法delete()================");
|
||||
try
|
||||
{
|
||||
supplierService.delete(model.getSupplierID());
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getSupplierID() + " 的供应商异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
model.getShowModel().setMsgTip(tipMsg);
|
||||
logService.create(new Logdetails(getUser(), "删除供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "删除供应商ID为 "+ model.getSupplierID() + ",名称为 " + model.getSupplier() + tipMsg + "!", "删除供应商" + tipMsg));
|
||||
Log.infoFileSync("====================结束调用删除供应商信息方法delete()================");
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新供应商
|
||||
* @return
|
||||
*/
|
||||
public void update()
|
||||
{
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Supplier supplier = supplierService.get(model.getSupplierID());
|
||||
supplier.setContacts(model.getContacts());
|
||||
supplier.setType(model.getType());
|
||||
supplier.setDescription(model.getDescription());
|
||||
supplier.setEmail(model.getEmail());
|
||||
supplier.setBeginNeedGet(model.getBeginNeedGet());
|
||||
supplier.setBeginNeedPay(model.getBeginNeedPay());
|
||||
supplier.setIsystem((short)1);
|
||||
supplier.setPhonenum(model.getPhonenum());
|
||||
supplier.setSupplier(model.getSupplier());
|
||||
supplier.setEnabled(model.getEnabled());
|
||||
supplierService.update(supplier);
|
||||
|
||||
flag = true;
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>修改供应商ID为 : " + model.getSupplierID() + "信息失败", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>修改供应商回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
logService.create(new Logdetails(getUser(), "更新供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "更新供应商ID为 "+ model.getSupplierID() + " " + tipMsg + "!", "更新供应商" + tipMsg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除指定ID供应商
|
||||
* @return
|
||||
*/
|
||||
public String batchDelete()
|
||||
{
|
||||
try
|
||||
{
|
||||
supplierService.batchDelete(model.getSupplierIDs());
|
||||
model.getShowModel().setMsgTip("成功");
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>批量删除供应商ID为:" + model.getSupplierIDs() + "信息异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "批量删除供应商", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "批量删除供应商ID为 "+ model.getSupplierIDs() + " " + tipMsg + "!", "批量删除供应商" + tipMsg));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查输入名称是否存在
|
||||
*/
|
||||
public void checkIsNameExist()
|
||||
{
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
flag = supplierService.checkIsNameExist("supplier",model.getSupplier(),"id", model.getSupplierID());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>检查供应商名称为:" + model.getSupplier() + " ID为: " + model.getSupplierID() + " 是否存在异常!");
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>回写检查供应商名称为:" + model.getSupplier() + " ID为: " + model.getSupplierID() + " 是否存在异常!",e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找供应商信息
|
||||
* @return
|
||||
*/
|
||||
public void findBy()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Supplier> pageUtil = new PageUtil<Supplier>();
|
||||
pageUtil.setPageSize(model.getPageSize());
|
||||
pageUtil.setCurPage(model.getPageNo());
|
||||
pageUtil.setAdvSearch(getCondition());
|
||||
supplierService.find(pageUtil);
|
||||
List<Supplier> dataList = pageUtil.getPageList();
|
||||
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("total", pageUtil.getTotalCount());
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Supplier supplier:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//供应商名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
item.put("type", supplier.getType());
|
||||
item.put("contacts",supplier.getContacts());
|
||||
item.put("phonenum", supplier.getPhonenum());
|
||||
item.put("email", supplier.getEmail());
|
||||
item.put("BeginNeedGet",supplier.getBeginNeedGet());
|
||||
item.put("BeginNeedPay",supplier.getBeginNeedPay());
|
||||
item.put("AllNeedGet",supplier.getAllNeedGet());
|
||||
item.put("AllNeedPay",supplier.getAllNeedPay());
|
||||
item.put("isystem", supplier.getIsystem() == (short)0?"是":"否");
|
||||
item.put("description", supplier.getDescription());
|
||||
item.put("enabled", supplier.getEnabled());
|
||||
item.put("op", supplier.getIsystem());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("rows", dataArray);
|
||||
//回写查询结果
|
||||
toClient(outer.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找供应商信息-下拉框
|
||||
* @return
|
||||
*/
|
||||
public void findBySelect_sup()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Supplier> pageUtil = new PageUtil<Supplier>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Select_sup());
|
||||
supplierService.find(pageUtil);
|
||||
List<Supplier> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Supplier supplier:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//供应商名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
//回写查询结果
|
||||
toClient(dataArray.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 查找客户信息-下拉框
|
||||
* @return
|
||||
*/
|
||||
public void findBySelect_cus()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Supplier> pageUtil = new PageUtil<Supplier>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Select_cus());
|
||||
supplierService.find(pageUtil);
|
||||
List<Supplier> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Supplier supplier:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("id", supplier.getId());
|
||||
//客户名称
|
||||
item.put("supplier", supplier.getSupplier());
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
//回写查询结果
|
||||
toClient(dataArray.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找客户信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询客户信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("supplier_s_like", model.getSupplier());
|
||||
condition.put("type_s_like", model.getType());
|
||||
condition.put("contacts_s_like", model.getContacts());
|
||||
condition.put("phonenum_s_like", model.getPhonenum());
|
||||
condition.put("email_s_like", model.getEmail());
|
||||
condition.put("description_s_like", model.getDescription());
|
||||
condition.put("id_s_order", "desc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件-下拉框-供应商
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Select_sup()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("type_s_like", "供应商");
|
||||
condition.put("id_s_order", "desc");
|
||||
return condition;
|
||||
}
|
||||
/**
|
||||
* 拼接搜索条件-下拉框-客户
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Select_cus()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("type_s_like", "客户");
|
||||
condition.put("id_s_order", "desc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
//=============以下spring注入以及Model驱动公共方法,与Action处理无关==================
|
||||
@Override
|
||||
public SupplierModel getModel()
|
||||
{
|
||||
return model;
|
||||
}
|
||||
public void setSupplierService(SupplierIService supplierService)
|
||||
{
|
||||
this.supplierService = supplierService;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,267 +0,0 @@
|
||||
package com.jsh.action.basic;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
import com.jsh.base.BaseAction;
|
||||
import com.jsh.base.Log;
|
||||
import com.jsh.model.po.Category;
|
||||
import com.jsh.model.po.Depot;
|
||||
import com.jsh.model.po.VisitAccount;
|
||||
import com.jsh.model.po.Logdetails;
|
||||
import com.jsh.model.vo.basic.VisitAccountModel;
|
||||
import com.jsh.service.basic.VisitAccountIService;
|
||||
import com.jsh.util.common.PageUtil;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class VisitAccountAction extends BaseAction<VisitAccountModel>
|
||||
{
|
||||
private VisitAccountIService visitAccountService;
|
||||
private VisitAccountModel model = new VisitAccountModel();
|
||||
/**
|
||||
* 增加回访
|
||||
* @return
|
||||
*/
|
||||
public void create()
|
||||
{
|
||||
Log.infoFileSync("==================开始调用增加回访信息方法create()===================");
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
VisitAccount visitAccount = new VisitAccount();
|
||||
visitAccount.setDepot(new Depot(model.getProjectId()));
|
||||
|
||||
visitAccount.setLouHao(model.getLouHao());
|
||||
visitAccount.setHuHao(model.getHuHao());
|
||||
visitAccount.setHuiFang(model.getHuiFang());
|
||||
visitAccount.setLuoShi(model.getLuoShi());
|
||||
visitAccount.setName(model.getName());
|
||||
visitAccount.setTel(model.getTel());
|
||||
visitAccount.setAddTime(new Timestamp(new Date().getTime()));
|
||||
visitAccountService.create(visitAccount);
|
||||
|
||||
//========标识位===========
|
||||
flag = true;
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加回访信息异常", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>增加回访信息回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "增加回访", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "增加回访名称为 "+ model.getName() + " " + tipMsg + "!", "增加回访" + tipMsg));
|
||||
Log.infoFileSync("==================结束调用增加回访方法create()===================");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除回访
|
||||
* @return
|
||||
*/
|
||||
public String delete()
|
||||
{
|
||||
Log.infoFileSync("====================开始调用删除回访信息方法delete()================");
|
||||
try
|
||||
{
|
||||
visitAccountService.delete(model.getVisitAccountID());
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getVisitAccountID() + " 的回访异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
model.getShowModel().setMsgTip(tipMsg);
|
||||
logService.create(new Logdetails(getUser(), "删除回访", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "删除回访ID为 "+ model.getVisitAccountID() + " " + tipMsg + "!", "删除回访" + tipMsg));
|
||||
Log.infoFileSync("====================结束调用删除回访信息方法delete()================");
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新回访
|
||||
* @return
|
||||
*/
|
||||
public void update()
|
||||
{
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
VisitAccount visitAccount = visitAccountService.get(model.getVisitAccountID());
|
||||
visitAccount.setDepot(new Depot(model.getProjectId()));
|
||||
|
||||
visitAccount.setLouHao(model.getLouHao());
|
||||
visitAccount.setHuHao(model.getHuHao());
|
||||
visitAccount.setHuiFang(model.getHuiFang());
|
||||
visitAccount.setLuoShi(model.getLuoShi());
|
||||
visitAccount.setName(model.getName());
|
||||
visitAccount.setTel(model.getTel());
|
||||
visitAccount.setAddTime(new Timestamp(new Date().getTime()));
|
||||
visitAccountService.update(visitAccount);
|
||||
|
||||
flag = true;
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>修改回访ID为 : " + model.getVisitAccountID() + "信息失败", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>修改回访回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
logService.create(new Logdetails(getUser(), "更新回访", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "更新回访ID为 "+ model.getVisitAccountID() + " " + tipMsg + "!", "更新回访" + tipMsg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除指定ID回访
|
||||
* @return
|
||||
*/
|
||||
public String batchDelete()
|
||||
{
|
||||
try
|
||||
{
|
||||
visitAccountService.batchDelete(model.getVisitAccountIDs());
|
||||
model.getShowModel().setMsgTip("成功");
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>批量删除回访ID为:" + model.getVisitAccountIDs() + "信息异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "批量删除回访", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "批量删除回访ID为 "+ model.getVisitAccountIDs() + " " + tipMsg + "!", "批量删除回访" + tipMsg));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找回访信息
|
||||
* @return
|
||||
*/
|
||||
public void findBy()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<VisitAccount> pageUtil = new PageUtil<VisitAccount>();
|
||||
pageUtil.setPageSize(model.getPageSize());
|
||||
pageUtil.setCurPage(model.getPageNo());
|
||||
pageUtil.setAdvSearch(getCondition());
|
||||
visitAccountService.find(pageUtil);
|
||||
List<VisitAccount> dataList = pageUtil.getPageList();
|
||||
|
||||
//开始拼接json数据
|
||||
// {"total":28,"rows":[
|
||||
// {"productid":"AV-CB-01","attr1":"Adult Male","itemid":"EST-18"}
|
||||
// ]}
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("total", pageUtil.getTotalCount());
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(VisitAccount visitAccount:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", visitAccount.getId());
|
||||
item.put("ProjectId", visitAccount.getDepot().getId());
|
||||
item.put("ProjectName", visitAccount.getDepot().getName());
|
||||
item.put("LouHao", visitAccount.getLouHao());
|
||||
item.put("HuHao", visitAccount.getHuHao());
|
||||
item.put("HuiFang", visitAccount.getHuiFang());
|
||||
item.put("LuoShi", visitAccount.getLuoShi());
|
||||
item.put("Name", visitAccount.getName());
|
||||
item.put("Tel", visitAccount.getTel());
|
||||
item.put("AddTime", visitAccount.getAddTime());
|
||||
item.put("op", 1);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("rows", dataArray);
|
||||
//回写查询结果
|
||||
toClient(outer.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>查找回访信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>回写查询回访信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("ProjectId_n_eq", model.getProjectId());
|
||||
condition.put("LouHao_s_like", model.getLouHao());
|
||||
condition.put("AddTime_s_order", "desc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
//=============以下spring注入以及Model驱动公共方法,与Action处理无关==================
|
||||
@Override
|
||||
public VisitAccountModel getModel()
|
||||
{
|
||||
return model;
|
||||
}
|
||||
public void setVisitAccountService(VisitAccountIService visitAccountService)
|
||||
{
|
||||
this.visitAccountService = visitAccountService;
|
||||
}
|
||||
}
|
||||
@@ -1,391 +1,399 @@
|
||||
package com.jsh.action.materials;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
import com.jsh.base.BaseAction;
|
||||
import com.jsh.base.Log;
|
||||
import com.jsh.model.po.DepotHead;
|
||||
import com.jsh.model.po.Material;
|
||||
import com.jsh.model.po.Logdetails;
|
||||
import com.jsh.model.po.MaterialCategory;
|
||||
import com.jsh.model.po.Supplier;
|
||||
import com.jsh.model.vo.materials.MaterialModel;
|
||||
import com.jsh.service.materials.MaterialIService;
|
||||
import com.jsh.util.common.PageUtil;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class MaterialAction extends BaseAction<MaterialModel>
|
||||
{
|
||||
private MaterialIService materialService;
|
||||
private MaterialModel model = new MaterialModel();
|
||||
|
||||
/**
|
||||
* 增加物料
|
||||
* @return
|
||||
*/
|
||||
public void create()
|
||||
{
|
||||
Log.infoFileSync("==================开始调用增加物料信息方法create()===================");
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Material material = new Material();
|
||||
material.setMaterialCategory(new MaterialCategory(model.getCategoryId()));
|
||||
|
||||
material.setName(model.getName());
|
||||
material.setModel(model.getModel());
|
||||
material.setColor(model.getColor());
|
||||
material.setUnit(model.getUnit());
|
||||
material.setRemark(model.getRemark());
|
||||
materialService.create(material);
|
||||
|
||||
//========标识位===========
|
||||
flag = true;
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加物料信息异常", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>增加物料信息回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "增加物料", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "增加物料名称为 "+ model.getName() + " " + tipMsg + "!", "增加物料" + tipMsg));
|
||||
Log.infoFileSync("==================结束调用增加物料方法create()===================");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物料
|
||||
* @return
|
||||
*/
|
||||
public String delete()
|
||||
{
|
||||
Log.infoFileSync("====================开始调用删除物料信息方法delete()================");
|
||||
try
|
||||
{
|
||||
materialService.delete(model.getMaterialID());
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getMaterialID() + " 的物料异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
model.getShowModel().setMsgTip(tipMsg);
|
||||
logService.create(new Logdetails(getUser(), "删除物料", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "删除物料ID为 "+ model.getMaterialID() + " " + tipMsg + "!", "删除物料" + tipMsg));
|
||||
Log.infoFileSync("====================结束调用删除物料信息方法delete()================");
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新物料
|
||||
* @return
|
||||
*/
|
||||
public void update()
|
||||
{
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Material material = materialService.get(model.getMaterialID());
|
||||
material.setMaterialCategory(new MaterialCategory(model.getCategoryId()));
|
||||
|
||||
material.setName(model.getName());
|
||||
material.setModel(model.getModel());
|
||||
material.setColor(model.getColor());
|
||||
material.setUnit(model.getUnit());
|
||||
material.setRemark(model.getRemark());
|
||||
material.setName(model.getName());
|
||||
materialService.update(material);
|
||||
|
||||
flag = true;
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>修改物料ID为 : " + model.getMaterialID() + "信息失败", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>修改物料回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
logService.create(new Logdetails(getUser(), "更新物料", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "更新物料ID为 "+ model.getMaterialID() + " " + tipMsg + "!", "更新物料" + tipMsg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除指定ID物料
|
||||
* @return
|
||||
*/
|
||||
public String batchDelete()
|
||||
{
|
||||
try
|
||||
{
|
||||
materialService.batchDelete(model.getMaterialIDs());
|
||||
model.getShowModel().setMsgTip("成功");
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>批量删除物料ID为:" + model.getMaterialIDs() + "信息异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "批量删除物料", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "批量删除物料ID为 "+ model.getMaterialIDs() + " " + tipMsg + "!", "批量删除物料" + tipMsg));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找物料信息
|
||||
* @return
|
||||
*/
|
||||
public void findBy()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Material> pageUtil = new PageUtil<Material>();
|
||||
pageUtil.setPageSize(model.getPageSize());
|
||||
pageUtil.setCurPage(model.getPageNo());
|
||||
Long lei=model.getCategoryId();
|
||||
if(1==lei) //判断值还真不能用String类型的判断
|
||||
{
|
||||
pageUtil.setAdvSearch(getCondition_all());
|
||||
}
|
||||
else if(1!=lei)
|
||||
{
|
||||
pageUtil.setAdvSearch(getCondition());
|
||||
}
|
||||
materialService.find(pageUtil);
|
||||
List<Material> dataList = pageUtil.getPageList();
|
||||
|
||||
//开始拼接json数据
|
||||
// {"total":28,"rows":[
|
||||
// {"productid":"AV-CB-01","attr1":"Adult Male","itemid":"EST-18"}
|
||||
// ]}
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("total", pageUtil.getTotalCount());
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Material material:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", material.getId());
|
||||
item.put("Name", material.getName());
|
||||
item.put("Model", material.getModel());
|
||||
item.put("Color", material.getColor());
|
||||
item.put("Unit", material.getUnit());
|
||||
item.put("Remark", material.getRemark());
|
||||
item.put("op", 1);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("rows", dataArray);
|
||||
//回写查询结果
|
||||
toClient(outer.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>查找物料信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>回写查询物料信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找物料信息-下拉框
|
||||
* @return
|
||||
*/
|
||||
public void findBySelect()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Material> pageUtil = new PageUtil<Material>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Select());
|
||||
materialService.find(pageUtil);
|
||||
List<Material> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Material material:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", material.getId());
|
||||
//供应商名称
|
||||
item.put("MaterialName", ((material.getModel().equals(""))?"":""+material.getModel()) +" "+ material.getName() + ((material.getColor() == null)?"":"("+material.getColor() + ")"));
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
//回写查询结果
|
||||
toClient(dataArray.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找物料信息-统计排序
|
||||
* @return
|
||||
*/
|
||||
public void findByOrder()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Material> pageUtil = new PageUtil<Material>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Order());
|
||||
materialService.find(pageUtil);
|
||||
List<Material> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONObject outer = new JSONObject();
|
||||
String mId = "";
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Material material:dataList)
|
||||
{
|
||||
mId = mId + material.getId() + ",";
|
||||
}
|
||||
}
|
||||
if(mId!="") {
|
||||
mId = mId.substring(0, mId.lastIndexOf(","));
|
||||
}
|
||||
outer.put("mIds", mId);
|
||||
//回写查询结果
|
||||
toClient(outer.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件(查全部)
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_all()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("Id_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("CategoryId_s_in", model.getCategoryIds());
|
||||
condition.put("Id_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件-下拉框
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Select()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("Id_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件-下拉框
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Order()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("Name,Model_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
//=============以下spring注入以及Model驱动公共方法,与Action处理无关==================
|
||||
@Override
|
||||
public MaterialModel getModel()
|
||||
{
|
||||
return model;
|
||||
}
|
||||
public void setMaterialService(MaterialIService materialService)
|
||||
{
|
||||
this.materialService = materialService;
|
||||
}
|
||||
}
|
||||
package com.jsh.action.materials;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.json.JSONArray;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
import com.jsh.base.BaseAction;
|
||||
import com.jsh.base.Log;
|
||||
import com.jsh.model.po.DepotHead;
|
||||
import com.jsh.model.po.Material;
|
||||
import com.jsh.model.po.Logdetails;
|
||||
import com.jsh.model.po.MaterialCategory;
|
||||
import com.jsh.model.po.Supplier;
|
||||
import com.jsh.model.vo.materials.MaterialModel;
|
||||
import com.jsh.service.materials.MaterialIService;
|
||||
import com.jsh.util.common.PageUtil;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class MaterialAction extends BaseAction<MaterialModel>
|
||||
{
|
||||
private MaterialIService materialService;
|
||||
private MaterialModel model = new MaterialModel();
|
||||
|
||||
/**
|
||||
* 增加商品
|
||||
* @return
|
||||
*/
|
||||
public void create()
|
||||
{
|
||||
Log.infoFileSync("==================开始调用增加商品信息方法create()===================");
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Material material = new Material();
|
||||
material.setMaterialCategory(new MaterialCategory(model.getCategoryId()));
|
||||
|
||||
material.setName(model.getName());
|
||||
material.setModel(model.getModel());
|
||||
material.setColor(model.getColor());
|
||||
material.setUnit(model.getUnit());
|
||||
material.setRetailPrice(model.getRetailPrice());
|
||||
material.setLowPrice(model.getLowPrice());
|
||||
material.setPresetPriceOne(model.getPresetPriceOne());
|
||||
material.setPresetPriceTwo(model.getPresetPriceTwo());
|
||||
material.setRemark(model.getRemark());
|
||||
materialService.create(material);
|
||||
|
||||
//========标识位===========
|
||||
flag = true;
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加商品信息异常", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>增加商品信息回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "增加商品", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "增加商品名称为 "+ model.getName() + " " + tipMsg + "!", "增加商品" + tipMsg));
|
||||
Log.infoFileSync("==================结束调用增加商品方法create()===================");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除商品
|
||||
* @return
|
||||
*/
|
||||
public String delete()
|
||||
{
|
||||
Log.infoFileSync("====================开始调用删除商品信息方法delete()================");
|
||||
try
|
||||
{
|
||||
materialService.delete(model.getMaterialID());
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getMaterialID() + " 的商品异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
model.getShowModel().setMsgTip(tipMsg);
|
||||
logService.create(new Logdetails(getUser(), "删除商品", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "删除商品ID为 "+ model.getMaterialID() + " " + tipMsg + "!", "删除商品" + tipMsg));
|
||||
Log.infoFileSync("====================结束调用删除商品信息方法delete()================");
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新商品
|
||||
* @return
|
||||
*/
|
||||
public void update()
|
||||
{
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
Material material = materialService.get(model.getMaterialID());
|
||||
material.setMaterialCategory(new MaterialCategory(model.getCategoryId()));
|
||||
|
||||
material.setName(model.getName());
|
||||
material.setModel(model.getModel());
|
||||
material.setColor(model.getColor());
|
||||
material.setUnit(model.getUnit());
|
||||
material.setRetailPrice(model.getRetailPrice());
|
||||
material.setLowPrice(model.getLowPrice());
|
||||
material.setPresetPriceOne(model.getPresetPriceOne());
|
||||
material.setPresetPriceTwo(model.getPresetPriceTwo());
|
||||
material.setRemark(model.getRemark());
|
||||
material.setName(model.getName());
|
||||
materialService.update(material);
|
||||
|
||||
flag = true;
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>修改商品ID为 : " + model.getMaterialID() + "信息失败", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
toClient(flag.toString());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>修改商品回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
logService.create(new Logdetails(getUser(), "更新商品", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "更新商品ID为 "+ model.getMaterialID() + " " + tipMsg + "!", "更新商品" + tipMsg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除指定ID商品
|
||||
* @return
|
||||
*/
|
||||
public String batchDelete()
|
||||
{
|
||||
try
|
||||
{
|
||||
materialService.batchDelete(model.getMaterialIDs());
|
||||
model.getShowModel().setMsgTip("成功");
|
||||
//记录操作日志使用
|
||||
tipMsg = "成功";
|
||||
tipType = 0;
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>批量删除商品ID为:" + model.getMaterialIDs() + "信息异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "批量删除商品", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "批量删除商品ID为 "+ model.getMaterialIDs() + " " + tipMsg + "!", "批量删除商品" + tipMsg));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找商品信息
|
||||
* @return
|
||||
*/
|
||||
public void findBy()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Material> pageUtil = new PageUtil<Material>();
|
||||
pageUtil.setPageSize(model.getPageSize());
|
||||
pageUtil.setCurPage(model.getPageNo());
|
||||
Long lei=model.getCategoryId();
|
||||
if(1==lei) //判断值还真不能用String类型的判断
|
||||
{
|
||||
pageUtil.setAdvSearch(getCondition_all());
|
||||
}
|
||||
else if(1!=lei)
|
||||
{
|
||||
pageUtil.setAdvSearch(getCondition());
|
||||
}
|
||||
materialService.find(pageUtil);
|
||||
List<Material> dataList = pageUtil.getPageList();
|
||||
|
||||
JSONObject outer = new JSONObject();
|
||||
outer.put("total", pageUtil.getTotalCount());
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Material material:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", material.getId());
|
||||
item.put("Name", material.getName());
|
||||
item.put("Model", material.getModel());
|
||||
item.put("Color", material.getColor());
|
||||
item.put("Unit", material.getUnit());
|
||||
item.put("RetailPrice", material.getRetailPrice());
|
||||
item.put("LowPrice", material.getLowPrice());
|
||||
item.put("PresetPriceOne", material.getPresetPriceOne());
|
||||
item.put("PresetPriceTwo", material.getPresetPriceTwo());
|
||||
item.put("Remark", material.getRemark());
|
||||
item.put("op", 1);
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
outer.put("rows", dataArray);
|
||||
//回写查询结果
|
||||
toClient(outer.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>查找商品信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>回写查询商品信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找商品信息-下拉框
|
||||
* @return
|
||||
*/
|
||||
public void findBySelect()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Material> pageUtil = new PageUtil<Material>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Select());
|
||||
materialService.find(pageUtil);
|
||||
List<Material> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONArray dataArray = new JSONArray();
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Material material:dataList)
|
||||
{
|
||||
JSONObject item = new JSONObject();
|
||||
item.put("Id", material.getId());
|
||||
//名称
|
||||
item.put("MaterialName", ((material.getModel().equals(""))?"":""+material.getModel()) +" "+ material.getName() + ((material.getColor() == null)?"":"("+material.getColor() + ")"));
|
||||
dataArray.add(item);
|
||||
}
|
||||
}
|
||||
//回写查询结果
|
||||
toClient(dataArray.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找商品信息-统计排序
|
||||
* @return
|
||||
*/
|
||||
public void findByOrder()
|
||||
{
|
||||
try
|
||||
{
|
||||
PageUtil<Material> pageUtil = new PageUtil<Material>();
|
||||
pageUtil.setPageSize(0);
|
||||
pageUtil.setCurPage(0);
|
||||
pageUtil.setAdvSearch(getCondition_Order());
|
||||
materialService.find(pageUtil);
|
||||
List<Material> dataList = pageUtil.getPageList();
|
||||
//存放数据json数组
|
||||
JSONObject outer = new JSONObject();
|
||||
String mId = "";
|
||||
if(null != dataList)
|
||||
{
|
||||
for(Material material:dataList)
|
||||
{
|
||||
mId = mId + material.getId() + ",";
|
||||
}
|
||||
}
|
||||
if(mId!="") {
|
||||
mId = mId.substring(0, mId.lastIndexOf(","));
|
||||
}
|
||||
outer.put("mIds", mId);
|
||||
//回写查询结果
|
||||
toClient(outer.toString());
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>查找供应商信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>回写查询供应商信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件(查全部)
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_all()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("Id_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("CategoryId_s_in", model.getCategoryIds());
|
||||
condition.put("Id_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件-下拉框
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Select()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("Id_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼接搜索条件-下拉框
|
||||
* @return
|
||||
*/
|
||||
private Map<String,Object> getCondition_Order()
|
||||
{
|
||||
/**
|
||||
* 拼接搜索条件
|
||||
*/
|
||||
Map<String,Object> condition = new HashMap<String,Object>();
|
||||
condition.put("Name,Model_s_order", "asc");
|
||||
return condition;
|
||||
}
|
||||
|
||||
//=============以下spring注入以及Model驱动公共方法,与Action处理无关==================
|
||||
@Override
|
||||
public MaterialModel getModel()
|
||||
{
|
||||
return model;
|
||||
}
|
||||
public void setMaterialService(MaterialIService materialService)
|
||||
{
|
||||
this.materialService = materialService;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,19 +44,19 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>查找物料类别信息异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>>>查找商品类别信息异常", e);
|
||||
model.getShowModel().setMsgTip("exceptoin");
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加物料类别
|
||||
* 增加商品类别
|
||||
* @return
|
||||
*/
|
||||
public void create()
|
||||
{
|
||||
Log.infoFileSync("==================开始调用增加物料类别信息方法create()===================");
|
||||
Log.infoFileSync("==================开始调用增加商品类别信息方法create()===================");
|
||||
Boolean flag = false;
|
||||
try
|
||||
{
|
||||
@@ -75,7 +75,7 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加物料类别信息异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>增加商品类别信息异常", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
@@ -88,23 +88,23 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>增加物料类别信息回写客户端结果异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>>增加商品类别信息回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "增加物料类别", model.getClientIp(),
|
||||
logService.create(new Logdetails(getUser(), "增加商品类别", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "增加物料类别名称为 "+ model.getName() + " " + tipMsg + "!", "增加物料类别" + tipMsg));
|
||||
Log.infoFileSync("==================结束调用增加物料类别方法create()===================");
|
||||
, tipType, "增加商品类别名称为 "+ model.getName() + " " + tipMsg + "!", "增加商品类别" + tipMsg));
|
||||
Log.infoFileSync("==================结束调用增加商品类别方法create()===================");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物料类别
|
||||
* 删除商品类别
|
||||
* @return
|
||||
*/
|
||||
public String delete()
|
||||
{
|
||||
Log.infoFileSync("====================开始调用删除物料类别信息方法delete()================");
|
||||
Log.infoFileSync("====================开始调用删除商品类别信息方法delete()================");
|
||||
try
|
||||
{
|
||||
materialCategoryService.delete(model.getMaterialCategoryID());
|
||||
@@ -113,20 +113,20 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getMaterialCategoryID() + " 的物料类别异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>删除ID为 " + model.getMaterialCategoryID() + " 的商品类别异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
model.getShowModel().setMsgTip(tipMsg);
|
||||
logService.create(new Logdetails(getUser(), "删除物料类别", model.getClientIp(),
|
||||
logService.create(new Logdetails(getUser(), "删除商品类别", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "删除物料类别ID为 "+ model.getMaterialCategoryID() + " " + tipMsg + "!", "删除物料类别" + tipMsg));
|
||||
Log.infoFileSync("====================结束调用删除物料类别信息方法delete()================");
|
||||
, tipType, "删除商品类别ID为 "+ model.getMaterialCategoryID() + " " + tipMsg + "!", "删除商品类别" + tipMsg));
|
||||
Log.infoFileSync("====================结束调用删除商品类别信息方法delete()================");
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新物料类别
|
||||
* 更新商品类别
|
||||
* @return
|
||||
*/
|
||||
public void update()
|
||||
@@ -147,7 +147,7 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>修改物料类别ID为 : " + model.getMaterialCategoryID() + "信息失败", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>>>修改商品类别ID为 : " + model.getMaterialCategoryID() + "信息失败", e);
|
||||
flag = false;
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
@@ -160,16 +160,16 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>修改物料类别回写客户端结果异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>>修改商品类别回写客户端结果异常", e);
|
||||
}
|
||||
}
|
||||
logService.create(new Logdetails(getUser(), "更新物料类别", model.getClientIp(),
|
||||
logService.create(new Logdetails(getUser(), "更新商品类别", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "更新物料类别ID为 "+ model.getMaterialCategoryID() + " " + tipMsg + "!", "更新物料类别" + tipMsg));
|
||||
, tipType, "更新商品类别ID为 "+ model.getMaterialCategoryID() + " " + tipMsg + "!", "更新商品类别" + tipMsg));
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除指定ID物料类别
|
||||
* 批量删除指定ID商品类别
|
||||
* @return
|
||||
*/
|
||||
public String batchDelete()
|
||||
@@ -184,19 +184,19 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>批量删除物料类别ID为:" + model.getMaterialCategoryIDs() + "信息异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>批量删除商品类别ID为:" + model.getMaterialCategoryIDs() + "信息异常", e);
|
||||
tipMsg = "失败";
|
||||
tipType = 1;
|
||||
}
|
||||
|
||||
logService.create(new Logdetails(getUser(), "批量删除物料类别", model.getClientIp(),
|
||||
logService.create(new Logdetails(getUser(), "批量删除商品类别", model.getClientIp(),
|
||||
new Timestamp(System.currentTimeMillis())
|
||||
, tipType, "批量删除物料类别ID为 "+ model.getMaterialCategoryIDs() + " " + tipMsg + "!", "批量删除物料类别" + tipMsg));
|
||||
, tipType, "批量删除商品类别ID为 "+ model.getMaterialCategoryIDs() + " " + tipMsg + "!", "批量删除商品类别" + tipMsg));
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找物料类别信息
|
||||
* 查找商品类别信息
|
||||
* @return
|
||||
*/
|
||||
public void findBy()
|
||||
@@ -238,11 +238,11 @@ public class MaterialCategoryAction extends BaseAction<MaterialCategoryModel>
|
||||
}
|
||||
catch (DataAccessException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>查找物料类别信息异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>查找商品类别信息异常", e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>回写查询物料类别信息结果异常", e);
|
||||
Log.errorFileSync(">>>>>>>>>>>>>>>>>>>回写查询商品类别信息结果异常", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,137 +1,140 @@
|
||||
package com.jsh.base;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.hibernate.Query;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
|
||||
|
||||
import com.jsh.util.common.PageUtil;
|
||||
import com.jsh.util.common.SearchConditionUtil;
|
||||
|
||||
public class BaseDAO<T> extends HibernateDaoSupport implements BaseIDAO<T>
|
||||
{
|
||||
protected Class<T> entityClass;
|
||||
|
||||
public void setPoJoClass(Class<T> c)
|
||||
{
|
||||
this.entityClass = c;
|
||||
}
|
||||
|
||||
protected Class<T> getEntityClass()
|
||||
{
|
||||
return this.entityClass;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable create(T t) throws DataAccessException
|
||||
{
|
||||
return this.getHibernateTemplate().save(t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(T t) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().delete(t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public T get(Long objID) throws DataAccessException
|
||||
{
|
||||
return (T) this.getHibernateTemplate().get(getEntityClass(), objID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(T t) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().update(t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batchDelete(String objIDs) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().bulkUpdate("delete from " + getEntityClass().getName() + " where id in ("+ objIDs + ")");
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void find(PageUtil<T> pageUtil) throws DataAccessException
|
||||
{
|
||||
Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+
|
||||
SearchConditionUtil.getCondition(pageUtil.getAdvSearch()));
|
||||
pageUtil.setTotalCount(query.list().size());
|
||||
|
||||
// 分页查询
|
||||
int pageNo = pageUtil.getCurPage();
|
||||
int pageSize = pageUtil.getPageSize();
|
||||
if (0 != pageNo && 0 != pageSize)
|
||||
{
|
||||
query.setFirstResult((pageNo - 1) * pageSize);
|
||||
query.setMaxResults(pageSize);
|
||||
}
|
||||
pageUtil.setPageList(query.list());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(Map<String, Object> conditon)throws DataAccessException
|
||||
{
|
||||
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(String hql) throws DataAccessException
|
||||
{
|
||||
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ hql);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(Map<String, Object> conditon, int pageSize, int pageNo)throws DataAccessException
|
||||
{
|
||||
Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon));
|
||||
query.setFirstResult((pageNo - 1) * pageSize);
|
||||
query.setMaxResults(pageSize);
|
||||
return query.list();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(String hql, int pageSize, int pageNo)throws DataAccessException
|
||||
{
|
||||
Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ hql);
|
||||
query.setFirstResult((pageNo - 1) * pageSize);
|
||||
query.setMaxResults(pageSize);
|
||||
return query.list();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Integer countSum(Map<String, Object> conditon)throws DataAccessException
|
||||
{
|
||||
List<T> dataList = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon)).list();
|
||||
return dataList ==null?0:dataList.size();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Integer countSum(String hql) throws DataAccessException
|
||||
{
|
||||
List<T> dataList = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ hql).list();
|
||||
return dataList ==null?0:dataList.size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(T t) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().save(t);
|
||||
}
|
||||
}
|
||||
package com.jsh.base;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.hibernate.Query;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
|
||||
|
||||
import com.jsh.util.common.PageUtil;
|
||||
import com.jsh.util.common.SearchConditionUtil;
|
||||
/**
|
||||
* 基础dao
|
||||
* @author ji_sheng_hua
|
||||
*/
|
||||
public class BaseDAO<T> extends HibernateDaoSupport implements BaseIDAO<T>
|
||||
{
|
||||
protected Class<T> entityClass;
|
||||
|
||||
public void setPoJoClass(Class<T> c)
|
||||
{
|
||||
this.entityClass = c;
|
||||
}
|
||||
|
||||
protected Class<T> getEntityClass()
|
||||
{
|
||||
return this.entityClass;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Serializable create(T t) throws DataAccessException
|
||||
{
|
||||
return this.getHibernateTemplate().save(t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(T t) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().delete(t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public T get(Long objID) throws DataAccessException
|
||||
{
|
||||
return (T) this.getHibernateTemplate().get(getEntityClass(), objID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void update(T t) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().update(t);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void batchDelete(String objIDs) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().bulkUpdate("delete from " + getEntityClass().getName() + " where id in ("+ objIDs + ")");
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void find(PageUtil<T> pageUtil) throws DataAccessException
|
||||
{
|
||||
Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+
|
||||
SearchConditionUtil.getCondition(pageUtil.getAdvSearch()));
|
||||
pageUtil.setTotalCount(query.list().size());
|
||||
|
||||
// 分页查询
|
||||
int pageNo = pageUtil.getCurPage();
|
||||
int pageSize = pageUtil.getPageSize();
|
||||
if (0 != pageNo && 0 != pageSize)
|
||||
{
|
||||
query.setFirstResult((pageNo - 1) * pageSize);
|
||||
query.setMaxResults(pageSize);
|
||||
}
|
||||
pageUtil.setPageList(query.list());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(Map<String, Object> conditon)throws DataAccessException
|
||||
{
|
||||
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(String hql) throws DataAccessException
|
||||
{
|
||||
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ hql);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(Map<String, Object> conditon, int pageSize, int pageNo)throws DataAccessException
|
||||
{
|
||||
Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon));
|
||||
query.setFirstResult((pageNo - 1) * pageSize);
|
||||
query.setMaxResults(pageSize);
|
||||
return query.list();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<T> find(String hql, int pageSize, int pageNo)throws DataAccessException
|
||||
{
|
||||
Query query = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ hql);
|
||||
query.setFirstResult((pageNo - 1) * pageSize);
|
||||
query.setMaxResults(pageSize);
|
||||
return query.list();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Integer countSum(Map<String, Object> conditon)throws DataAccessException
|
||||
{
|
||||
List<T> dataList = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon)).list();
|
||||
return dataList ==null?0:dataList.size();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Integer countSum(String hql) throws DataAccessException
|
||||
{
|
||||
List<T> dataList = this.getHibernateTemplate().getSessionFactory().getCurrentSession()
|
||||
.createQuery(" from " + getEntityClass().getName() + " where 1=1 "+ hql).list();
|
||||
return dataList ==null?0:dataList.size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save(T t) throws DataAccessException
|
||||
{
|
||||
this.getHibernateTemplate().save(t);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.jsh.util.common.PageUtil;
|
||||
|
||||
/**
|
||||
* 常用增删改查操作
|
||||
* @author jishenghua
|
||||
* @author ji-sheng-hua
|
||||
* @param <T>
|
||||
*/
|
||||
public interface BaseIDAO<T>
|
||||
|
||||
@@ -4,7 +4,7 @@ import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
* 封装log4j日志信息,打印日志信息类
|
||||
* @author jishenghua
|
||||
* @author ji/sheng/hua
|
||||
* @since 2014-01-22
|
||||
*/
|
||||
public class Log
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
package com.jsh.dao.basic;
|
||||
|
||||
import com.jsh.base.BaseDAO;
|
||||
import com.jsh.model.po.VisitAccount;
|
||||
|
||||
public class VisitAccountDAO extends BaseDAO<VisitAccount> implements VisitAccountIDAO
|
||||
{
|
||||
/**
|
||||
* 设置dao映射基类
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Class<VisitAccount> getEntityClass()
|
||||
{
|
||||
return VisitAccount.class;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
package com.jsh.dao.basic;
|
||||
|
||||
import com.jsh.base.BaseIDAO;
|
||||
import com.jsh.model.po.VisitAccount;
|
||||
|
||||
public interface VisitAccountIDAO extends BaseIDAO<VisitAccount>
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,39 +1,59 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="com.jsh.model.po.Material" table="jsh_material">
|
||||
<id name="Id" type="java.lang.Long">
|
||||
<column name="Id"/>
|
||||
<generator class="native"/>
|
||||
</id>
|
||||
<many-to-one name="materialCategory" class="com.jsh.model.po.MaterialCategory" lazy="false">
|
||||
<column name="CategoryId" />
|
||||
</many-to-one>
|
||||
<property generated="never" lazy="false" name="Name" type="java.lang.String">
|
||||
<column length="50" name="Name">
|
||||
<comment>名称</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Model" type="java.lang.String">
|
||||
<column length="50" name="Model">
|
||||
<comment>型号</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Color" type="java.lang.String">
|
||||
<column length="50" name="Color">
|
||||
<comment>颜色</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Unit" type="java.lang.String">
|
||||
<column length="50" name="Unit">
|
||||
<comment>单位</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Remark" type="java.lang.String">
|
||||
<column length="100" name="Remark">
|
||||
<comment>备注</comment>
|
||||
</column>
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="com.jsh.model.po.Material" table="jsh_material">
|
||||
<id name="Id" type="java.lang.Long">
|
||||
<column name="Id"/>
|
||||
<generator class="native"/>
|
||||
</id>
|
||||
<many-to-one name="materialCategory" class="com.jsh.model.po.MaterialCategory" lazy="false">
|
||||
<column name="CategoryId" />
|
||||
</many-to-one>
|
||||
<property generated="never" lazy="false" name="Name" type="java.lang.String">
|
||||
<column length="50" name="Name">
|
||||
<comment>名称</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Model" type="java.lang.String">
|
||||
<column length="50" name="Model">
|
||||
<comment>型号</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Color" type="java.lang.String">
|
||||
<column length="50" name="Color">
|
||||
<comment>颜色</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Unit" type="java.lang.String">
|
||||
<column length="50" name="Unit">
|
||||
<comment>单位</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="RetailPrice" type="java.lang.Double">
|
||||
<column name="RetailPrice" precision="22" scale="3">
|
||||
<comment>零售价</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="LowPrice" type="java.lang.Double">
|
||||
<column name="LowPrice" precision="22" scale="3">
|
||||
<comment>最低售价</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="PresetPriceOne" type="java.lang.Double">
|
||||
<column name="PresetPriceOne" precision="22" scale="3">
|
||||
<comment>预设售价一</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="PresetPriceTwo" type="java.lang.Double">
|
||||
<column name="PresetPriceTwo" precision="22" scale="3">
|
||||
<comment>预设售价二</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Remark" type="java.lang.String">
|
||||
<column length="100" name="Remark">
|
||||
<comment>备注</comment>
|
||||
</column>
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
|
||||
@@ -1,91 +1,155 @@
|
||||
package com.jsh.model.po;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class Material implements java.io.Serializable
|
||||
{
|
||||
private Long Id;
|
||||
private MaterialCategory materialCategory;
|
||||
private String Name;
|
||||
private String Model;
|
||||
private String Color;
|
||||
private String Unit;
|
||||
private String Remark;
|
||||
|
||||
public Material()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Material(Long Id)
|
||||
{
|
||||
this.Id = Id;
|
||||
}
|
||||
|
||||
public Material(MaterialCategory materialCategory, String name,
|
||||
String model, String color, String unit, String remark) {
|
||||
super();
|
||||
this.materialCategory = materialCategory;
|
||||
Name = name;
|
||||
Model = model;
|
||||
Color = color;
|
||||
Unit = unit;
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return Id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public MaterialCategory getMaterialCategory() {
|
||||
return materialCategory;
|
||||
}
|
||||
|
||||
public void setMaterialCategory(MaterialCategory materialCategory) {
|
||||
this.materialCategory = materialCategory;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return Name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return Model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
Model = model;
|
||||
}
|
||||
|
||||
public String getColor() {
|
||||
return Color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
Color = color;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return Unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
Unit = unit;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return Remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
}
|
||||
package com.jsh.model.po;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class Material implements java.io.Serializable
|
||||
{
|
||||
private Long Id;
|
||||
private MaterialCategory materialCategory;
|
||||
private String Name;
|
||||
private String Model;
|
||||
private String Color;
|
||||
private String Unit;
|
||||
private Double RetailPrice;
|
||||
private Double LowPrice;
|
||||
private Double PresetPriceOne;
|
||||
private Double PresetPriceTwo;
|
||||
private String Remark;
|
||||
|
||||
public Material()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Material(Long Id)
|
||||
{
|
||||
this.Id = Id;
|
||||
}
|
||||
|
||||
public Material(MaterialCategory materialCategory, String name,
|
||||
String model, String color, String unit, String remark,
|
||||
Double retailPrice, Double lowPrice, Double presetPriceOne, Double presetPriceTwo)
|
||||
{
|
||||
super();
|
||||
this.materialCategory = materialCategory;
|
||||
Name = name;
|
||||
Model = model;
|
||||
Color = color;
|
||||
Unit = unit;
|
||||
RetailPrice = retailPrice;
|
||||
LowPrice = lowPrice;
|
||||
PresetPriceOne = presetPriceOne;
|
||||
PresetPriceTwo = presetPriceTwo;
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return Id;
|
||||
}
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public MaterialCategory getMaterialCategory()
|
||||
{
|
||||
return materialCategory;
|
||||
}
|
||||
|
||||
public void setMaterialCategory(MaterialCategory materialCategory)
|
||||
{
|
||||
this.materialCategory = materialCategory;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public String getModel()
|
||||
{
|
||||
return Model;
|
||||
}
|
||||
|
||||
public void setModel(String model)
|
||||
{
|
||||
Model = model;
|
||||
}
|
||||
|
||||
public String getColor()
|
||||
{
|
||||
return Color;
|
||||
}
|
||||
|
||||
public void setColor(String color)
|
||||
{
|
||||
Color = color;
|
||||
}
|
||||
|
||||
public String getUnit()
|
||||
{
|
||||
return Unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit)
|
||||
{
|
||||
Unit = unit;
|
||||
}
|
||||
|
||||
public void setRetailPrice(Double retailPrice)
|
||||
{
|
||||
RetailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public Double getRetailPrice()
|
||||
{
|
||||
return RetailPrice;
|
||||
}
|
||||
|
||||
public void setLowPrice(Double lowPrice)
|
||||
{
|
||||
LowPrice = lowPrice;
|
||||
}
|
||||
|
||||
public Double getLowPrice()
|
||||
{
|
||||
return LowPrice;
|
||||
}
|
||||
|
||||
public void setPresetPriceOne(Double presetPriceOne)
|
||||
{
|
||||
PresetPriceOne = presetPriceOne;
|
||||
}
|
||||
|
||||
public Double getPresetPriceOne()
|
||||
{
|
||||
return PresetPriceOne;
|
||||
}
|
||||
|
||||
public void setPresetPriceTwo(Double presetPriceTwo)
|
||||
{
|
||||
PresetPriceTwo = presetPriceTwo;
|
||||
}
|
||||
|
||||
public Double getPresetPriceTwo()
|
||||
{
|
||||
return PresetPriceTwo;
|
||||
}
|
||||
|
||||
public String getRemark()
|
||||
{
|
||||
return Remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="com.jsh.model.po.Supplier" table="jsh_supplier">
|
||||
<id name="id" type="java.lang.Long">
|
||||
<column name="id" />
|
||||
<generator class="native"/>
|
||||
</id>
|
||||
<property name="supplier" type="java.lang.String">
|
||||
<column name="supplier" not-null="true">
|
||||
<comment>供应商名称</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="type" type="java.lang.String">
|
||||
<column name="type" length="20">
|
||||
<comment>类型</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="contacts" type="java.lang.String">
|
||||
<column name="contacts" length="100">
|
||||
<comment>联系人</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="phonenum" type="java.lang.String">
|
||||
<column name="phonenum" length="30">
|
||||
<comment>联系电话</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="email" type="java.lang.String">
|
||||
<column name="email" length="50">
|
||||
<comment>电子邮箱</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="description" type="java.lang.String">
|
||||
<column name="description" length="500" />
|
||||
</property>
|
||||
<property name="isystem" type="java.lang.Short">
|
||||
<column name="isystem" not-null="true">
|
||||
<comment>是否系统自带 0==系统 1==非系统</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="enabled" type="boolean">
|
||||
<column length="1" name="enabled">
|
||||
<comment>启用</comment>
|
||||
</column>
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="com.jsh.model.po.Supplier" table="jsh_supplier">
|
||||
<id name="id" type="java.lang.Long">
|
||||
<column name="id" />
|
||||
<generator class="native"/>
|
||||
</id>
|
||||
<property name="supplier" type="java.lang.String">
|
||||
<column name="supplier" not-null="true">
|
||||
<comment>供应商名称</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="type" type="java.lang.String">
|
||||
<column name="type" length="20">
|
||||
<comment>类型</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="contacts" type="java.lang.String">
|
||||
<column name="contacts" length="100">
|
||||
<comment>联系人</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="phonenum" type="java.lang.String">
|
||||
<column name="phonenum" length="30">
|
||||
<comment>联系电话</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="email" type="java.lang.String">
|
||||
<column name="email" length="50">
|
||||
<comment>电子邮箱</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="BeginNeedGet" type="java.lang.Double">
|
||||
<column name="BeginNeedGet" precision="22" scale="3">
|
||||
<comment>期初应收</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="BeginNeedPay" type="java.lang.Double">
|
||||
<column name="BeginNeedPay" precision="22" scale="3">
|
||||
<comment>期初应付</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="AllNeedGet" type="java.lang.Double">
|
||||
<column name="AllNeedGet" precision="22" scale="3">
|
||||
<comment>累计应收</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="AllNeedPay" type="java.lang.Double">
|
||||
<column name="AllNeedPay" precision="22" scale="3">
|
||||
<comment>累计应付</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="description" type="java.lang.String">
|
||||
<column name="description" length="500" />
|
||||
</property>
|
||||
<property name="isystem" type="java.lang.Short">
|
||||
<column name="isystem" not-null="true">
|
||||
<comment>是否系统自带 0==系统 1==非系统</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="enabled" type="boolean">
|
||||
<column length="1" name="enabled">
|
||||
<comment>启用</comment>
|
||||
</column>
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
|
||||
@@ -9,6 +9,10 @@ public class Supplier implements java.io.Serializable
|
||||
private String contacts;
|
||||
private String phonenum;
|
||||
private String email;
|
||||
private Double BeginNeedGet;
|
||||
private Double BeginNeedPay;
|
||||
private Double AllNeedGet;
|
||||
private Double AllNeedPay;
|
||||
private Short isystem;
|
||||
private String description;
|
||||
private Boolean enabled;
|
||||
@@ -23,29 +27,36 @@ public class Supplier implements java.io.Serializable
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Supplier(String supplier, String type, String contacts,
|
||||
String phonenum, String email, Short isystem, String description,
|
||||
Boolean enabled) {
|
||||
public Supplier(String supplier, String type, String contacts, String phonenum,
|
||||
String email, Short isystem, String description, Boolean enabled,
|
||||
Double beginNeedGet,Double beginNeedPay,Double allNeedGet,Double allNeedPay) {
|
||||
super();
|
||||
this.supplier = supplier;
|
||||
this.type = type;
|
||||
this.contacts = contacts;
|
||||
this.phonenum = phonenum;
|
||||
this.email = email;
|
||||
this.BeginNeedGet = beginNeedGet;
|
||||
this.BeginNeedPay = beginNeedPay;
|
||||
this.AllNeedGet = allNeedGet;
|
||||
this.AllNeedPay = allNeedPay;
|
||||
this.isystem = isystem;
|
||||
this.description = description;
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSupplier() {
|
||||
public String getSupplier()
|
||||
{
|
||||
return supplier;
|
||||
}
|
||||
|
||||
@@ -84,6 +95,46 @@ public class Supplier implements java.io.Serializable
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public void setBeginNeedGet(Double beginNeedGet)
|
||||
{
|
||||
BeginNeedGet = beginNeedGet;
|
||||
}
|
||||
|
||||
public Double getBeginNeedGet()
|
||||
{
|
||||
return BeginNeedGet;
|
||||
}
|
||||
|
||||
public void setBeginNeedPay(Double beginNeedPay)
|
||||
{
|
||||
BeginNeedPay = beginNeedPay;
|
||||
}
|
||||
|
||||
public Double getBeginNeedPay()
|
||||
{
|
||||
return BeginNeedPay;
|
||||
}
|
||||
|
||||
public void setAllNeedGet(Double allNeedGet)
|
||||
{
|
||||
AllNeedGet = allNeedGet;
|
||||
}
|
||||
|
||||
public Double getAllNeedGet()
|
||||
{
|
||||
return AllNeedGet;
|
||||
}
|
||||
|
||||
public void setAllNeedPay(Double allNeedPay)
|
||||
{
|
||||
AllNeedPay = allNeedPay;
|
||||
}
|
||||
|
||||
public Double getAllNeedPay()
|
||||
{
|
||||
return AllNeedPay;
|
||||
}
|
||||
|
||||
public Short getIsystem() {
|
||||
return isystem;
|
||||
@@ -107,8 +158,6 @@ public class Supplier implements java.io.Serializable
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping>
|
||||
<class name="com.jsh.model.po.VisitAccount" table="jsh_visitaccount">
|
||||
<id name="Id" type="java.lang.Long">
|
||||
<column name="Id"/>
|
||||
<generator class="native"/>
|
||||
</id>
|
||||
<many-to-one name="depot" class="com.jsh.model.po.Depot" lazy="false">
|
||||
<column name="ProjectId" not-null="true" />
|
||||
</many-to-one>
|
||||
<property generated="never" lazy="false" name="LouHao" type="java.lang.String">
|
||||
<column length="50" name="LouHao">
|
||||
<comment>楼号</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="HuHao" type="java.lang.String">
|
||||
<column length="50" name="HuHao">
|
||||
<comment>户号</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="HuiFang" type="java.lang.String">
|
||||
<column length="50" name="HuiFang">
|
||||
<comment>回访情况</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="LuoShi" type="java.lang.String">
|
||||
<column length="50" name="LuoShi">
|
||||
<comment>落实情况</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Name" type="java.lang.String">
|
||||
<column length="50" name="Name">
|
||||
<comment>住户姓名</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Tel" type="java.lang.String">
|
||||
<column length="50" name="Tel">
|
||||
<comment>电话 </comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="AddTime" type="java.sql.Timestamp">
|
||||
<column length="19" name="AddTime">
|
||||
<comment>时间 </comment>
|
||||
</column>
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
@@ -1,114 +0,0 @@
|
||||
package com.jsh.model.po;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class VisitAccount implements java.io.Serializable
|
||||
{
|
||||
private Long Id;
|
||||
private Depot depot;
|
||||
private String LouHao;
|
||||
private String HuHao;
|
||||
private String HuiFang;
|
||||
private String LuoShi;
|
||||
private String Name;
|
||||
private String Tel;
|
||||
private Timestamp AddTime;
|
||||
|
||||
public VisitAccount()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public VisitAccount(Long Id)
|
||||
{
|
||||
this.Id = Id;
|
||||
}
|
||||
|
||||
public VisitAccount(Depot depot, String LouHao, String HuHao,
|
||||
String HuiFang,String LuoShi,String Name,String Tel,Timestamp AddTime)
|
||||
{
|
||||
this.depot = depot;
|
||||
this.LouHao = LouHao;
|
||||
this.HuHao = HuHao;
|
||||
this.HuiFang = HuiFang;
|
||||
this.LuoShi = LuoShi;
|
||||
this.Name = Name;
|
||||
this.Tel = Tel;
|
||||
this.AddTime = AddTime;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return Id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public Depot getDepot() {
|
||||
return depot;
|
||||
}
|
||||
|
||||
public void setDepot(Depot depot) {
|
||||
this.depot = depot;
|
||||
}
|
||||
|
||||
public String getLouHao() {
|
||||
return LouHao;
|
||||
}
|
||||
|
||||
public void setLouHao(String louHao) {
|
||||
LouHao = louHao;
|
||||
}
|
||||
|
||||
public String getHuHao() {
|
||||
return HuHao;
|
||||
}
|
||||
|
||||
public void setHuHao(String huHao) {
|
||||
HuHao = huHao;
|
||||
}
|
||||
|
||||
public String getHuiFang() {
|
||||
return HuiFang;
|
||||
}
|
||||
|
||||
public void setHuiFang(String huiFang) {
|
||||
HuiFang = huiFang;
|
||||
}
|
||||
|
||||
public String getLuoShi() {
|
||||
return LuoShi;
|
||||
}
|
||||
|
||||
public void setLuoShi(String luoShi) {
|
||||
LuoShi = luoShi;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return Name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public String getTel() {
|
||||
return Tel;
|
||||
}
|
||||
|
||||
public void setTel(String tel) {
|
||||
Tel = tel;
|
||||
}
|
||||
|
||||
public Timestamp getAddTime() {
|
||||
return AddTime;
|
||||
}
|
||||
|
||||
public void setAddTime(Timestamp addTime) {
|
||||
AddTime = addTime;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,177 +1,237 @@
|
||||
package com.jsh.model.vo.basic;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class SupplierModel implements Serializable
|
||||
{
|
||||
private SupplierShowModel showModel = new SupplierShowModel();
|
||||
|
||||
/**======开始接受页面参数=================**/
|
||||
/**
|
||||
* 供应商名称
|
||||
*/
|
||||
private String supplier = "";
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private String type = "";
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
private String contacts = "";
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
private String phonenum = "";
|
||||
|
||||
/**
|
||||
* 电子邮箱
|
||||
*/
|
||||
private String email = "";
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
private String description = "";
|
||||
|
||||
/**
|
||||
* 启用
|
||||
*/
|
||||
private Boolean enabled = false;
|
||||
|
||||
/**
|
||||
* 供应商ID
|
||||
*/
|
||||
private Long supplierID = 0l;
|
||||
|
||||
/**
|
||||
* 供应商IDs 批量操作使用
|
||||
*/
|
||||
private String supplierIDs = "";
|
||||
|
||||
/**
|
||||
* 每页显示的个数
|
||||
*/
|
||||
private int pageSize = 10;
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*/
|
||||
private int pageNo = 1;
|
||||
|
||||
/**
|
||||
* 用户IP,用户记录操作日志
|
||||
*/
|
||||
private String clientIp = "";
|
||||
|
||||
public SupplierShowModel getShowModel() {
|
||||
return showModel;
|
||||
}
|
||||
|
||||
public void setShowModel(SupplierShowModel showModel) {
|
||||
this.showModel = showModel;
|
||||
}
|
||||
|
||||
public String getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
|
||||
public void setSupplier(String supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getContacts() {
|
||||
return contacts;
|
||||
}
|
||||
|
||||
public void setContacts(String contacts) {
|
||||
this.contacts = contacts;
|
||||
}
|
||||
|
||||
public String getPhonenum() {
|
||||
return phonenum;
|
||||
}
|
||||
|
||||
public void setPhonenum(String phonenum) {
|
||||
this.phonenum = phonenum;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Long getSupplierID() {
|
||||
return supplierID;
|
||||
}
|
||||
|
||||
public void setSupplierID(Long supplierID) {
|
||||
this.supplierID = supplierID;
|
||||
}
|
||||
|
||||
public String getSupplierIDs() {
|
||||
return supplierIDs;
|
||||
}
|
||||
|
||||
public void setSupplierIDs(String supplierIDs) {
|
||||
this.supplierIDs = supplierIDs;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getPageNo() {
|
||||
return pageNo;
|
||||
}
|
||||
|
||||
public void setPageNo(int pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
|
||||
public String getClientIp() {
|
||||
return clientIp;
|
||||
}
|
||||
|
||||
public void setClientIp(String clientIp) {
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
package com.jsh.model.vo.basic;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class SupplierModel implements Serializable
|
||||
{
|
||||
private SupplierShowModel showModel = new SupplierShowModel();
|
||||
|
||||
/**======开始接受页面参数=================**/
|
||||
/**
|
||||
* 供应商名称
|
||||
*/
|
||||
private String supplier = "";
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private String type = "";
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
private String contacts = "";
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
private String phonenum = "";
|
||||
|
||||
/**
|
||||
* 电子邮箱
|
||||
*/
|
||||
private String email = "";
|
||||
|
||||
/**
|
||||
* 期初应收
|
||||
*/
|
||||
private Double BeginNeedGet;
|
||||
|
||||
/**
|
||||
* 期初应付
|
||||
*/
|
||||
private Double BeginNeedPay;
|
||||
|
||||
/**
|
||||
* 累计应收
|
||||
*/
|
||||
private Double AllNeedGet;
|
||||
|
||||
/**
|
||||
* 累计应付
|
||||
*/
|
||||
private Double AllNeedPay;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
private String description = "";
|
||||
|
||||
/**
|
||||
* 启用
|
||||
*/
|
||||
private Boolean enabled = false;
|
||||
|
||||
/**
|
||||
* 供应商ID
|
||||
*/
|
||||
private Long supplierID = 0l;
|
||||
|
||||
/**
|
||||
* 供应商IDs 批量操作使用
|
||||
*/
|
||||
private String supplierIDs = "";
|
||||
|
||||
/**
|
||||
* 每页显示的个数
|
||||
*/
|
||||
private int pageSize = 10;
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*/
|
||||
private int pageNo = 1;
|
||||
|
||||
/**
|
||||
* 用户IP,用户记录操作日志
|
||||
*/
|
||||
private String clientIp = "";
|
||||
|
||||
public SupplierShowModel getShowModel() {
|
||||
return showModel;
|
||||
}
|
||||
|
||||
public void setShowModel(SupplierShowModel showModel) {
|
||||
this.showModel = showModel;
|
||||
}
|
||||
|
||||
public String getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
|
||||
public void setSupplier(String supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getContacts() {
|
||||
return contacts;
|
||||
}
|
||||
|
||||
public void setContacts(String contacts) {
|
||||
this.contacts = contacts;
|
||||
}
|
||||
|
||||
public String getPhonenum() {
|
||||
return phonenum;
|
||||
}
|
||||
|
||||
public void setPhonenum(String phonenum) {
|
||||
this.phonenum = phonenum;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public void setBeginNeedGet(Double beginNeedGet)
|
||||
{
|
||||
BeginNeedGet = beginNeedGet;
|
||||
}
|
||||
|
||||
public Double getBeginNeedGet()
|
||||
{
|
||||
return BeginNeedGet;
|
||||
}
|
||||
|
||||
public void setBeginNeedPay(Double beginNeedPay)
|
||||
{
|
||||
BeginNeedPay = beginNeedPay;
|
||||
}
|
||||
|
||||
public Double getBeginNeedPay()
|
||||
{
|
||||
return BeginNeedPay;
|
||||
}
|
||||
|
||||
public void setAllNeedGet(Double allNeedGet)
|
||||
{
|
||||
AllNeedGet = allNeedGet;
|
||||
}
|
||||
|
||||
public Double getAllNeedGet()
|
||||
{
|
||||
return AllNeedGet;
|
||||
}
|
||||
|
||||
public void setAllNeedPay(Double allNeedPay)
|
||||
{
|
||||
AllNeedPay = allNeedPay;
|
||||
}
|
||||
|
||||
public Double getAllNeedPay()
|
||||
{
|
||||
return AllNeedPay;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Long getSupplierID() {
|
||||
return supplierID;
|
||||
}
|
||||
|
||||
public void setSupplierID(Long supplierID) {
|
||||
this.supplierID = supplierID;
|
||||
}
|
||||
|
||||
public String getSupplierIDs() {
|
||||
return supplierIDs;
|
||||
}
|
||||
|
||||
public void setSupplierIDs(String supplierIDs) {
|
||||
this.supplierIDs = supplierIDs;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getPageNo() {
|
||||
return pageNo;
|
||||
}
|
||||
|
||||
public void setPageNo(int pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
|
||||
public String getClientIp() {
|
||||
return clientIp;
|
||||
}
|
||||
|
||||
public void setClientIp(String clientIp) {
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,184 +0,0 @@
|
||||
package com.jsh.model.vo.basic;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class VisitAccountModel implements Serializable
|
||||
{
|
||||
private VisitAccountShowModel showModel = new VisitAccountShowModel();
|
||||
|
||||
/**======开始接受页面参数=================**/
|
||||
/**
|
||||
* ProjectId
|
||||
*/
|
||||
private Long ProjectId;
|
||||
/**
|
||||
* 楼号
|
||||
*/
|
||||
private String LouHao = "";
|
||||
/**
|
||||
* 户号
|
||||
*/
|
||||
private String HuHao = "";
|
||||
/**
|
||||
* 回访情况
|
||||
*/
|
||||
private String HuiFang = "";
|
||||
/**
|
||||
* 落实情况
|
||||
*/
|
||||
private String LuoShi = "";
|
||||
/**
|
||||
* 住户姓名
|
||||
*/
|
||||
private String Name = "";
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
private String Tel = "";
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
private String AddTime = "";
|
||||
|
||||
/**
|
||||
* 分类ID
|
||||
*/
|
||||
private Long visitAccountID = 0l;
|
||||
|
||||
/**
|
||||
* 分类IDs 批量操作使用
|
||||
*/
|
||||
private String visitAccountIDs = "";
|
||||
|
||||
/**
|
||||
* 每页显示的个数
|
||||
*/
|
||||
private int pageSize = 10;
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*/
|
||||
private int pageNo = 1;
|
||||
|
||||
/**
|
||||
* 用户IP,用户记录操作日志
|
||||
*/
|
||||
private String clientIp = "";
|
||||
|
||||
|
||||
public VisitAccountShowModel getShowModel() {
|
||||
return showModel;
|
||||
}
|
||||
|
||||
public void setShowModel(VisitAccountShowModel showModel) {
|
||||
this.showModel = showModel;
|
||||
}
|
||||
|
||||
public Long getProjectId() {
|
||||
return ProjectId;
|
||||
}
|
||||
|
||||
public void setProjectId(Long projectId) {
|
||||
ProjectId = projectId;
|
||||
}
|
||||
|
||||
public String getLouHao() {
|
||||
return LouHao;
|
||||
}
|
||||
|
||||
public void setLouHao(String louHao) {
|
||||
LouHao = louHao;
|
||||
}
|
||||
|
||||
public String getHuHao() {
|
||||
return HuHao;
|
||||
}
|
||||
|
||||
public void setHuHao(String huHao) {
|
||||
HuHao = huHao;
|
||||
}
|
||||
|
||||
public String getHuiFang() {
|
||||
return HuiFang;
|
||||
}
|
||||
|
||||
public void setHuiFang(String huiFang) {
|
||||
HuiFang = huiFang;
|
||||
}
|
||||
|
||||
public String getLuoShi() {
|
||||
return LuoShi;
|
||||
}
|
||||
|
||||
public void setLuoShi(String luoShi) {
|
||||
LuoShi = luoShi;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return Name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public String getTel() {
|
||||
return Tel;
|
||||
}
|
||||
|
||||
public void setTel(String tel) {
|
||||
Tel = tel;
|
||||
}
|
||||
|
||||
public String getAddTime() {
|
||||
return AddTime;
|
||||
}
|
||||
|
||||
public void setAddTime(String addTime) {
|
||||
AddTime = addTime;
|
||||
}
|
||||
|
||||
public Long getVisitAccountID() {
|
||||
return visitAccountID;
|
||||
}
|
||||
|
||||
public void setVisitAccountID(Long visitAccountID) {
|
||||
this.visitAccountID = visitAccountID;
|
||||
}
|
||||
|
||||
public String getVisitAccountIDs() {
|
||||
return visitAccountIDs;
|
||||
}
|
||||
|
||||
public void setVisitAccountIDs(String visitAccountIDs) {
|
||||
this.visitAccountIDs = visitAccountIDs;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getPageNo() {
|
||||
return pageNo;
|
||||
}
|
||||
|
||||
public void setPageNo(int pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
|
||||
public String getClientIp() {
|
||||
return clientIp;
|
||||
}
|
||||
|
||||
public void setClientIp(String clientIp) {
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package com.jsh.model.vo.basic;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class VisitAccountShowModel implements Serializable
|
||||
{
|
||||
/**
|
||||
* 提示信息
|
||||
*/
|
||||
private String msgTip = "";
|
||||
|
||||
public String getMsgTip()
|
||||
{
|
||||
return msgTip;
|
||||
}
|
||||
|
||||
public void setMsgTip(String msgTip)
|
||||
{
|
||||
this.msgTip = msgTip;
|
||||
}
|
||||
}
|
||||
@@ -1,175 +1,235 @@
|
||||
package com.jsh.model.vo.materials;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class MaterialModel implements Serializable
|
||||
{
|
||||
private MaterialShowModel showModel = new MaterialShowModel();
|
||||
|
||||
/**======开始接受页面参数=================**/
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String Name = "";
|
||||
|
||||
/**
|
||||
* 型号
|
||||
*/
|
||||
private String Model = "";
|
||||
|
||||
/**
|
||||
* 颜色
|
||||
*/
|
||||
private String Color = "";
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String Unit = "";
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String Remark = "";
|
||||
|
||||
/**
|
||||
* CategoryId
|
||||
*/
|
||||
private Long CategoryId;
|
||||
|
||||
/**
|
||||
* CategoryIds 用于in子查询
|
||||
*/
|
||||
private String CategoryIds = "1";
|
||||
|
||||
/**
|
||||
* 分类ID
|
||||
*/
|
||||
private Long materialID = 0l;
|
||||
|
||||
/**
|
||||
* 分类IDs 批量操作使用
|
||||
*/
|
||||
private String materialIDs = "";
|
||||
|
||||
/**
|
||||
* 每页显示的个数
|
||||
*/
|
||||
private int pageSize = 10;
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*/
|
||||
private int pageNo = 1;
|
||||
|
||||
/**
|
||||
* 用户IP,用户记录操作日志
|
||||
*/
|
||||
private String clientIp = "";
|
||||
|
||||
public MaterialShowModel getShowModel() {
|
||||
return showModel;
|
||||
}
|
||||
|
||||
public void setShowModel(MaterialShowModel showModel) {
|
||||
this.showModel = showModel;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return Name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return Model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
Model = model;
|
||||
}
|
||||
|
||||
public String getColor() {
|
||||
return Color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
Color = color;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return Unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
Unit = unit;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return Remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
public Long getCategoryId() {
|
||||
return CategoryId;
|
||||
}
|
||||
|
||||
public void setCategoryId(Long categoryId) {
|
||||
CategoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getMaterialID() {
|
||||
return materialID;
|
||||
}
|
||||
|
||||
public void setMaterialID(Long materialID) {
|
||||
this.materialID = materialID;
|
||||
}
|
||||
|
||||
public String getMaterialIDs() {
|
||||
return materialIDs;
|
||||
}
|
||||
|
||||
public void setMaterialIDs(String materialIDs) {
|
||||
this.materialIDs = materialIDs;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getPageNo() {
|
||||
return pageNo;
|
||||
}
|
||||
|
||||
public void setPageNo(int pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
|
||||
public String getClientIp() {
|
||||
return clientIp;
|
||||
}
|
||||
|
||||
public void setClientIp(String clientIp) {
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
|
||||
public String getCategoryIds() {
|
||||
return CategoryIds;
|
||||
}
|
||||
|
||||
public void setCategoryIds(String categoryIds) {
|
||||
CategoryIds = categoryIds;
|
||||
}
|
||||
|
||||
}
|
||||
package com.jsh.model.vo.materials;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class MaterialModel implements Serializable
|
||||
{
|
||||
private MaterialShowModel showModel = new MaterialShowModel();
|
||||
|
||||
/**======开始接受页面参数=================**/
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String Name = "";
|
||||
|
||||
/**
|
||||
* 型号
|
||||
*/
|
||||
private String Model = "";
|
||||
|
||||
/**
|
||||
* 颜色
|
||||
*/
|
||||
private String Color = "";
|
||||
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String Unit = "";
|
||||
|
||||
/**
|
||||
* 零售价
|
||||
*/
|
||||
private Double RetailPrice;
|
||||
|
||||
/**
|
||||
* 最低售价
|
||||
*/
|
||||
private Double LowPrice;
|
||||
|
||||
/**
|
||||
* 预设售价一
|
||||
*/
|
||||
private Double PresetPriceOne;
|
||||
|
||||
/**
|
||||
* 预设售价二
|
||||
*/
|
||||
private Double PresetPriceTwo;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String Remark = "";
|
||||
|
||||
/**
|
||||
* CategoryId
|
||||
*/
|
||||
private Long CategoryId;
|
||||
|
||||
/**
|
||||
* CategoryIds 用于in子查询
|
||||
*/
|
||||
private String CategoryIds = "1";
|
||||
|
||||
/**
|
||||
* 分类ID
|
||||
*/
|
||||
private Long materialID = 0l;
|
||||
|
||||
/**
|
||||
* 分类IDs 批量操作使用
|
||||
*/
|
||||
private String materialIDs = "";
|
||||
|
||||
/**
|
||||
* 每页显示的个数
|
||||
*/
|
||||
private int pageSize = 10;
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*/
|
||||
private int pageNo = 1;
|
||||
|
||||
/**
|
||||
* 用户IP,用户记录操作日志
|
||||
*/
|
||||
private String clientIp = "";
|
||||
|
||||
public MaterialShowModel getShowModel() {
|
||||
return showModel;
|
||||
}
|
||||
|
||||
public void setShowModel(MaterialShowModel showModel) {
|
||||
this.showModel = showModel;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return Name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return Model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
Model = model;
|
||||
}
|
||||
|
||||
public String getColor() {
|
||||
return Color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
Color = color;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return Unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
Unit = unit;
|
||||
}
|
||||
|
||||
public void setRetailPrice(Double retailPrice)
|
||||
{
|
||||
RetailPrice = retailPrice;
|
||||
}
|
||||
|
||||
public Double getRetailPrice()
|
||||
{
|
||||
return RetailPrice;
|
||||
}
|
||||
|
||||
public void setLowPrice(Double lowPrice)
|
||||
{
|
||||
LowPrice = lowPrice;
|
||||
}
|
||||
|
||||
public Double getLowPrice()
|
||||
{
|
||||
return LowPrice;
|
||||
}
|
||||
|
||||
public void setPresetPriceOne(Double presetPriceOne)
|
||||
{
|
||||
PresetPriceOne = presetPriceOne;
|
||||
}
|
||||
|
||||
public Double getPresetPriceOne()
|
||||
{
|
||||
return PresetPriceOne;
|
||||
}
|
||||
|
||||
public void setPresetPriceTwo(Double presetPriceTwo)
|
||||
{
|
||||
PresetPriceTwo = presetPriceTwo;
|
||||
}
|
||||
|
||||
public Double getPresetPriceTwo()
|
||||
{
|
||||
return PresetPriceTwo;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return Remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
Remark = remark;
|
||||
}
|
||||
|
||||
public Long getCategoryId() {
|
||||
return CategoryId;
|
||||
}
|
||||
|
||||
public void setCategoryId(Long categoryId) {
|
||||
CategoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getMaterialID() {
|
||||
return materialID;
|
||||
}
|
||||
|
||||
public void setMaterialID(Long materialID) {
|
||||
this.materialID = materialID;
|
||||
}
|
||||
|
||||
public String getMaterialIDs() {
|
||||
return materialIDs;
|
||||
}
|
||||
|
||||
public void setMaterialIDs(String materialIDs) {
|
||||
this.materialIDs = materialIDs;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getPageNo() {
|
||||
return pageNo;
|
||||
}
|
||||
|
||||
public void setPageNo(int pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
|
||||
public String getClientIp() {
|
||||
return clientIp;
|
||||
}
|
||||
|
||||
public void setClientIp(String clientIp) {
|
||||
this.clientIp = clientIp;
|
||||
}
|
||||
|
||||
public String getCategoryIds() {
|
||||
return CategoryIds;
|
||||
}
|
||||
|
||||
public void setCategoryIds(String categoryIds) {
|
||||
CategoryIds = categoryIds;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
package com.jsh.service.basic;
|
||||
|
||||
import com.jsh.base.BaseIService;
|
||||
import com.jsh.model.po.VisitAccount;
|
||||
|
||||
public interface VisitAccountIService extends BaseIService<VisitAccount>
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package com.jsh.service.basic;
|
||||
|
||||
import com.jsh.base.BaseService;
|
||||
import com.jsh.dao.basic.VisitAccountIDAO;
|
||||
import com.jsh.model.po.VisitAccount;
|
||||
|
||||
public class VisitAccountService extends BaseService<VisitAccount> implements VisitAccountIService
|
||||
{
|
||||
@SuppressWarnings("unused")
|
||||
private VisitAccountIDAO visitAccountDao;
|
||||
|
||||
|
||||
public void setVisitAccountDao(VisitAccountIDAO visitAccountDao) {
|
||||
this.visitAccountDao = visitAccountDao;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected Class<VisitAccount> getEntityClass()
|
||||
{
|
||||
return VisitAccount.class;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user