|
|
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
14
|
14
|
import org.springframework.web.bind.annotation.RestController;
|
|
15
|
15
|
|
|
16
|
16
|
import com.chinaitop.depot.keeperAccount.model.StorageAccountRecord;
|
|
|
17
|
+import com.chinaitop.depot.keeperAccount.model.StorageAccountRecordExample;
|
|
17
|
18
|
import com.chinaitop.depot.keeperAccount.service.StorageAccountRecordService;
|
|
18
|
19
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
19
|
20
|
import com.github.pagehelper.PageHelper;
|
|
|
@@ -81,6 +82,31 @@ public class StorageAccountRecordController {
|
|
81
|
82
|
obj.put("kcsl", kcsl);
|
|
82
|
83
|
kcsl = 0d;
|
|
83
|
84
|
}
|
|
|
85
|
+ //查询是否记账和是否审核
|
|
|
86
|
+ StorageAccountRecordExample example = new StorageAccountRecordExample();
|
|
|
87
|
+ StorageAccountRecordExample.Criteria criteria = example.createCriteria();
|
|
|
88
|
+ criteria.andLspzEqualTo(Integer.parseInt(obj.get("lspz")+""));
|
|
|
89
|
+ criteria.andHwxzEqualTo(Integer.parseInt(obj.get("hwxz")+""));
|
|
|
90
|
+ criteria.andRqEqualTo(obj.get("rq")+"");
|
|
|
91
|
+ criteria.andOrgIdEqualTo(Integer.parseInt(kcsl_map.get("orgId")+""));
|
|
|
92
|
+ criteria.andAccountTypeEqualTo(1);
|
|
|
93
|
+ List<StorageAccountRecord> findList = recordService.findByConditon(example);
|
|
|
94
|
+ if (null != findList && findList.size() > 0) {
|
|
|
95
|
+ StorageAccountRecord record = findList.get(0);
|
|
|
96
|
+ String accountingPerson = record.getAccountingPerson();
|
|
|
97
|
+ if (null != accountingPerson && !"".equals(accountingPerson)) {
|
|
|
98
|
+ obj.put("jz", true);
|
|
|
99
|
+ } else {
|
|
|
100
|
+ obj.put("jz", false);
|
|
|
101
|
+ }
|
|
|
102
|
+ String auditor = record.getAuditor();
|
|
|
103
|
+ if (null != auditor && !"".equals(auditor)) {
|
|
|
104
|
+ obj.put("sh", true);
|
|
|
105
|
+ } else {
|
|
|
106
|
+ obj.put("sh", false);
|
|
|
107
|
+ }
|
|
|
108
|
+ }
|
|
|
109
|
+
|
|
84
|
110
|
}
|
|
85
|
111
|
}
|
|
86
|
112
|
PageInfo<Map<String, Object>> pageInfo = new PageInfo<Map<String, Object>>(list);
|