Commit 6f6ba554 by kangxiaoshan

加 收款金额 开票金额

parent b81fe475
......@@ -1634,7 +1634,8 @@ public class ContractServiceImpl implements ContractService {
//收款开票金额
if (codeMoneyMap.containsKey(c.getContractCode())) {
if (codeMoneyMap == null || codeMoneyMap.isEmpty() || !codeMoneyMap.containsKey(c.getContractCode())) {
c.setAmountCollected("0");
c.setInvoiceAmount("0");
} else {
......
......@@ -95,6 +95,11 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
if (sessionAct == null) {
User one = userRepository.findOne(Long.parseLong(key));
if (one == null) {
printJsonResponse(response, "用户不存在");
return false;
}
if (!one.getRole().equals(RoleEnum.MANAGER.getKey())) {
Auth auth = authRepository.findByUser(one.getId());
Map<String, String> authdata = (Map<String, String>) JSONArray.fromObject(auth.getAuth())
......
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