"src/git@ustchcs.com:gujinli1118/JSH_ERP.git" did not exist on "2d17493abec361c31f289dd8bbdaa6b22d8955de"
Commit 86df29f6 authored by 季圣华's avatar 季圣华
Browse files

no commit message

parent b8a2b074
...@@ -15,7 +15,7 @@ import com.jsh.model.po.Basicuser; ...@@ -15,7 +15,7 @@ import com.jsh.model.po.Basicuser;
import com.jsh.service.basic.LogIService; import com.jsh.service.basic.LogIService;
/** /**
* struts2工具类 * struts2工具类
* @author jishenghua * @author jishenghua qq752718920
* struts2 base action 一些常用方法获取 * struts2 base action 一些常用方法获取
*/ */
@SuppressWarnings("serial") @SuppressWarnings("serial")
......
...@@ -8,11 +8,11 @@ import org.hibernate.Query; ...@@ -8,11 +8,11 @@ import org.hibernate.Query;
import org.springframework.dao.DataAccessException; import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport; import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import com.jsh.util.common.PageUtil; import com.jsh.util.PageUtil;
import com.jsh.util.common.SearchConditionUtil; import com.jsh.util.SearchConditionUtil;
/** /**
* 基础dao * 基础dao
* @author ji_sheng_hua * @author ji_sheng_hua qq:752718920
*/ */
public class BaseDAO<T> extends HibernateDaoSupport implements BaseIDAO<T> public class BaseDAO<T> extends HibernateDaoSupport implements BaseIDAO<T>
{ {
......
...@@ -6,11 +6,11 @@ import java.util.Map; ...@@ -6,11 +6,11 @@ import java.util.Map;
import org.springframework.dao.DataAccessException; import org.springframework.dao.DataAccessException;
import com.jsh.util.common.PageUtil; import com.jsh.util.PageUtil;
/** /**
* 常用增删改查操作 * 常用增删改查操作
* @author ji-sheng-hua * @author ji-sheng-hua qq752718920
* @param <T> * @param <T>
*/ */
public interface BaseIDAO<T> public interface BaseIDAO<T>
......
package com.jsh.base; package com.jsh.base;
import java.io.Serializable; import java.io.Serializable;
import org.springframework.dao.DataAccessException; import org.springframework.dao.DataAccessException;
import com.jsh.util.common.PageUtil; import com.jsh.util.PageUtil;
/**
public interface BaseIService<T> * 服务层底层接口
{ * @author ji-sheng-hua qq752718920
/** * @param <T>
* 增加 */
* @param t 对象 public interface BaseIService<T>
* @throws DataAccessException {
*/ /**
Serializable create(T t)throws DataAccessException; * 增加
* @param t 对象
/** * @throws DataAccessException
* 增加 */
* @param t 对象 Serializable create(T t)throws DataAccessException;
* @throws DataAccessException
*/ /**
void save(T t)throws DataAccessException; * 增加
* @param t 对象
/** * @throws DataAccessException
* 删除 */
* @param t 对象 void save(T t)throws DataAccessException;
* @throws DataAccessException
*/ /**
void delete(T t)throws DataAccessException; * 删除
* @param t 对象
/** * @throws DataAccessException
* 删除 */
* @param id 对象ID void delete(T t)throws DataAccessException;
* @throws DataAccessException
*/ /**
void delete(Long id)throws DataAccessException; * 删除
* @param id 对象ID
/** * @throws DataAccessException
* 获取 */
* @param objID ID void delete(Long id)throws DataAccessException;
* @return 对象
* @throws DataAccessException /**
*/ * 获取
T get(Long objID)throws DataAccessException; * @param objID ID
* @return 对象
/** * @throws DataAccessException
* 修改信息 */
* @param t 要修改的对象 T get(Long objID)throws DataAccessException;
* @throws DataAccessException
*/ /**
void update(T t)throws DataAccessException; * 修改信息
* @param t 要修改的对象
/** * @throws DataAccessException
* 批量删除信息 */
* @param 以逗号分割的ID void update(T t)throws DataAccessException;
* @throws DataAccessException
*/ /**
void batchDelete(String objIDs)throws DataAccessException; * 批量删除信息
* @param 以逗号分割的ID
/** * @throws DataAccessException
* 查找列表 */
* @param pageUtil 分页工具类 void batchDelete(String objIDs)throws DataAccessException;
* @throws DataAccessException
*/ /**
void find(PageUtil<T> pageUtil) throws DataAccessException; * 查找列表
* @param pageUtil 分页工具类
/** * @throws DataAccessException
* 检查名称是否存在,页面唯一性效验使用 */
* @param filedName 效验的字段名称 void find(PageUtil<T> pageUtil) throws DataAccessException;
* @param filedVale 校验值
* @param idFiled ID字段名称 /**
* @param objectID 修改时对象ID * 检查名称是否存在,页面唯一性效验使用
* @return true==存在 false==不存在 * @param filedName 效验的字段名称
* @throws DataAccessException * @param filedVale 校验值
*/ * @param idFiled ID字段名称
Boolean checkIsNameExist(String filedName,String filedVale,String idFiled,Long objectID) throws DataAccessException; * @param objectID 修改时对象ID
* @return true==存在 false==不存在
/** * @throws DataAccessException
* 检查UserBusiness是否存在,页面唯一性效验使用 */
* @param TypeName 类型名称 Boolean checkIsNameExist(String filedName,String filedVale,String idFiled,Long objectID) throws DataAccessException;
* @param TypeVale 类型值
* @param KeyIdName 关键id /**
* @param KeyIdValue 关键值 * 检查UserBusiness是否存在,页面唯一性效验使用
* @param UBName 关系名称 * @param TypeName 类型名称
* @param UBValue 关系值 * @param TypeVale 类型值
* @return true==存在 false==不存在 * @param KeyIdName 关键id
* @throws DataAccessException * @param KeyIdValue 关键值
*/ * @param UBName 关系名称
Boolean checkIsUserBusinessExist(String TypeName,String TypeVale,String KeyIdName,String KeyIdValue,String UBName,String UBValue) throws DataAccessException; * @param UBValue 关系值
* @return true==存在 false==不存在
/** * @throws DataAccessException
* 检查UserBusiness是否存在,页面唯一性效验使用 */
* @param TypeName 类型名称 Boolean checkIsUserBusinessExist(String TypeName,String TypeVale,String KeyIdName,String KeyIdValue,String UBName,String UBValue) throws DataAccessException;
* @param TypeVale 类型值
* @param KeyIdName 关键id /**
* @param KeyIdValue 关键值 * 检查UserBusiness是否存在,页面唯一性效验使用
* @return true==存在 false==不存在 * @param TypeName 类型名称
* @throws DataAccessException * @param TypeVale 类型值
*/ * @param KeyIdName 关键id
Boolean checkIsValueExist(String TypeName, String TypeVale, String KeyIdName, String KeyIdValue) throws DataAccessException; * @param KeyIdValue 关键值
* @return true==存在 false==不存在
* @throws DataAccessException
*/
} Boolean checkIsValueExist(String TypeName, String TypeVale, String KeyIdName, String KeyIdValue) throws DataAccessException;
}
...@@ -7,10 +7,14 @@ import java.util.Map; ...@@ -7,10 +7,14 @@ import java.util.Map;
import org.springframework.dao.DataAccessException; import org.springframework.dao.DataAccessException;
import com.jsh.exception.JshException; import com.jsh.util.JshException;
import com.jsh.model.po.Basicuser; import com.jsh.model.po.Basicuser;
import com.jsh.util.common.PageUtil; import com.jsh.util.PageUtil;
/**
* 底层服务层
* @author ji-sheng-hua qq752718920
* @param <T>
*/
public abstract class BaseService<T> implements BaseIService<T> public abstract class BaseService<T> implements BaseIService<T>
{ {
/** /**
......
...@@ -4,7 +4,7 @@ import org.apache.log4j.Logger; ...@@ -4,7 +4,7 @@ import org.apache.log4j.Logger;
/** /**
* 封装log4j日志信息,打印日志信息类 * 封装log4j日志信息,打印日志信息类
* @author ji/sheng/hua * @author ji/sheng/hua qq_752718920
* @since 2014-01-22 * @since 2014-01-22
*/ */
public class Log public class Log
...@@ -17,7 +17,7 @@ public class Log ...@@ -17,7 +17,7 @@ public class Log
/** /**
* 获取Log4j实例 * 获取Log4j实例
*/ */
private static final Logger log = Logger.getLogger("ams"); private static final Logger log = Logger.getLogger("jsh");
/** /**
* Info级别日志前缀 * Info级别日志前缀
......
This diff is collapsed.
package com.jsh.constants.asset;
public interface ExcelConstantsCode
{
/**
* 导入excel表格常量定义
*/
public class ImportExcelCode
{
/**
* 表格正确
*/
public static final String RIGHT = "right";
/**
* 表格错误
*/
public static final String WRONG = "wrong";
/**
* 表格警告
*/
public static final String WARN = "warn";
}
/**
* 导出excel表格常量定义
* @author angel
*
*/
public class ExportExcelCode
{
}
}
This diff is collapsed.
This diff is collapsed.
...@@ -3,10 +3,10 @@ package com.jsh.dao.asset; ...@@ -3,10 +3,10 @@ package com.jsh.dao.asset;
import org.hibernate.Query; import org.hibernate.Query;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport; import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import com.jsh.exception.JshException; import com.jsh.util.JshException;
import com.jsh.model.po.Asset; import com.jsh.model.po.Asset;
import com.jsh.util.common.PageUtil; import com.jsh.util.PageUtil;
import com.jsh.util.common.SearchConditionUtil; import com.jsh.util.SearchConditionUtil;
public class ReportDAO extends HibernateDaoSupport implements ReportIDAO public class ReportDAO extends HibernateDaoSupport implements ReportIDAO
{ {
......
package com.jsh.dao.asset; package com.jsh.dao.asset;
import com.jsh.exception.JshException; import com.jsh.util.JshException;
import com.jsh.model.po.Asset; import com.jsh.model.po.Asset;
import com.jsh.util.common.PageUtil; import com.jsh.util.PageUtil;
public interface ReportIDAO public interface ReportIDAO
{ {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment