Commit e2172dd1 by wancheng

配置日志注解

parent 96c99a74
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo; import com.baosight.iplat4j.core.ei.EiInfo;
...@@ -22,6 +23,7 @@ public class ServiceHPPZ001 extends ServiceBase { ...@@ -22,6 +23,7 @@ public class ServiceHPPZ001 extends ServiceBase {
/** /**
* 画面初始化. * 画面初始化.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
Thppz001 hppz001 = new Thppz001(); Thppz001 hppz001 = new Thppz001();
EiInfo outInfo = super.initLoad(inInfo, hppz001); EiInfo outInfo = super.initLoad(inInfo, hppz001);
...@@ -33,6 +35,7 @@ public class ServiceHPPZ001 extends ServiceBase { ...@@ -33,6 +35,7 @@ public class ServiceHPPZ001 extends ServiceBase {
/** /**
* 查询操作. * 查询操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
/* 调用EI查询方法.*/ /* 调用EI查询方法.*/
...@@ -44,6 +47,7 @@ public class ServiceHPPZ001 extends ServiceBase { ...@@ -44,6 +47,7 @@ public class ServiceHPPZ001 extends ServiceBase {
/** /**
* 新增操作. * 新增操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
...@@ -76,6 +80,7 @@ public class ServiceHPPZ001 extends ServiceBase { ...@@ -76,6 +80,7 @@ public class ServiceHPPZ001 extends ServiceBase {
/** /**
* 修改操作. * 修改操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try { try {
...@@ -103,6 +108,7 @@ public class ServiceHPPZ001 extends ServiceBase { ...@@ -103,6 +108,7 @@ public class ServiceHPPZ001 extends ServiceBase {
/** /**
* 删除操作. * 删除操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo eiInfo) { public EiInfo delete(EiInfo eiInfo) {
Thppz001 hppz001 = new Thppz001(); Thppz001 hppz001 = new Thppz001();
EiBlock eiBlock = eiInfo.getBlock(EiConstant.resultBlock); EiBlock eiBlock = eiInfo.getBlock(EiConstant.resultBlock);
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.CompanyTypeEnum; import com.baosight.hpjx.common.CompanyTypeEnum;
import com.baosight.hpjx.common.InitiateModeEnum; import com.baosight.hpjx.common.InitiateModeEnum;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
...@@ -36,6 +37,7 @@ public class ServiceHPPZ002 extends ServiceBase { ...@@ -36,6 +37,7 @@ public class ServiceHPPZ002 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
inInfo.setBlock(CompanyTypeEnum.generatorEiBlock()); inInfo.setBlock(CompanyTypeEnum.generatorEiBlock());
...@@ -53,6 +55,7 @@ public class ServiceHPPZ002 extends ServiceBase { ...@@ -53,6 +55,7 @@ public class ServiceHPPZ002 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -69,6 +72,7 @@ public class ServiceHPPZ002 extends ServiceBase { ...@@ -69,6 +72,7 @@ public class ServiceHPPZ002 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
CommonMethod.creatorInfo(inInfo, EiConstant.resultBlock); CommonMethod.creatorInfo(inInfo, EiConstant.resultBlock);
...@@ -97,6 +101,7 @@ public class ServiceHPPZ002 extends ServiceBase { ...@@ -97,6 +101,7 @@ public class ServiceHPPZ002 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
CommonMethod.creatorInfo(inInfo, EiConstant.resultBlock); CommonMethod.creatorInfo(inInfo, EiConstant.resultBlock);
try { try {
...@@ -121,6 +126,7 @@ public class ServiceHPPZ002 extends ServiceBase { ...@@ -121,6 +126,7 @@ public class ServiceHPPZ002 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.CompanyTypeEnum; import com.baosight.hpjx.common.CompanyTypeEnum;
import com.baosight.hpjx.common.InitiateModeEnum; import com.baosight.hpjx.common.InitiateModeEnum;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
...@@ -33,6 +34,7 @@ public class ServiceHPPZ003 extends ServiceBase { ...@@ -33,6 +34,7 @@ public class ServiceHPPZ003 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
inInfo.setBlock(CompanyTypeEnum.generatorEiBlock()); inInfo.setBlock(CompanyTypeEnum.generatorEiBlock());
...@@ -50,6 +52,7 @@ public class ServiceHPPZ003 extends ServiceBase { ...@@ -50,6 +52,7 @@ public class ServiceHPPZ003 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -66,6 +69,7 @@ public class ServiceHPPZ003 extends ServiceBase { ...@@ -66,6 +69,7 @@ public class ServiceHPPZ003 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
try { try {
...@@ -93,6 +97,7 @@ public class ServiceHPPZ003 extends ServiceBase { ...@@ -93,6 +97,7 @@ public class ServiceHPPZ003 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -116,6 +121,7 @@ public class ServiceHPPZ003 extends ServiceBase { ...@@ -116,6 +121,7 @@ public class ServiceHPPZ003 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.DdynamicEnum; import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.common.InitiateModeEnum; import com.baosight.hpjx.common.InitiateModeEnum;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
...@@ -36,6 +37,7 @@ public class ServiceHPPZ004 extends ServiceBase { ...@@ -36,6 +37,7 @@ public class ServiceHPPZ004 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
inInfo.setBlock(InitiateModeEnum.generatorEiBlock()); inInfo.setBlock(InitiateModeEnum.generatorEiBlock());
...@@ -52,6 +54,7 @@ public class ServiceHPPZ004 extends ServiceBase { ...@@ -52,6 +54,7 @@ public class ServiceHPPZ004 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -68,6 +71,7 @@ public class ServiceHPPZ004 extends ServiceBase { ...@@ -68,6 +71,7 @@ public class ServiceHPPZ004 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
try { try {
...@@ -95,6 +99,7 @@ public class ServiceHPPZ004 extends ServiceBase { ...@@ -95,6 +99,7 @@ public class ServiceHPPZ004 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -117,6 +122,7 @@ public class ServiceHPPZ004 extends ServiceBase { ...@@ -117,6 +122,7 @@ public class ServiceHPPZ004 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "判断存货名称是否存在,如果存在返回编码,否则新增并返回编码")
public EiInfo checkAndSave(EiInfo inInfo){ public EiInfo checkAndSave(EiInfo inInfo){
String inventType = inInfo.getString("inventType"); String inventType = inInfo.getString("inventType");
String inventName = inInfo.getString("inventName"); String inventName = inInfo.getString("inventName");
...@@ -150,6 +156,7 @@ public class ServiceHPPZ004 extends ServiceBase { ...@@ -150,6 +156,7 @@ public class ServiceHPPZ004 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -177,6 +184,7 @@ public class ServiceHPPZ004 extends ServiceBase { ...@@ -177,6 +184,7 @@ public class ServiceHPPZ004 extends ServiceBase {
* @param eiInfo * @param eiInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "下拉框")
public EiInfo queryComboBox(EiInfo eiInfo) { public EiInfo queryComboBox(EiInfo eiInfo) {
Map map = new HashMap(); Map map = new HashMap();
map.put("inventType", eiInfo.getString("inventType")); map.put("inventType", eiInfo.getString("inventType"));
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.hp.pz.domain.HPPZ005; import com.baosight.hpjx.hp.pz.domain.HPPZ005;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
...@@ -14,7 +15,7 @@ import java.util.Date; ...@@ -14,7 +15,7 @@ import java.util.Date;
import java.util.Map; import java.util.Map;
public class ServiceHPPZ005 extends ServiceBase { public class ServiceHPPZ005 extends ServiceBase {
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
HPPZ005 hppz005 = new HPPZ005(); HPPZ005 hppz005 = new HPPZ005();
EiInfo outInfo = super.initLoad(inInfo, hppz005); EiInfo outInfo = super.initLoad(inInfo, hppz005);
...@@ -26,6 +27,7 @@ public class ServiceHPPZ005 extends ServiceBase { ...@@ -26,6 +27,7 @@ public class ServiceHPPZ005 extends ServiceBase {
/** /**
* 查询操作. * 查询操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
/* 调用EI查询方法.*/ /* 调用EI查询方法.*/
...@@ -37,6 +39,7 @@ public class ServiceHPPZ005 extends ServiceBase { ...@@ -37,6 +39,7 @@ public class ServiceHPPZ005 extends ServiceBase {
/** /**
* 新增操作. * 新增操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
...@@ -69,6 +72,7 @@ public class ServiceHPPZ005 extends ServiceBase { ...@@ -69,6 +72,7 @@ public class ServiceHPPZ005 extends ServiceBase {
/** /**
* 修改操作. * 修改操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try { try {
...@@ -96,6 +100,7 @@ public class ServiceHPPZ005 extends ServiceBase { ...@@ -96,6 +100,7 @@ public class ServiceHPPZ005 extends ServiceBase {
/** /**
* 删除操作. * 删除操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo eiInfo) { public EiInfo delete(EiInfo eiInfo) {
HPPZ005 hppz005 = new HPPZ005(); HPPZ005 hppz005 = new HPPZ005();
EiBlock eiBlock = eiInfo.getBlock(EiConstant.resultBlock); EiBlock eiBlock = eiInfo.getBlock(EiConstant.resultBlock);
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.DdynamicEnum; import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.common.InitiateModeEnum; import com.baosight.hpjx.common.InitiateModeEnum;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
...@@ -36,6 +37,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -36,6 +37,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_NAME_BLOCK_ID), null,false); CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.INVENT_NAME_BLOCK_ID), null,false);
...@@ -50,6 +52,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -50,6 +52,7 @@ public class ServiceHPPZ006 extends ServiceBase {
/** /**
* 查询操作. * 查询操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -66,6 +69,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -66,6 +69,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
try { try {
...@@ -95,6 +99,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -95,6 +99,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* *
* @param resultRows * @param resultRows
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "校验 ",operDesc = "校验保存的数据")
private void checkSaveData(List<Map> resultRows) { private void checkSaveData(List<Map> resultRows) {
for (int i = 0; i < resultRows.size(); i++) { for (int i = 0; i < resultRows.size(); i++) {
HPPZ006 fPz006 = new HPPZ006(); HPPZ006 fPz006 = new HPPZ006();
...@@ -119,6 +124,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -119,6 +124,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -145,6 +151,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -145,6 +151,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -166,6 +173,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -166,6 +173,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "判断存货档案是否存在,如果存在返回ID,否则新增并返回ID")
public EiInfo checkAndSave(EiInfo inInfo){ public EiInfo checkAndSave(EiInfo inInfo){
inInfo.setCell(EiConstant.queryBlock,0,HPPZ006.FIELD_INVENT_TYPE,inInfo.getString("inventType")); inInfo.setCell(EiConstant.queryBlock,0,HPPZ006.FIELD_INVENT_TYPE,inInfo.getString("inventType"));
inInfo.setCell(EiConstant.queryBlock,0,HPPZ006.FIELD_INVENT_CODE,inInfo.getString("inventCode")); inInfo.setCell(EiConstant.queryBlock,0,HPPZ006.FIELD_INVENT_CODE,inInfo.getString("inventCode"));
...@@ -207,6 +215,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -207,6 +215,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "规格下拉框")
public EiInfo queryComboBoxSpec(EiInfo inInfo) { public EiInfo queryComboBoxSpec(EiInfo inInfo) {
try { try {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
...@@ -224,6 +233,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -224,6 +233,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param eiInfo * @param eiInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "存货名称下拉框")
public EiInfo queryMaterialComboBox(EiInfo eiInfo) { public EiInfo queryMaterialComboBox(EiInfo eiInfo) {
Map map = EiInfoUtils.getFirstRow(eiInfo); Map map = EiInfoUtils.getFirstRow(eiInfo);
if (ObjectUtils.isEmpty(map.get("inventType"))) { if (ObjectUtils.isEmpty(map.get("inventType"))) {
...@@ -245,6 +255,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -245,6 +255,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "下拉框")
public EiInfo queryComboBoxAll(EiInfo inInfo) { public EiInfo queryComboBoxAll(EiInfo inInfo) {
try { try {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
...@@ -262,6 +273,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -262,6 +273,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "单位下拉框")
public EiInfo queryComboBoxUnit(EiInfo inInfo) { public EiInfo queryComboBoxUnit(EiInfo inInfo) {
try { try {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
...@@ -279,6 +291,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -279,6 +291,7 @@ public class ServiceHPPZ006 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "下拉框")
public EiInfo queryPrdtComboBox(EiInfo inInfo) { public EiInfo queryPrdtComboBox(EiInfo inInfo) {
try { try {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.DdynamicEnum; import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.constant.HPConstant; import com.baosight.hpjx.hp.constant.HPConstant;
...@@ -31,6 +32,7 @@ public class ServiceHPPZ007 extends ServiceBase { ...@@ -31,6 +32,7 @@ public class ServiceHPPZ007 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.USER_BLOCK_ID), null,true); CommonMethod.initBlock(inInfo, Arrays.asList(DdynamicEnum.USER_BLOCK_ID), null,true);
...@@ -47,6 +49,7 @@ public class ServiceHPPZ007 extends ServiceBase { ...@@ -47,6 +49,7 @@ public class ServiceHPPZ007 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -60,6 +63,7 @@ public class ServiceHPPZ007 extends ServiceBase { ...@@ -60,6 +63,7 @@ public class ServiceHPPZ007 extends ServiceBase {
/** /**
* 新增操作. * 新增操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
try { try {
...@@ -87,6 +91,7 @@ public class ServiceHPPZ007 extends ServiceBase { ...@@ -87,6 +91,7 @@ public class ServiceHPPZ007 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -110,6 +115,7 @@ public class ServiceHPPZ007 extends ServiceBase { ...@@ -110,6 +115,7 @@ public class ServiceHPPZ007 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -131,6 +137,7 @@ public class ServiceHPPZ007 extends ServiceBase { ...@@ -131,6 +137,7 @@ public class ServiceHPPZ007 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "根据仓库CODE找对象")
public EiInfo queryByWhCode(EiInfo inInfo) { public EiInfo queryByWhCode(EiInfo inInfo) {
Map params = new HashMap<>(); Map params = new HashMap<>();
params.put("whCode", inInfo.getString("whCode")); params.put("whCode", inInfo.getString("whCode"));
...@@ -145,6 +152,7 @@ public class ServiceHPPZ007 extends ServiceBase { ...@@ -145,6 +152,7 @@ public class ServiceHPPZ007 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "下拉框")
public EiInfo queryComboBox(EiInfo inInfo) { public EiInfo queryComboBox(EiInfo inInfo) {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
list.add(DdynamicEnum.WH_RECORD_BLOCK_ID); list.add(DdynamicEnum.WH_RECORD_BLOCK_ID);
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.iplat4j.core.ei.EiBlock; import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiConstant; import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo; import com.baosight.iplat4j.core.ei.EiInfo;
...@@ -22,6 +23,7 @@ public class ServiceHPPZ008 extends ServiceBase { ...@@ -22,6 +23,7 @@ public class ServiceHPPZ008 extends ServiceBase {
/** /**
* 画面初始化. * 画面初始化.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
Thppz008 hppz008 = new Thppz008(); Thppz008 hppz008 = new Thppz008();
EiInfo outInfo = super.initLoad(inInfo, hppz008); EiInfo outInfo = super.initLoad(inInfo, hppz008);
...@@ -33,6 +35,7 @@ public class ServiceHPPZ008 extends ServiceBase { ...@@ -33,6 +35,7 @@ public class ServiceHPPZ008 extends ServiceBase {
/** /**
* 查询操作. * 查询操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
/* 调用EI查询方法.*/ /* 调用EI查询方法.*/
...@@ -44,6 +47,7 @@ public class ServiceHPPZ008 extends ServiceBase { ...@@ -44,6 +47,7 @@ public class ServiceHPPZ008 extends ServiceBase {
/** /**
* 新增操作. * 新增操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
...@@ -79,6 +83,7 @@ public class ServiceHPPZ008 extends ServiceBase { ...@@ -79,6 +83,7 @@ public class ServiceHPPZ008 extends ServiceBase {
/** /**
* 修改操作. * 修改操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try { try {
...@@ -106,6 +111,7 @@ public class ServiceHPPZ008 extends ServiceBase { ...@@ -106,6 +111,7 @@ public class ServiceHPPZ008 extends ServiceBase {
/** /**
* 删除操作. * 删除操作.
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除 ",operDesc = "删除")
public EiInfo delete(EiInfo eiInfo) { public EiInfo delete(EiInfo eiInfo) {
Thppz008 hppz008 = new Thppz008(); Thppz008 hppz008 = new Thppz008();
EiBlock eiBlock = eiInfo.getBlock(EiConstant.resultBlock); EiBlock eiBlock = eiInfo.getBlock(EiConstant.resultBlock);
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.constant.HPConstant; import com.baosight.hpjx.hp.constant.HPConstant;
...@@ -36,6 +37,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -36,6 +37,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPPZ009().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPPZ009().eiMetadata);
...@@ -51,6 +53,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -51,6 +53,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询 ",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -67,6 +70,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -67,6 +70,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "插入 ",operDesc = "保存")
public EiInfo save(EiInfo inInfo) { public EiInfo save(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -96,6 +100,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -96,6 +100,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* *
* @param resultRows * @param resultRows
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "校验 ",operDesc = "校验保存的数据")
private void checkSaveData(List<Map> resultRows) { private void checkSaveData(List<Map> resultRows) {
// 数据校验 // 数据校验
for (int i = 0; i < resultRows.size(); i++) { for (int i = 0; i < resultRows.size(); i++) {
...@@ -113,6 +118,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -113,6 +118,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* @param fPz009 * @param fPz009
* @throws Exception * @throws Exception
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增企业信息")
private void add(HPPZ009 fPz009) throws Exception { private void add(HPPZ009 fPz009) throws Exception {
// 生成企业编码 // 生成企业编码
fPz009.setCompanyCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.COMPANY_CODE)); fPz009.setCompanyCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.COMPANY_CODE));
...@@ -132,6 +138,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -132,6 +138,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* *
* @param fPz009 * @param fPz009
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改 ",operDesc = "修改")
private void modify(HPPZ009 fPz009) { private void modify(HPPZ009 fPz009) {
DaoUtils.update("HPPZ009.update", fPz009); DaoUtils.update("HPPZ009.update", fPz009);
} }
...@@ -142,6 +149,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -142,6 +149,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "新增")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
try { try {
...@@ -168,6 +176,7 @@ public class ServiceHPPZ009 extends ServiceBase { ...@@ -168,6 +176,7 @@ public class ServiceHPPZ009 extends ServiceBase {
* *
* @param hppz009 * @param hppz009
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增 ",operDesc = "初始化用户")
private void initUser(HPPZ009 hppz009) throws Exception { private void initUser(HPPZ009 hppz009) throws Exception {
String companyCode = hppz009.getCompanyCode(); String companyCode = hppz009.getCompanyCode();
Map inInfoRowMap = new HashMap(); Map inInfoRowMap = new HashMap();
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
import com.baosight.hpjx.hp.constant.HPSqlConstant; import com.baosight.hpjx.hp.constant.HPSqlConstant;
...@@ -35,6 +36,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -35,6 +36,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPPZ010().eiMetadata); inInfo.addBlock(EiConstant.resultBlock).addBlockMeta(new HPPZ010().eiMetadata);
...@@ -50,6 +52,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -50,6 +52,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "查询数据列表")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -66,6 +69,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -66,6 +69,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增",operDesc = "保存操作")
public EiInfo save(EiInfo inInfo) { public EiInfo save(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -95,6 +99,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -95,6 +99,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* *
* @param resultRows * @param resultRows
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "校验",operDesc = "校验保存的数据")
private void checkSaveData(List<Map> resultRows) { private void checkSaveData(List<Map> resultRows) {
// 数据校验 // 数据校验
for (int i = 0; i < resultRows.size(); i++) { for (int i = 0; i < resultRows.size(); i++) {
...@@ -111,6 +116,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -111,6 +116,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* @param fPz009 * @param fPz009
* @throws Exception * @throws Exception
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增",operDesc = "新增企业信息")
private void add(HPPZ009 fPz009) throws Exception { private void add(HPPZ009 fPz009) throws Exception {
// 生成企业编码 // 生成企业编码
fPz009.setCompanyCode(SequenceGenerator.getNextSequence("COMPANY_CODE")); fPz009.setCompanyCode(SequenceGenerator.getNextSequence("COMPANY_CODE"));
...@@ -127,6 +133,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -127,6 +133,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* *
* @param fPz009 * @param fPz009
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改",operDesc = "修改数据")
private void modify(HPPZ009 fPz009) { private void modify(HPPZ009 fPz009) {
DaoUtils.update("HPPZ009.update", fPz009); DaoUtils.update("HPPZ009.update", fPz009);
} }
...@@ -137,6 +144,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -137,6 +144,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增",operDesc = "新增操作")
@Override @Override
public EiInfo insert(EiInfo inInfo) { public EiInfo insert(EiInfo inInfo) {
try { try {
...@@ -163,6 +171,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -163,6 +171,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* *
* @param hppz009 * @param hppz009
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增",operDesc = "初始化用户")
private void initUser(HPPZ009 hppz009) throws Exception { private void initUser(HPPZ009 hppz009) throws Exception {
String companyCode = hppz009.getCompanyCode(); String companyCode = hppz009.getCompanyCode();
Map inInfoRowMap = new HashMap(); Map inInfoRowMap = new HashMap();
...@@ -191,6 +200,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -191,6 +200,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* *
* @param hppz009 * @param hppz009
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "用户关联角色")
private void insertGroupMember(HPPZ009 hppz009) { private void insertGroupMember(HPPZ009 hppz009) {
String companyCode = hppz009.getCompanyCode(); String companyCode = hppz009.getCompanyCode();
Map inInfoRowMap = new HashMap(); Map inInfoRowMap = new HashMap();
...@@ -216,6 +226,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -216,6 +226,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改",operDesc = "修改操作")
public EiInfo update(EiInfo inInfo) { public EiInfo update(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -241,6 +252,7 @@ public class ServiceHPPZ010 extends ServiceBase { ...@@ -241,6 +252,7 @@ public class ServiceHPPZ010 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除",operDesc = "删除操作")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
......
package com.baosight.hpjx.hp.pz.service; package com.baosight.hpjx.hp.pz.service;
import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import com.baosight.hpjx.common.DdynamicEnum; import com.baosight.hpjx.common.DdynamicEnum;
import com.baosight.hpjx.core.constant.CommonConstant; import com.baosight.hpjx.core.constant.CommonConstant;
import com.baosight.hpjx.core.dao.DaoUtils; import com.baosight.hpjx.core.dao.DaoUtils;
...@@ -37,6 +38,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -37,6 +38,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "初始化")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
Map queryMap = new HashMap(); Map queryMap = new HashMap();
...@@ -56,6 +58,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -56,6 +58,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "查询")
@Override @Override
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
...@@ -72,6 +75,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -72,6 +75,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增",operDesc = "保存操作")
public EiInfo save(EiInfo inInfo) { public EiInfo save(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -112,6 +116,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -112,6 +116,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* *
* @param resultRows * @param resultRows
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "校验",operDesc = "校验保存的数据")
private void checkSaveData(List<Map> resultRows) { private void checkSaveData(List<Map> resultRows) {
// 数据校验 // 数据校验
for (int i = 0; i < resultRows.size(); i++) { for (int i = 0; i < resultRows.size(); i++) {
...@@ -127,6 +132,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -127,6 +132,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* *
* @param fPz011 * @param fPz011
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "新增",operDesc = "新增企业信息")
private void add(HPPZ011 fPz011) { private void add(HPPZ011 fPz011) {
fPz011.setDeleteFlag(CommonConstant.YesNo.NO_0); fPz011.setDeleteFlag(CommonConstant.YesNo.NO_0);
DaoUtils.insert(HPPZ011.INSERT, fPz011); DaoUtils.insert(HPPZ011.INSERT, fPz011);
...@@ -137,6 +143,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -137,6 +143,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* *
* @param fPz011 * @param fPz011
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "修改",operDesc = "修改数据")
private void modify(HPPZ011 fPz011) { private void modify(HPPZ011 fPz011) {
DaoUtils.update(HPPZ011.UPDATE, fPz011); DaoUtils.update(HPPZ011.UPDATE, fPz011);
} }
...@@ -147,6 +154,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -147,6 +154,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "删除",operDesc = "删除操作")
public EiInfo delete(EiInfo inInfo) { public EiInfo delete(EiInfo inInfo) {
try { try {
List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows(); List<Map> resultRows = inInfo.getBlock(EiConstant.resultBlock).getRows();
...@@ -168,6 +176,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -168,6 +176,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "下拉框")
public EiInfo queryComboBox(EiInfo inInfo) { public EiInfo queryComboBox(EiInfo inInfo) {
try { try {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
...@@ -178,7 +187,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -178,7 +187,7 @@ public class ServiceHPPZ011 extends ServiceBase {
} }
return inInfo; return inInfo;
} }
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "下拉框")
public EiInfo queryComboBoxAll(EiInfo inInfo) { public EiInfo queryComboBoxAll(EiInfo inInfo) {
try { try {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
...@@ -194,6 +203,7 @@ public class ServiceHPPZ011 extends ServiceBase { ...@@ -194,6 +203,7 @@ public class ServiceHPPZ011 extends ServiceBase {
* @param inInfo * @param inInfo
* @return * @return
*/ */
@OperationLogAnnotation(operModul = "配置管理",operType = "查询",operDesc = "下拉框")
public EiInfo queryGroupComboBox(EiInfo inInfo) { public EiInfo queryGroupComboBox(EiInfo inInfo) {
try { try {
List<DdynamicEnum> list = new ArrayList<>(); List<DdynamicEnum> list = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment