|
|
|
@@ -65,22 +65,45 @@ public class WxFinanceController extends BaseController { |
|
|
|
private SysConfigService sysConfigService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 账单类型(非能源) |
|
|
|
* 账单合同类型(可自定义的) |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("billTypes") |
|
|
|
public ResultData billTypes() { |
|
|
|
@GetMapping("contractBillTypes") |
|
|
|
public ResultData contractBillTypes() { |
|
|
|
List<Map> list = new ArrayList<Map>(); |
|
|
|
for (EnumBillAllType t : EnumBillAllType.getCommonOperateTypes()) { |
|
|
|
Map m = new HashMap(); |
|
|
|
m.put("id", t.getCode()); |
|
|
|
m.put("name", t.getMessage()); |
|
|
|
m.put("isFixedPrice", t.isFixedPrice()); |
|
|
|
list.add(m); |
|
|
|
for (EnumBillAllType t : EnumBillAllType.values()) { |
|
|
|
if (t == EnumBillAllType.RENT_DEPOSIT || t == EnumBillAllType.PROPERTY) { |
|
|
|
Map m = new HashMap(); |
|
|
|
m.put("id", t.getCode()); |
|
|
|
m.put("name", t.getMessage()); |
|
|
|
m.put("isFixedPrice", t.isFixedPrice()); |
|
|
|
m.put("isDeposit", t.isDeposit()); |
|
|
|
list.add(m); |
|
|
|
} |
|
|
|
} |
|
|
|
return new ResultData(list); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 账单临时类型(可自定义的) |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("otherBillTypes") |
|
|
|
public ResultData otherBillTypes() { |
|
|
|
List<Map> list = new ArrayList<Map>(); |
|
|
|
for (EnumBillAllType t : EnumBillAllType.values()) { |
|
|
|
if (t == EnumBillAllType.OTHER || t == EnumBillAllType.OTHER_DEPOSIT) { |
|
|
|
Map m = new HashMap(); |
|
|
|
m.put("id", t.getCode()); |
|
|
|
m.put("name", t.getMessage()); |
|
|
|
m.put("isFixedPrice", t.isFixedPrice()); |
|
|
|
m.put("isDeposit", t.isDeposit()); |
|
|
|
list.add(m); |
|
|
|
} |
|
|
|
} |
|
|
|
return new ResultData(list); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("费用科目列表") |
|
|
|
@GetMapping("feesList") |
|
|
|
@ApiImplicitParams({ |
|
|
|
|