CostCostingCollectionServiceImpl.java 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. package com.imed.costaccount.service.impl;
  2. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  3. import com.imed.costaccount.mapper.CostCostingCollectionMapper;
  4. import com.imed.costaccount.model.CostCostingCollection;
  5. import com.imed.costaccount.service.CostCostingCollectionService;
  6. import com.imed.costaccount.service.CostShareLevelService;
  7. import lombok.extern.slf4j.Slf4j;
  8. import org.springframework.stereotype.Service;
  9. @Slf4j
  10. @Service("costCostingCollectionService")
  11. public class CostCostingCollectionServiceImpl extends ServiceImpl<CostCostingCollectionMapper, CostCostingCollection> implements CostCostingCollectionService {
  12. private final CostShareLevelService costShareLevelService;
  13. public CostCostingCollectionServiceImpl(CostShareLevelService costShareLevelService) {
  14. this.costShareLevelService = costShareLevelService;
  15. }
  16. // /**
  17. // * 分摊后报表输出
  18. // * 测试数据
  19. // * @param writer
  20. // * @param shareNumber
  21. // * @param sheet
  22. // * @return
  23. // */
  24. // @Override
  25. // public ExcelWriter getShareReportTemplate(ExcelWriter writer, Integer shareNumber, Sheet sheet) {
  26. // // 需要封装两个 分摊层级责任中心集合 目标层级责任中心
  27. // // 分摊层级责任中心集合
  28. //// LinkedList<SplitLevelVO> splitLevelVOLinkedList = new LinkedList<>();
  29. //// // 目标层级责任中心集合
  30. //// LinkedList<TargetSplitLevelVO> targetSplitLevelVOLinkedList = new LinkedList<>();
  31. //// setMockData(splitLevelVOLinkedList, targetSplitLevelVOLinkedList);
  32. // List<CostCostingVO> costCostingVOS = setMockDa();
  33. // Map<String, List<CostCostingVO>> responsibilityMap = costCostingVOS.stream().collect(Collectors.groupingBy(CostCostingVO::getResponsibilityCode));
  34. //// Map<String, String> collect = costCostingVOS.stream().collect(Collectors.toMap(CostCostingVO::getResponsibilityCode, CostCostingVO::getAccountCode));
  35. // Map<String, List<CostCostingVO>> targetResponsibilityMap = costCostingVOS.stream().collect(Collectors.groupingBy(CostCostingVO::getTargetResponsibilityCode));
  36. // Map<String, CostCostingVO> allAccMap = costCostingVOS.stream().collect(Collectors.toMap(k -> k.getResponsibilityName()+k.getAccountName()+k.getTargetResponsibilityName()+k.getShareParamName(), synOne -> synOne));
  37. // Map<String, CostCostingVO> allAliMap = costCostingVOS.stream().collect(Collectors.toMap(k -> k.getResponsibilityName()+k.getAlias()+k.getTargetResponsibilityName()+k.getShareParamName(), synOne -> synOne));
  38. // // 当前责任中心下面有几个会计科目 后面进行合并使用
  39. // int numResponsibility;
  40. // // 从第几列开始编写数据
  41. // int column = shareNumber + 4;
  42. // // 总共有多少个单元格
  43. //// Integer shareLevelGrid = 0;
  44. // Set<String> keySet = responsibilityMap.keySet();
  45. // for (String key : keySet) {
  46. // List<CostCostingVO> costCostingVOS1 = responsibilityMap.get(key);
  47. // Map<String, CostCostingVO> linkedHashMap = new LinkedHashMap<>();
  48. // costCostingVOS1.forEach(i -> {
  49. // String s = i.getResponsibilityCode() + i.getAccountCode();
  50. // if (!linkedHashMap.containsKey(s)) {
  51. // linkedHashMap.put(s, i);
  52. // }
  53. // });
  54. // numResponsibility = linkedHashMap.size();
  55. // if (numResponsibility >= NumberConstant.TWO) {
  56. // // 需要合并单元格
  57. //// writer.merge(0, 0, column, column + numResponsibility - 1, costCostingVOS1.get(0).getResponsibilityName(), false);
  58. // // 设置对应的会计科目或者别名
  59. // Set<String> strings = linkedHashMap.keySet();
  60. // for (String s : strings) {
  61. // CostCostingVO costCostingVO = linkedHashMap.get(s);
  62. // if (StrUtil.isBlank(costCostingVO.getAlias())) {
  63. // writer.writeCellValue(column,0,costCostingVO.getResponsibilityName());
  64. // // 别名不存在
  65. // writer.writeCellValue(column, 1, costCostingVO.getAccountName());
  66. // } else {
  67. // // 不为空 设置别名
  68. // writer.writeCellValue(column,0,costCostingVO.getResponsibilityName());
  69. // writer.writeCellValue(column, 1, costCostingVO.getAlias());
  70. // }
  71. // writer.writeCellValue(column, 2, costCostingVO.getAmount());
  72. // column++;
  73. // }
  74. //// for (int j=0;j<numResponsibility;j++){
  75. //// CostCostingVO costCostingVO = costCostingVOS1.get(j);
  76. //// if (StrUtil.isBlank(costCostingVO.getAlias())){
  77. //// // 别名不存在
  78. //// writer.writeCellValue(j+column,1,costCostingVO.getAccountName());
  79. //// }else {
  80. //// // 不为空 设置别名
  81. //// writer.writeCellValue(j+column,1,costCostingVO.getAlias());
  82. //// }
  83. //// writer.writeCellValue(j+column,2,costCostingVO.getAmount());
  84. //// }
  85. //// column+=numResponsibility;
  86. // } else {
  87. // // 不需要合并单元格
  88. // writer.writeCellValue(column, 0, costCostingVOS1.get(0).getResponsibilityName());
  89. // writer.writeCellValue(column, 1, costCostingVOS1.get(0).getAccountName());
  90. // writer.writeCellValue(column, 2, costCostingVOS1.get(0).getAmount());
  91. // column++;
  92. // }
  93. // }
  94. //// for (int i=0; i< responsibilityMap.size();i++){
  95. // // 判断当前当成的责任中心对应的分摊参数的数量
  96. //// List<CostCostingVO> costCostingVOS1 = responsibilityMap.get(responsibilityCode);
  97. //// numResponsibility=costCostingVOS1.size();
  98. //// shareLevelGrid+=numResponsibility;
  99. //// if (numResponsibility>= NumberConstant.TWO){
  100. //// writer.merge(0,0,column,column+numResponsibility-1,costCostingVOS1.get(0).getResponsibilityName(),false);
  101. //// // 设置对应的会计科目或者金额
  102. //// for (int j=0;j<numResponsibility;j++){
  103. //// CostCostingVO costCostingVO = costCostingVOS1.get(j);
  104. //// if (StrUtil.isBlank(costCostingVO.getAlias())){
  105. //// // 别名不存在的时候
  106. //// writer.writeCellValue(j+column,1,costCostingVO.getAccountName());
  107. //// }else {
  108. //// // 为空的话设置别名
  109. //// writer.writeCellValue(j+column,1,costCostingVO.getAlias());
  110. //// }
  111. //// writer.writeCellValue(j+column,2,costCostingVO.getAccountName());
  112. //// }
  113. //// column+=numResponsibility;
  114. //// }else {
  115. //// writer.writeCellValue(column,0,costCostingVOS1.get(0).getResponsibilityName());
  116. //// writer.writeCellValue(column,1,costCostingVOS1.get(0).getAccountName());
  117. //// writer.writeCellValue(column,2,costCostingVOS1.get(0).getMoney());
  118. //// column++;
  119. //// }
  120. //// }
  121. // // 设置单元格合并
  122. // for (int j = 1; j <= shareNumber; j++) {
  123. // writer.merge(0, 1, j, j, "第" + j + "次分摊", false);
  124. // }
  125. // // 目标责任集合
  126. // writer.passCurrentRow();
  127. // // 从第三行开始
  128. // int num = 3;
  129. // Set<String> targetSet = targetResponsibilityMap.keySet();
  130. // for (String target : targetSet) {
  131. // List<CostCostingVO> costCostingVOS1 = targetResponsibilityMap.get(target);
  132. // Map<String, CostCostingVO> linkedHashMap = new LinkedHashMap<>();
  133. // costCostingVOS1.forEach(i -> {
  134. // String s = i.getTargetResponsibilityCode() + i.getShareParamName();
  135. // if (!linkedHashMap.containsKey(s)) {
  136. // linkedHashMap.put(s, i);
  137. // }
  138. // });
  139. // int shareParamSize = linkedHashMap.size();
  140. // if (shareParamSize >= NumberConstant.TWO) {
  141. // // 责任中心
  142. // CostCostingVO costCostingVO = costCostingVOS1.get(0);
  143. //// writer.merge(num, num + shareParamSize - 1, 0, 0, costCostingVO.getTargetResponsibilityName(), false);
  144. // // 设置第几次分摊的值
  145. // for (int k = 0; k < shareNumber; k++) {
  146. // writer.merge(num, num + shareParamSize - 1, k + 1, k + 1, costCostingVO.getTargetShareMoneys().get(k), false);
  147. // }
  148. // // 设置对应的分摊参数值
  149. // Set<String> strings = linkedHashMap.keySet();
  150. // for (String s : strings) {
  151. // CostCostingVO costCostingVO1 = linkedHashMap.get(s);
  152. // writer.writeCellValue(0,num,costCostingVO1.getTargetResponsibilityName());
  153. // writer.writeCellValue(shareNumber + 1, num, costCostingVO1.getShareParamName());
  154. // writer.writeCellValue(shareNumber + 2, num, costCostingVO1.getShareValue());
  155. // writer.writeCellValue(shareNumber + 3, num, costCostingVO1.getShareParamProportion());
  156. // for (int m=shareNumber+4;m<column;m++){
  157. // // x是m y是num
  158. // // 获取当前这一列对应的责任中心 以及会计科目
  159. // // 第一行责任中心
  160. // String responsibilityName = sheet.getRow(0).getCell(m).getStringCellValue();
  161. // // 第二行的会计科目或者
  162. // String accountNameOrAlias = sheet.getRow(1).getCell(m).getStringCellValue();
  163. // // 这一行的目标责任中心
  164. // String otherResponsibilityName = sheet.getRow(num).getCell(0).getStringCellValue();
  165. // // 分摊参数
  166. // String shareName = sheet.getRow(num).getCell(shareNumber + 1).getStringCellValue();
  167. // CostCostingVO costCostingVO2 = allAccMap.get(responsibilityName + accountNameOrAlias + otherResponsibilityName + shareName);
  168. // CostCostingVO costCostingVO3 = allAliMap.get(responsibilityName + accountNameOrAlias + otherResponsibilityName + shareName);
  169. // if (Objects.nonNull(costCostingVO2)){
  170. // writer.writeCellValue(m,num,costCostingVO2.getMoney());
  171. // }else if (Objects.nonNull(costCostingVO3)){
  172. // writer.writeCellValue(m,num,costCostingVO3.getMoney());
  173. // }else {
  174. // throw new CostException(500,"数据异常");
  175. // }
  176. // // 第二行的会计科目/别名
  177. //// System.out.println(responsibilityName+"--"+accountNameOrAlias+"--"+otherResponsibilityName+"--"+shareName);
  178. // }
  179. // num++;
  180. // }
  181. // }
  182. // if (shareParamSize < NumberConstant.TWO) {
  183. // writer.writeCellValue(0, num, costCostingVOS1.get(0).getTargetResponsibilityName());
  184. // for (int k = 0; k < shareNumber; k++) {
  185. // writer.writeCellValue(k + 1, num, costCostingVOS1.get(0).getTargetShareMoneys().get(k));
  186. // }
  187. // writer.writeCellValue(shareNumber + 1, num, costCostingVOS1.get(0).getShareParamName());
  188. // writer.writeCellValue(shareNumber + 2, num, costCostingVOS1.get(0).getShareValue());
  189. // writer.writeCellValue(shareNumber + 3, num, costCostingVOS1.get(0).getShareParamProportion());
  190. // //TODO 金额没有写
  191. // for (int m=shareNumber+4;m<column;m++){
  192. // // x是m y是num
  193. // // 获取当前这一列对应的责任中心 以及会计科目
  194. // // 第一行责任中心
  195. // String responsibilityName = sheet.getRow(0).getCell(m).getStringCellValue();
  196. // // 第二行的会计科目或者
  197. // String accountNameOrAlias = sheet.getRow(1).getCell(m).getStringCellValue();
  198. // // 这一行的目标责任中心
  199. // String otherResponsibilityName = sheet.getRow(num).getCell(0).getStringCellValue();
  200. // // 分摊参数
  201. // String shareName = sheet.getRow(num).getCell(shareNumber + 1).getStringCellValue();
  202. // CostCostingVO costCostingVO2 = allAccMap.get(responsibilityName + accountNameOrAlias + otherResponsibilityName + shareName);
  203. // CostCostingVO costCostingVO3 = allAliMap.get(responsibilityName + accountNameOrAlias + otherResponsibilityName + shareName);
  204. // if (Objects.nonNull(costCostingVO2)){
  205. // writer.writeCellValue(m,num,costCostingVO2.getMoney());
  206. // }else if (Objects.nonNull(costCostingVO3)){
  207. // writer.writeCellValue(m,num,costCostingVO3.getMoney());
  208. // }else {
  209. // throw new CostException(500,"数据异常");
  210. // }
  211. // // 第二行的会计科目/别名
  212. // System.out.println(responsibilityName+"--"+accountNameOrAlias+"--"+otherResponsibilityName+"--"+shareName);
  213. // }
  214. // num++;
  215. // }
  216. // }
  217. //// for (int j=0;j<targetResponsibilityList.size();j++){
  218. //// String targetResponsibilityCode = targetResponsibilityList.get(j);
  219. //// // 需要判断是否需要合并单元格
  220. //// List<CostCostingVO> costingVOList = targetResponsibilityMap.get(targetResponsibilityCode);
  221. //// // 当前责任中心下面有多少个分摊参数
  222. //// int shareParamSize=costingVOList.size();
  223. //// if (shareParamSize>=NumberConstant.TWO){
  224. //// //设置责任中心
  225. //// CostCostingVO costCostingVO = costingVOList.get(0);
  226. //// writer.merge(j+num,j+num+shareParamSize-1,0,0,costCostingVO.getResponsibilityName(),false);
  227. //// // 设置第一次分摊参数值
  228. //// for (int k=0;k<shareNumber;k++){
  229. //// writer.merge(j+num,j+num+shareParamSize-1,k+1,k+1,costCostingVO.getTargetShareMoneys().get(k),false);
  230. ////
  231. //// }
  232. //// // 设置对应的分摊参数值
  233. //// for (int i=0;i<shareParamSize;i++){
  234. //// // 设置分摊参数
  235. //// CostCostingVO costCostingVO1 = costingVOList.get(i);
  236. //// int row=j+num+i;
  237. //// writer.writeCellValue(shareNumber+1,row,costCostingVO1.getShareParamName());
  238. //// writer.writeCellValue(shareNumber+2,row,costCostingVO1.getShareValue());
  239. //// writer.writeCellValue(shareNumber+3,row,costCostingVO1.getShareParamProportion());
  240. //// //TODO 金额没有写
  241. ////// for (int k=shareNumber+4;k<shareLevelGrid+6;k++){
  242. ////// writer.writeCellValue(k,row,"0.1111");
  243. ////// }
  244. //// }
  245. ////
  246. //// }
  247. //// num+=shareParamSize-1;
  248. //// if (shareParamSize<NumberConstant.TWO){
  249. //// writer.writeCellValue(0, j + num, costingVOList.get(0).getResponsibilityName());
  250. //// for (int k=0;k<shareNumber;k++){
  251. //// writer.merge(j+num,j+num+shareParamSize-1,k+1,k+1,costingVOList.get(0).getTargetShareMoneys().get(k),false);
  252. //// }
  253. //// writer.writeCellValue(shareNumber+1,j+num,costingVOList.get(0).getShareParamName());
  254. //// writer.writeCellValue(shareNumber+2,j+num,costingVOList.get(0).getShareValue());
  255. //// writer.writeCellValue(shareNumber+3,j+num,costingVOList.get(0).getShareParamProportion());
  256. //// // TODO 金额暂时不设置
  257. ////// for (int k=shareNumber+4;k<shareLevelGrid+6;k++){
  258. ////// writer.writeCellValue(k,j+num,"0.3456");
  259. ////// }
  260. //// }
  261. ////
  262. //// }
  263. // // TODO 统一设置列宽 处理中文问题
  264. // for (int i = 0; i < 30; i++) {
  265. // // 调整每一列宽度
  266. // sheet.autoSizeColumn((short) i);
  267. // // 解决自动设置列宽中文失效的问题
  268. // sheet.setColumnWidth(i, sheet.getColumnWidth(i) * 13 / 10);
  269. // }
  270. // // todo 合并单元格
  271. // return writer;
  272. // }
  273. //
  274. //// private void setMockData(LinkedList<SplitLevelVO> splitLevelVOLinkedList, LinkedList<TargetSplitLevelVO> targetSplitLevelVOLinkedList) {
  275. //// // 设置分摊层级责任中心数据
  276. //// SplitLevelVO splitLevelVO = new SplitLevelVO();
  277. //// splitLevelVO.setResponsibilityName("责任中心1");
  278. //// splitLevelVO.setResponsibilityCode("zr1");
  279. //// LinkedList<ResponsibilityAccountVO> responsibilityAccountVOS = new LinkedList<>();
  280. ////
  281. //// ResponsibilityAccountVO responsibilityAccountVO = new ResponsibilityAccountVO();
  282. //// responsibilityAccountVO.setAccountingNames("其他费用,资产改良及摊销");
  283. //// responsibilityAccountVO.setAccountingCodes("1825,1824");
  284. //// responsibilityAccountVO.setAccountingIds("57,56");
  285. //// responsibilityAccountVO.setMoney("12.6666");
  286. //// responsibilityAccountVOS.add(responsibilityAccountVO);
  287. ////
  288. //// ResponsibilityAccountVO responsibilityAccountVORequest = new ResponsibilityAccountVO();
  289. //// responsibilityAccountVORequest.setAccountingNames("低值易耗品");
  290. //// responsibilityAccountVORequest.setAccountingCodes("1822");
  291. //// responsibilityAccountVORequest.setAccountingIds("54");
  292. //// responsibilityAccountVORequest.setAlias("设置了别名");
  293. //// responsibilityAccountVORequest.setMoney("12.1111");
  294. //// responsibilityAccountVOS.add(responsibilityAccountVORequest);
  295. //// splitLevelVO.setResponsibilityAccountVOList(responsibilityAccountVOS);
  296. //// splitLevelVOLinkedList.add(splitLevelVO);
  297. ////
  298. //// SplitLevelVO splitLevelVO1 = new SplitLevelVO();
  299. //// splitLevelVO1.setResponsibilityName("责任中心2");
  300. //// splitLevelVO1.setResponsibilityCode("zr2");
  301. //// LinkedList<ResponsibilityAccountVO> responsibilityAccountVOS1 = new LinkedList<>();
  302. //// ResponsibilityAccountVO responsibilityAccountVORequest1 = new ResponsibilityAccountVO();
  303. //// responsibilityAccountVORequest1.setAccountingNames("低值易耗品");
  304. //// responsibilityAccountVORequest1.setAccountingCodes("1822");
  305. //// responsibilityAccountVORequest1.setAccountingIds("54");
  306. //// responsibilityAccountVORequest1.setAlias("设置的别名");
  307. //// responsibilityAccountVORequest1.setMoney("12.1111");
  308. //// responsibilityAccountVOS1.add(responsibilityAccountVORequest1);
  309. //// splitLevelVO1.setResponsibilityAccountVOList(responsibilityAccountVOS1);
  310. //// splitLevelVOLinkedList.add(splitLevelVO1);
  311. ////
  312. //// TargetSplitLevelVO targetSplitLevelVO = new TargetSplitLevelVO();
  313. //// targetSplitLevelVO.setResponsibilityCode("zr1");
  314. //// targetSplitLevelVO.setResponsibilityName("责任中心1");
  315. //// targetSplitLevelVO.setOneShareMoney("100.1111");
  316. //// targetSplitLevelVO.setTwoShareMoney("200.1111");
  317. //// targetSplitLevelVO.setThreeShareMoney("300.1111");
  318. //// LinkedList<TargetShareParamValue> targetShareParamValueLinkedList = new LinkedList<>();
  319. //// TargetShareParamValue targetShareParamValue = new TargetShareParamValue();
  320. //// targetShareParamValue.setShareParamName("员工费");
  321. //// targetShareParamValue.setShareParamCode("A11");
  322. //// targetShareParamValue.setShareParamValue("66");
  323. //// targetShareParamValue.setShareParamProportion("0.1111");
  324. //// targetShareParamValueLinkedList.add(targetShareParamValue);
  325. //// TargetShareParamValue targetShareParamValueRequest = new TargetShareParamValue();
  326. //// targetShareParamValueRequest.setShareParamName("医疗收入");
  327. //// targetShareParamValueRequest.setShareParamCode("A22");
  328. //// targetShareParamValueRequest.setShareParamValue("77");
  329. //// targetShareParamValueRequest.setShareParamProportion("0.4444");
  330. //// targetShareParamValueLinkedList.add(targetShareParamValueRequest);
  331. //// targetSplitLevelVO.setTargetShareParamValueList(targetShareParamValueLinkedList);
  332. //// targetSplitLevelVOLinkedList.add(targetSplitLevelVO);
  333. ////
  334. //// TargetSplitLevelVO targetSplitLevelVORequest = new TargetSplitLevelVO();
  335. //// targetSplitLevelVORequest.setResponsibilityCode("zr2");
  336. //// targetSplitLevelVORequest.setResponsibilityName("责任中心2");
  337. //// targetSplitLevelVORequest.setOneShareMoney("102.1111");
  338. //// targetSplitLevelVORequest.setTwoShareMoney("202.1111");
  339. //// targetSplitLevelVORequest.setThreeShareMoney("300.1111");
  340. //// LinkedList<TargetShareParamValue> targetShareParamValueLinkedList1 = new LinkedList<>();
  341. //// TargetShareParamValue targetShareParamValue1 = new TargetShareParamValue();
  342. //// targetShareParamValue1.setShareParamName("水费");
  343. //// targetShareParamValue1.setShareParamCode("A66");
  344. //// targetShareParamValue1.setShareParamValue("777");
  345. //// targetShareParamValue1.setShareParamProportion("0.777");
  346. //// targetShareParamValueLinkedList1.add(targetShareParamValue1);
  347. //// targetSplitLevelVORequest.setTargetShareParamValueList(targetShareParamValueLinkedList1);
  348. //// targetSplitLevelVOLinkedList.add(targetSplitLevelVORequest);
  349. ////
  350. //// }
  351. //
  352. // private List<CostCostingVO> setMockDa() {
  353. // List<CostCostingVO> costCostingVOS = new LinkedList<>();
  354. // CostCostingVO costCostingVO = new CostCostingVO();
  355. // costCostingVO.setResponsibilityCode("zr1");
  356. // costCostingVO.setResponsibilityName("责任中心1");
  357. // costCostingVO.setAccountCode("A11");
  358. // costCostingVO.setAccountName("人事费用");
  359. // costCostingVO.setAmount("800");
  360. // costCostingVO.setTargetResponsibilityCode("tzr1");
  361. // costCostingVO.setTargetResponsibilityName("目标责任中心1");
  362. // List<String> strings = new ArrayList<>();
  363. // strings.add("1000");
  364. // strings.add("2000");
  365. // costCostingVO.setTargetShareMoneys(strings);
  366. // costCostingVO.setShareParamName("员工数");
  367. // costCostingVO.setShareValue("3");
  368. // costCostingVO.setShareParamProportion("0.3344");
  369. // costCostingVO.setMoney("5.28");
  370. // costCostingVOS.add(costCostingVO);
  371. //
  372. // CostCostingVO costCostingVO1 = new CostCostingVO();
  373. // costCostingVO1.setResponsibilityCode("zr1");
  374. // costCostingVO1.setResponsibilityName("责任中心1");
  375. // // 会计科目可能为空
  376. // costCostingVO1.setAccountCode("A12");
  377. // costCostingVO1.setAccountName("其他费用");
  378. // costCostingVO1.setAmount("600");
  379. // costCostingVO1.setAlias("设置的别名");
  380. // costCostingVO1.setTargetResponsibilityCode("tzr1");
  381. // costCostingVO1.setTargetResponsibilityName("目标责任中心1");
  382. // List<String> strings1 = new ArrayList<>();
  383. // strings1.add("1000");
  384. // strings1.add("2000");
  385. // costCostingVO1.setTargetShareMoneys(strings);
  386. // costCostingVO1.setShareParamName("员工数");
  387. // costCostingVO1.setShareValue("3");
  388. // costCostingVO1.setShareParamProportion("0.3344");
  389. // costCostingVO1.setMoney("0.88");
  390. // costCostingVOS.add(costCostingVO1);
  391. //
  392. // CostCostingVO costCostingVO2 = new CostCostingVO();
  393. // costCostingVO2.setResponsibilityCode("zr1");
  394. // costCostingVO2.setResponsibilityName("责任中心1");
  395. // // 会计科目可能为空
  396. // costCostingVO2.setAccountCode("A11");
  397. // costCostingVO2.setAccountName("人事费用");
  398. // costCostingVO2.setAmount("800");
  399. // costCostingVO2.setTargetResponsibilityCode("tzr1");
  400. // costCostingVO2.setTargetResponsibilityName("目标责任中心1");
  401. // List<String> strings2 = new ArrayList<>();
  402. // strings2.add("1000");
  403. // strings2.add("2000");
  404. // costCostingVO2.setTargetShareMoneys(strings);
  405. // costCostingVO2.setShareParamName("医疗收入");
  406. // costCostingVO2.setShareValue("95");
  407. // costCostingVO2.setShareParamProportion("0.19");
  408. // costCostingVO2.setMoney("0.55");
  409. // costCostingVOS.add(costCostingVO2);
  410. //
  411. // CostCostingVO costCostingVO3 = new CostCostingVO();
  412. // costCostingVO3.setResponsibilityCode("zr1");
  413. // costCostingVO3.setResponsibilityName("责任中心1");
  414. // costCostingVO3.setAccountCode("A12");
  415. // costCostingVO3.setAccountName("其他费用");
  416. // costCostingVO3.setAmount("600");
  417. // costCostingVO3.setAlias("设置的别名");
  418. // costCostingVO3.setTargetResponsibilityCode("tzr1");
  419. // costCostingVO3.setTargetResponsibilityName("目标责任中心1");
  420. // List<String> strings3 = new ArrayList<>();
  421. // strings3.add("1000");
  422. // strings3.add("2000");
  423. // costCostingVO3.setTargetShareMoneys(strings);
  424. // costCostingVO3.setShareParamName("医疗收入");
  425. // costCostingVO3.setShareValue("95");
  426. // costCostingVO3.setShareParamProportion("0.19");
  427. // costCostingVO3.setMoney("0.44");
  428. // costCostingVOS.add(costCostingVO3);
  429. //
  430. // CostCostingVO costCostingVO5 = new CostCostingVO();
  431. // costCostingVO5.setResponsibilityCode("zr2");
  432. // costCostingVO5.setResponsibilityName("责任中心2");
  433. // costCostingVO5.setAccountCode("A13");
  434. // costCostingVO5.setAccountName("责任费用");
  435. // costCostingVO5.setAmount("900");
  436. // costCostingVO5.setTargetResponsibilityCode("tzr2");
  437. // costCostingVO5.setTargetResponsibilityName("目标责任中心2");
  438. // List<String> strings5 = new ArrayList<>();
  439. // strings5.add("1000");
  440. // strings5.add("2000");
  441. // costCostingVO5.setTargetShareMoneys(strings5);
  442. // costCostingVO5.setShareParamName("麻醉科收入");
  443. // costCostingVO5.setShareValue("100");
  444. // costCostingVO5.setShareParamProportion("0.188");
  445. // costCostingVO5.setMoney("1.11");
  446. // costCostingVOS.add(costCostingVO5);
  447. //
  448. // CostCostingVO costCostingVO6 = new CostCostingVO();
  449. // costCostingVO6.setResponsibilityCode("zr1");
  450. // costCostingVO6.setResponsibilityName("责任中心1");
  451. // // 会计科目可能为空
  452. // costCostingVO6.setAccountCode("A11");
  453. // costCostingVO6.setAccountName("人事费用");
  454. // costCostingVO6.setAmount("800");
  455. // costCostingVO6.setTargetResponsibilityCode("tzr2");
  456. // costCostingVO6.setTargetResponsibilityName("目标责任中心2");
  457. // List<String> strings6 = new ArrayList<>();
  458. // strings6.add("1000");
  459. // strings6.add("2000");
  460. // costCostingVO6.setTargetShareMoneys(strings6);
  461. // costCostingVO6.setShareParamName("麻醉科收入");
  462. // costCostingVO6.setShareValue("100");
  463. // costCostingVO6.setShareParamProportion("0.18");
  464. // costCostingVO6.setMoney("0.33");
  465. // costCostingVOS.add(costCostingVO6);
  466. //
  467. // CostCostingVO costCostingVO7 = new CostCostingVO();
  468. // costCostingVO7.setResponsibilityCode("zr1");
  469. // costCostingVO7.setResponsibilityName("责任中心1");
  470. // costCostingVO7.setAccountCode("A12");
  471. // costCostingVO7.setAccountName("其他费用");
  472. // costCostingVO7.setAmount("600");
  473. // costCostingVO7.setAlias("设置的别名");
  474. // costCostingVO7.setTargetResponsibilityCode("tzr2");
  475. // costCostingVO7.setTargetResponsibilityName("目标责任中心2");
  476. // List<String> strings7 = new ArrayList<>();
  477. // strings7.add("1000");
  478. // strings7.add("2000");
  479. // costCostingVO7.setTargetShareMoneys(strings);
  480. // costCostingVO7.setShareParamName("麻醉科收入");
  481. // costCostingVO7.setShareValue("100");
  482. // costCostingVO7.setShareParamProportion("0.18");
  483. // costCostingVO7.setMoney("0.22");
  484. // costCostingVOS.add(costCostingVO7);
  485. //
  486. // CostCostingVO costCostingVO8 = new CostCostingVO();
  487. // costCostingVO8.setResponsibilityCode("zr2");
  488. // costCostingVO8.setResponsibilityName("责任中心2");
  489. // costCostingVO8.setAccountCode("A13");
  490. // costCostingVO8.setAccountName("责任费用");
  491. // costCostingVO8.setAmount("900");
  492. // costCostingVO8.setTargetResponsibilityCode("tzr1");
  493. // costCostingVO8.setTargetResponsibilityName("目标责任中心1");
  494. // List<String> strings8 = new ArrayList<>();
  495. // strings8.add("1000");
  496. // strings8.add("2000");
  497. // costCostingVO8.setTargetShareMoneys(strings8);
  498. // costCostingVO8.setShareParamName("员工数");
  499. // costCostingVO8.setShareValue("3");
  500. // costCostingVO8.setShareParamProportion("0.3344");
  501. // costCostingVO8.setMoney("1.55");
  502. // costCostingVOS.add(costCostingVO8);
  503. //
  504. // CostCostingVO costCostingVO9 = new CostCostingVO();
  505. // costCostingVO9.setResponsibilityCode("zr2");
  506. // costCostingVO9.setResponsibilityName("责任中心2");
  507. // costCostingVO9.setAccountCode("A13");
  508. // costCostingVO9.setAccountName("责任费用");
  509. // costCostingVO9.setAmount("900");
  510. // costCostingVO9.setTargetResponsibilityCode("tzr1");
  511. // costCostingVO9.setTargetResponsibilityName("目标责任中心1");
  512. // List<String> strings9 = new ArrayList<>();
  513. // strings9.add("1000");
  514. // strings9.add("2000");
  515. // costCostingVO9.setTargetShareMoneys(strings9);
  516. // costCostingVO9.setShareParamName("医疗收入");
  517. // costCostingVO9.setShareValue("95");
  518. // costCostingVO9.setShareParamProportion("0.19");
  519. // costCostingVO9.setMoney("2.66");
  520. // costCostingVOS.add(costCostingVO9);
  521. // return costCostingVOS;
  522. // }
  523. // /**
  524. // * 科室
  525. // */
  526. }