Commit d0f023fc by 宋祥

1.fixBug:排除admin账户

parent 618d6756
......@@ -106,7 +106,7 @@ public class ServiceHPPZ006 extends ServiceBase {
queryParam.put("inventCode", fPz006.getInventCode());
queryParam.put("spec", fPz006.getSpec());
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()));
}
}
......
......@@ -18,7 +18,7 @@
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
AND loginName != 'admin'
AND LOGIN_NAME != 'admin'
</sql>
<!-- 查询用户信息 -->
......
......@@ -80,6 +80,8 @@ public class ServiceHPZL001 extends ServiceBase {
HPConstant.SequenceId.HPZL001_NUMBER));
DaoUtils.insert("HPZL001.insert", fZl001);
}
inInfo = this.query(inInfo);
inInfo.setStatus(EiConstant.STATUS_DEFAULT);
inInfo.setMsg("操作成功!本次对[" + resultRows.size() + "]条数据新增成功!");
} catch (Exception 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