Commit d0f023fc by 宋祥

1.fixBug:排除admin账户

parent 618d6756
...@@ -106,7 +106,7 @@ public class ServiceHPPZ006 extends ServiceBase { ...@@ -106,7 +106,7 @@ public class ServiceHPPZ006 extends ServiceBase {
queryParam.put("inventCode", fPz006.getInventCode()); queryParam.put("inventCode", fPz006.getInventCode());
queryParam.put("spec", fPz006.getSpec()); queryParam.put("spec", fPz006.getSpec());
List<HPPZ006> dbPz006 = dao.query(HPPZ006.QUERY, queryParam); List<HPPZ006> dbPz006 = dao.query(HPPZ006.QUERY, queryParam);
AssertUtils.isNotEmpty(dbPz006, String.format("存货编码[%]已存在规格[%s],请勿重复添加!", fPz006.getInventCode(), AssertUtils.isNotEmpty(dbPz006, String.format("存货编码[%s]已存在规格[%s],请勿重复添加!", fPz006.getInventCode(),
fPz006.getSpec())); fPz006.getSpec()));
} }
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<isNotEmpty prepend=" AND " property="companyCode"> <isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode# COMPANY_CODE = #companyCode#
</isNotEmpty> </isNotEmpty>
AND loginName != 'admin' AND LOGIN_NAME != 'admin'
</sql> </sql>
<!-- 查询用户信息 --> <!-- 查询用户信息 -->
......
...@@ -80,6 +80,8 @@ public class ServiceHPZL001 extends ServiceBase { ...@@ -80,6 +80,8 @@ public class ServiceHPZL001 extends ServiceBase {
HPConstant.SequenceId.HPZL001_NUMBER)); HPConstant.SequenceId.HPZL001_NUMBER));
DaoUtils.insert("HPZL001.insert", fZl001); DaoUtils.insert("HPZL001.insert", fZl001);
} }
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据新增成功!"); inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据新增成功!");
} catch (Exception e) { } catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "新增失败"); LogUtils.setDetailMsg(inInfo, e, "新增失败");
......
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