parent
0e90d5940e
commit
d1319b2e78
@ -0,0 +1,10 @@
|
||||
target/
|
||||
pom.xml.tag
|
||||
pom.xml.releaseBackup
|
||||
pom.xml.versionsBackup
|
||||
pom.xml.next
|
||||
release.properties
|
||||
dependency-reduced-pom.xml
|
||||
buildNumber.properties
|
||||
.mvn/timing.properties
|
||||
.mvn/wrapper/maven-wrapper.jar
|
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4" />
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="true" />
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="IntelligentCommunity" />
|
||||
<module name="intelligentCommunity" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
<component name="JavacSettings">
|
||||
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
||||
<module name="IntelligentCommunity" options="-parameters" />
|
||||
<module name="intelligentCommunity" options="-parameters" />
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectDictionaryState">
|
||||
<dictionary name="AKU001" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GitToolBoxProjectSettings">
|
||||
<option name="commitMessageIssueKeyValidationOverride">
|
||||
<BoolValueOverride>
|
||||
<option name="enabled" value="true" />
|
||||
</BoolValueOverride>
|
||||
</option>
|
||||
<option name="commitMessageValidationConfigOverride">
|
||||
<CommitMessageValidationOverride>
|
||||
<option name="enabled" value="true" />
|
||||
</CommitMessageValidationOverride>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,9 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="SerializableHasSerialVersionUIDField" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoreAnonymousInnerClasses" value="false" />
|
||||
<option name="superClassString" value="java.awt.Component" />
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,36 @@
|
||||
# IntelligentCommunity
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,105 @@
|
||||
package com.api.alipay.dao;
|
||||
|
||||
import com.api.model.alipay.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public interface AlipayDao {
|
||||
|
||||
/**
|
||||
* 创建商户支付宝订单
|
||||
* @param aliPaymentOrder 支付宝订单
|
||||
*/
|
||||
void createAlipayMentOrder(AliPaymentOrder aliPaymentOrder);
|
||||
|
||||
/**
|
||||
* 根据out_trade_no【商户系统的唯一订单号】查询信息 total_amount【订单金额】
|
||||
* @param outTradeNo out_trade_no【商户系统的唯一订单号】
|
||||
* @return 支付宝订单信息
|
||||
*/
|
||||
AliPaymentOrder selectByOutTradeNo(String outTradeNo);
|
||||
|
||||
/**
|
||||
* 根据主键修改 数据库支付宝信息
|
||||
* @param aliPaymentOrder 支付宝订单
|
||||
* @return 影响行数
|
||||
*/
|
||||
int updateByPrimaryKey(AliPaymentOrder aliPaymentOrder);
|
||||
|
||||
/**
|
||||
* 添加生活缴费-预充值支付订单信息
|
||||
* @param sysAdvancePaymentOrder app 生活缴费-预充值支付订单model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertAdvancePaymentOrder(SysAdvancePaymentOrder sysAdvancePaymentOrder);
|
||||
|
||||
/**
|
||||
* 根据out_trade_no【商户系统的唯一订单号】查询信息 pay_price【订单金额】
|
||||
* @param outTradeNo out_trade_no【商户系统的唯一订单号】
|
||||
* @return app 生活缴费-预充值支付订单model
|
||||
*/
|
||||
SysAdvancePaymentOrder findSysAdvancePaymentOrderByCode(String outTradeNo);
|
||||
|
||||
/**
|
||||
* 根据预充值支付单号更新表的状态
|
||||
* @param sysAdvancePaymentOrder app 生活缴费-预充值支付订单model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int updateAdvancePaymentOrderStatusByCode(SysAdvancePaymentOrder sysAdvancePaymentOrder);
|
||||
|
||||
/**
|
||||
* 根据充值房产主键id查询预付款充值金额
|
||||
* @param estateId 充值房产主键id
|
||||
* @return 预付款充值金额
|
||||
*/
|
||||
BigDecimal findAPPByEstateId(Integer estateId);
|
||||
|
||||
/**
|
||||
* 根据充值房产主键id修改预付款充值金额
|
||||
* @param estateIdAndAPPrice 房产id 和 预付款充值金额
|
||||
* @return 影响行数
|
||||
*/
|
||||
int updateAdvancePaymentPriceByEstateId(EstateIdAndAdvancePaymentPrice estateIdAndAPPrice);
|
||||
|
||||
/**
|
||||
* 添加家政服务-服务费用支付订单信息
|
||||
* @param sysHousekeepingServiceOrder app 家政服务-服务费用支付订单model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertHousekeepingServiceOrder(SysHousekeepingServiceOrder sysHousekeepingServiceOrder);
|
||||
|
||||
/**
|
||||
* 根据out_trade_no【商户系统的唯一订单号】查询信息 pay_price【订单金额】
|
||||
* @param outTradeNo 商户系统的唯一订单号
|
||||
* @return app 家政服务-服务费用支付订单model
|
||||
*/
|
||||
SysHousekeepingServiceOrder findSysHousekeepingServiceOrderByCode(String outTradeNo);
|
||||
|
||||
/**
|
||||
* 根据家政服务-服务费用支付单号更新表的状态
|
||||
* @param sysHousekeepingServiceOrder app 家政服务-服务费用支付订单model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int updateHousekeepingServiceOrderStatusByCode(SysHousekeepingServiceOrder sysHousekeepingServiceOrder);
|
||||
|
||||
/**
|
||||
* 添加抄表记录管理-抄表分摊详情费用支付订单信息
|
||||
* @param shareDetailsOrder 抄表分摊详情订单
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertShareDetailsOrder(SysMeterReadingShareDetailsOrder shareDetailsOrder);
|
||||
|
||||
/**
|
||||
* 根据out_trade_no【商户系统的唯一订单号】查询信息 pay_price【订单金额】
|
||||
* @param outTradeNo 商户系统的唯一订单号
|
||||
* @return app 抄表记录管理-抄表分摊详情费用支付订单model
|
||||
*/
|
||||
SysMeterReadingShareDetailsOrder findShareDetailsOrderOrderByCode(String outTradeNo);
|
||||
|
||||
/**
|
||||
* 根据抄表记录管理-抄表分摊详情费用支付单号更新表的状态
|
||||
* @param shareDetailsOrder app 抄表分摊详情订单model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int updateShareDetailsOrderStatusByCode(SysMeterReadingShareDetailsOrder shareDetailsOrder);
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.api.alipay.service;
|
||||
|
||||
import com.api.model.alipay.*;
|
||||
import com.api.model.app.AppDailyPaymentOrder;
|
||||
import com.api.model.app.AppGoodsAppointment;
|
||||
import com.api.model.app.AppRepairOrder;
|
||||
import com.api.model.jcook.appDto.CreateOrderDTO;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
public interface AlipayService {
|
||||
// String getAliPayOrderStr(OrderTest orderTest);
|
||||
//
|
||||
// String notify(Map<String, String> conversionParams);
|
||||
|
||||
// Map<String,Object> alipay(AppDailyPaymentOrder appDailyPaymentOrder);
|
||||
//
|
||||
// String getAlipayNotifyInfoOfCombinedPayment(HttpServletRequest request);
|
||||
//
|
||||
// Integer checkAlipay(String outTradeNo);
|
||||
|
||||
Map<String, Object> dailyPaymentAlipay(AppDailyPaymentOrder appDailyPaymentOrder);
|
||||
|
||||
String dailyPaymentNotifyInfo(HttpServletRequest request);
|
||||
|
||||
Map<String,Object> dailyPaymentCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> reportRepairAlipay(AppRepairOrder appRepairOrder);
|
||||
|
||||
String reportRepairNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> reportRepairCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> shoppingAlipay(AppGoodsAppointment appGoodsAppointment, Integer type, Integer id);
|
||||
|
||||
String shoppingNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> shoppingCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> leaseAlipay(SysLeaseOrder sysLeaseOrder, Integer id);
|
||||
|
||||
String leaseNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> leaseCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> leaseRentOrderAlipay(SysLeaseRentOrder sysLeaseRentOrder, Integer id);
|
||||
|
||||
String leaseRentOrderNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> leaseRentOrderCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> leaseRentBillOrderAlipay(SysLeaseRentBillOrder sysLeaseRentBillOrder, Integer id);
|
||||
|
||||
String leaseRentBillOrderNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> leaseRentBillOrderCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> advancePaymentOrderAlipay(SysAdvancePaymentOrder sysAdvancePaymentOrder, Integer id);
|
||||
|
||||
String advancePaymentOrderNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> advancePaymentOrderCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> housekeepingServiceOrderAlipay(SysHousekeepingServiceOrder sysHousekeepingServiceOrder, Integer id);
|
||||
|
||||
String housekeepingServiceOrderNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> housekeepingServiceOrderCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> meterReadingShareDetailsOrderAlipay(SysMeterReadingShareDetailsOrder shareDetailsOrder, Integer id);
|
||||
|
||||
String meterReadingShareDetailsOrderNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> meterReadingShareDetailsOrderCheckAlipay(String code);
|
||||
|
||||
Map<String, Object> jcookOrderCreateOrder(CreateOrderDTO createOrderDTO, Integer type, String ip2);
|
||||
|
||||
String jcookOrderNotifyInfo(HttpServletRequest request, String userName, Integer userId);
|
||||
|
||||
Map<String, Object> jcookOrderCheckAlipay(String code);
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,74 @@
|
||||
package com.api.aop;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class RequestData {
|
||||
/**
|
||||
* 请求链接
|
||||
*/
|
||||
private String url;
|
||||
/**
|
||||
* 发送请求的地址ip
|
||||
*/
|
||||
private String addr;
|
||||
/**
|
||||
* 请求方法
|
||||
*/
|
||||
private String classMethod;
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
private Object[] args;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RequestData{" +
|
||||
"url='" + url + '\'' +
|
||||
", addr='" + addr + '\'' +
|
||||
", classMethod='" + classMethod + '\'' +
|
||||
", args=" + Arrays.toString(args) +
|
||||
'}';
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getAddr() {
|
||||
return addr;
|
||||
}
|
||||
|
||||
public void setAddr(String addr) {
|
||||
this.addr = addr;
|
||||
}
|
||||
|
||||
public String getClassMethod() {
|
||||
return classMethod;
|
||||
}
|
||||
|
||||
public void setClassMethod(String classMethod) {
|
||||
this.classMethod = classMethod;
|
||||
}
|
||||
|
||||
public Object[] getArgs() {
|
||||
return args;
|
||||
}
|
||||
|
||||
public void setArgs(Object[] args) {
|
||||
this.args = args;
|
||||
}
|
||||
|
||||
public RequestData() {
|
||||
}
|
||||
|
||||
public RequestData(String url, String addr, String classMethod, Object[] args) {
|
||||
this.url = url;
|
||||
this.addr = addr;
|
||||
this.classMethod = classMethod;
|
||||
this.args = args;
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppActivityService;
|
||||
import com.api.vo.app.AppActivityRegistrationVo;
|
||||
import com.api.vo.app.AppActivityVo;
|
||||
import com.api.vo.app.AppQuestionnaireVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app社区活动
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/activity")
|
||||
public class AppActivityController {
|
||||
@Resource
|
||||
AppActivityService appActivityService;
|
||||
|
||||
/**
|
||||
* 查询所有的活动信息
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @param id 用户id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(int pageNum,int size,Integer id){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppActivityVo> activityVoList =appActivityService.list(id);
|
||||
PageInfo<AppActivityVo> pageInfo = new PageInfo<>(activityVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据社区活动主键id查询社区活动详情
|
||||
* @param activityId 社区活动主键id
|
||||
* @return 社区活动详情
|
||||
*/
|
||||
@GetMapping("/findById")
|
||||
public Map<String,Object> findById(Integer activityId){
|
||||
return appActivityService.findById(activityId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 报名
|
||||
* @param id 用户id
|
||||
* @param activityId 活动id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/signUp")
|
||||
public Map<String,Object> signUp(Integer id,Integer activityId){
|
||||
return appActivityService.signUp(id,activityId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看参与人数
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @param activityId 活动id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/participantsList")
|
||||
public Map<String,Object> participantsList(int pageNum,int size,Integer activityId){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppActivityRegistrationVo> registrationVoList =appActivityService.participantsList(activityId);
|
||||
PageInfo<AppActivityRegistrationVo> pageInfo = new PageInfo<>(registrationVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppAlarmService;
|
||||
import com.api.model.app.AppAlarm;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 一键报警
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/alarm")
|
||||
public class AppAlarmController {
|
||||
@Resource
|
||||
AppAlarmService appAlarmService;
|
||||
|
||||
/**
|
||||
* 添加app报警记录
|
||||
* @param appAlarm app 报警model 信息
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/insertAlarmRecord")
|
||||
public Map<String,Object> insertAlarmRecord(@RequestBody AppAlarm appAlarm, HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
appAlarm.setCreateId(id);
|
||||
appAlarm.setCreateDate(new Date());
|
||||
return appAlarmService.insertAlarmRecord(appAlarm);
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppAnnouncementService;
|
||||
import com.api.vo.app.AppAdviceVo;
|
||||
import com.api.vo.app.AppAnnouncementVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app社区公告
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/announcement")
|
||||
public class AppAnnouncementController {
|
||||
@Resource
|
||||
AppAnnouncementService appAnnouncementService;
|
||||
|
||||
/**
|
||||
* 查询所有的社区公告
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @param type 用户类型
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(int pageNum,int size,int type){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppAnnouncementVo> announcementVos =appAnnouncementService.list(type);
|
||||
PageInfo<AppAnnouncementVo> pageInfo = new PageInfo<>(announcementVos);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据社区公告主键id查询社区公告信息
|
||||
* @param announcementId 社区公告主键id
|
||||
* @param type 用户类型
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findById")
|
||||
public Map<String,Object> findById(Integer announcementId,Integer type){
|
||||
return appAnnouncementService.findById(announcementId,type);
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppArticleOutService;
|
||||
import com.api.model.app.AppArticleOut;
|
||||
import com.api.model.app.UserIdAndArticleOutId;
|
||||
import com.api.model.butlerService.UserArticleOut;
|
||||
import com.api.vo.app.AppArticleOutVo;
|
||||
import com.api.vo.app.AppConvenientTelephoneVo;
|
||||
import com.api.vo.basicArchives.VoIds;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app物品出门
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/articleOut")
|
||||
public class AppArticleOutController {
|
||||
@Resource
|
||||
AppArticleOutService appArticleOutService;
|
||||
|
||||
/**
|
||||
* 查询当前用户所有的物品出户信息
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @param id 用户id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(int pageNum,int size,Integer id){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppArticleOutVo> appArticleOutVos =appArticleOutService.list(id);
|
||||
PageInfo<AppArticleOutVo> pageInfo = new PageInfo<>(appArticleOutVos);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交物品出户信息
|
||||
* @param appArticleOut app物品出门表
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
public Map<String,Object> submit(@RequestBody AppArticleOut appArticleOut, HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
//填入申请人(用户业主表)
|
||||
appArticleOut.setApplicantId(id);
|
||||
return appArticleOutService.submit(appArticleOut);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取搬家公司手机号
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("getMovingCompanyTel")
|
||||
public Map<String,Object> getMovingCompanyTel(){
|
||||
return appArticleOutService.getMovingCompanyTel();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* app批量删除物品出户信息
|
||||
* @param ids 物品出户id数组
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/falseDelete")
|
||||
public Map<String,Object> falseDelete(@RequestBody VoIds ids,HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
return appArticleOutService.falseDelete(ids.getIds(),id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据 用户主键id 和 物品出户主键id 查询二维码信息
|
||||
* @param id 用户主键id
|
||||
* @param articleOutId 物品出户主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/getQRCode")
|
||||
public Map<String,Object> getQRCode(Integer id,Integer articleOutId){
|
||||
UserIdAndArticleOutId userIdAndArticleOutId = new UserIdAndArticleOutId();
|
||||
userIdAndArticleOutId.setUserId(id);
|
||||
userIdAndArticleOutId.setArticleOutId(articleOutId);
|
||||
return appArticleOutService.getQRCode(userIdAndArticleOutId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppCommunityIntroductionService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app社区介绍
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/communityIntroduction")
|
||||
public class AppCommunityIntroductionController {
|
||||
@Resource
|
||||
AppCommunityIntroductionService appCommunityIntroductionService;
|
||||
|
||||
/**
|
||||
* 查询开启的社区介绍模版
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findEnable")
|
||||
public Map<String,Object> findEnable(){
|
||||
return appCommunityIntroductionService.findEnable();
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppConvenientTelephoneService;
|
||||
import com.api.model.butlerService.SearchConveniencePhone;
|
||||
import com.api.vo.app.AppConvenientTelephoneVo;
|
||||
import com.api.vo.basicArchives.VoCpmBuildingUnitEstate;
|
||||
import com.api.vo.butlerService.VoConveniencePhone;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 便民电话
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/convenientTelephone")
|
||||
public class AppConvenientTelephoneController {
|
||||
@Resource
|
||||
AppConvenientTelephoneService appConvenientTelephoneService;
|
||||
|
||||
|
||||
/**
|
||||
* app便民电话显示(包含条件搜索)
|
||||
* @param searchConveniencePhone 搜索条件
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(SearchConveniencePhone searchConveniencePhone){
|
||||
PageHelper.startPage(searchConveniencePhone.getPageNum(),searchConveniencePhone.getSize());
|
||||
List<AppConvenientTelephoneVo> voCpmBuildingUnitEstateList =appConvenientTelephoneService.list(searchConveniencePhone);
|
||||
PageInfo<AppConvenientTelephoneVo> pageInfo = new PageInfo<>(voCpmBuildingUnitEstateList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppElectronicCommerceService;
|
||||
import com.api.model.app.AppElectronicCommerceVo;
|
||||
import com.api.model.app.SearchAppElectronicCommerce;
|
||||
import com.api.model.app.SearchAppNews;
|
||||
import com.api.vo.app.AppNewsVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app电子商务信息
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/electronicCommerce")
|
||||
public class AppElectronicCommerceController {
|
||||
@Resource
|
||||
AppElectronicCommerceService appElectronicCommerceService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询所有的电子商务分类(【全部】是app页面默认显示的值)
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/categoryList")
|
||||
public Map<String,Object> categoryList(){
|
||||
return appElectronicCommerceService.categoryList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据电子商务分类主键id查询电子商务信息
|
||||
* @param searchAppElectronicCommerce app 电子商务 搜素条件
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/electronicCommerceList")
|
||||
public Map<String,Object> electronicCommerceList(SearchAppElectronicCommerce searchAppElectronicCommerce){
|
||||
PageHelper.startPage(searchAppElectronicCommerce.getPageNum(),searchAppElectronicCommerce.getSize());
|
||||
List<AppElectronicCommerceVo> appElectronicCommerceVoList = appElectronicCommerceService.electronicCommerceList(searchAppElectronicCommerce);
|
||||
PageInfo<AppElectronicCommerceVo> pageInfo = new PageInfo<>(appElectronicCommerceVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据电子商务主键id 查询电子商务信息详情
|
||||
* @param electronicCommerceId 电子商务主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findElectronicCommerceById")
|
||||
public Map<String,Object> findElectronicCommerceById(Integer electronicCommerceId){
|
||||
return appElectronicCommerceService.findElectronicCommerceById(electronicCommerceId);
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppEventVotingService;
|
||||
import com.api.model.app.AppVotePersonnel;
|
||||
import com.api.vo.app.AppEventVotingVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 活动投票
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/eventVoting")
|
||||
public class AppEventVotingController {
|
||||
@Resource
|
||||
AppEventVotingService appEventVotingService;
|
||||
|
||||
/**
|
||||
* app查询所有活动投票信息
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @param id 用户主键id
|
||||
* @param type 用户类型
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(int pageNum,int size,Integer id,Integer type){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppEventVotingVo> appEventVotingVos =appEventVotingService.list(id,type);
|
||||
PageInfo<AppEventVotingVo> pageInfo = new PageInfo<>(appEventVotingVos);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 投票详情
|
||||
* @param voteId 投票信息主键id
|
||||
* @param id 用户主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/voteDetail")
|
||||
public Map<String,Object> voteDetail(Integer voteId,Integer id){
|
||||
return appEventVotingService.voteDetail(voteId,id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户投票
|
||||
* @param appVotePersonnel 投票人投票信息
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/vote")
|
||||
public Map<String,Object> vote(@RequestBody AppVotePersonnel appVotePersonnel, HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
appVotePersonnel.setVoterId(id);
|
||||
return appEventVotingService.vote(appVotePersonnel);
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppGeographyService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 地理信息
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/geography")
|
||||
public class AppGeographyController {
|
||||
@Resource
|
||||
AppGeographyService appGeographyService;
|
||||
|
||||
/**
|
||||
* 查询地理信息
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findGeographyInfo")
|
||||
public Map<String,Object> findGeographyInfo(){
|
||||
return appGeographyService.findGeographyInfo();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppHouseTypeDescriptionService;
|
||||
import com.api.model.app.AppHouseTypeDescription;
|
||||
import com.api.vo.app.AppHouseTypeDescriptionVo;
|
||||
import com.api.vo.operationManagement.SysHouseTypeDescriptionListVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 户型说明
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/houseTypeDescription")
|
||||
public class AppHouseTypeDescriptionController {
|
||||
@Resource
|
||||
AppHouseTypeDescriptionService appHouseTypeDescriptionService;
|
||||
|
||||
/**
|
||||
* 查询所有的已发布的户型说明
|
||||
* @param appHouseTypeDescription app户型说明 搜索条件
|
||||
* @return 户型说明
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(AppHouseTypeDescription appHouseTypeDescription){
|
||||
PageHelper.startPage(appHouseTypeDescription.getPageNum(),appHouseTypeDescription.getSize());
|
||||
List<AppHouseTypeDescriptionVo> appHouseTypeDescriptionVoList = appHouseTypeDescriptionService.list();
|
||||
PageInfo<AppHouseTypeDescriptionVo> pageInfo = new PageInfo<>(appHouseTypeDescriptionVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppHousekeepingServiceService;
|
||||
import com.api.model.app.AppHousekeepingService;
|
||||
import com.api.model.app.SearchAppHousekeepingService;
|
||||
import com.api.model.app.UserIdAndHousekeepingServiceId;
|
||||
import com.api.vo.app.AppFacilitiesAppointmentVo;
|
||||
import com.api.vo.app.AppHousekeepingServiceVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 新版家政服务
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/housekeepingService")
|
||||
public class AppHousekeepingServiceController {
|
||||
@Resource
|
||||
AppHousekeepingServiceService appHousekeepingServiceService;
|
||||
|
||||
/**
|
||||
* 确认提交家政
|
||||
* @param appHousekeepingService app 新版家政服务 model
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/submitHousekeeping")
|
||||
public Map<String,Object> submitHousekeeping(@RequestBody AppHousekeepingService appHousekeepingService, HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
//从request获取用户联系方式
|
||||
String name = request.getParameter("name");
|
||||
appHousekeepingService.setProposer(id);
|
||||
appHousekeepingService.setApplyTime(new Date());
|
||||
appHousekeepingService.setCreateId(id);
|
||||
appHousekeepingService.setCreateDate(new Date());
|
||||
return appHousekeepingServiceService.submitHousekeeping(appHousekeepingService,name);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有的家政服务信息(包含条件搜索)
|
||||
* @param searchAppHousekeepingService app 新版家政服务搜素条件
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(SearchAppHousekeepingService searchAppHousekeepingService){
|
||||
PageHelper.startPage(searchAppHousekeepingService.getPageNum(),searchAppHousekeepingService.getSize());
|
||||
List<AppHousekeepingServiceVo> appHousekeepingServiceVoList =appHousekeepingServiceService.list(searchAppHousekeepingService);
|
||||
PageInfo<AppHousekeepingServiceVo> pageInfo = new PageInfo<>(appHousekeepingServiceVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据家政服务主键id查询家政服务服务进程
|
||||
* @param housekeepingServiceId 家政服务主键id
|
||||
* @return 家政服务服务进程 3007663862
|
||||
*/
|
||||
@GetMapping("/findHousekeepingProcessRecord")
|
||||
public Map<String,Object> findHousekeepingProcessRecord(Integer housekeepingServiceId){
|
||||
return appHousekeepingServiceService.findHousekeepingProcessRecord(housekeepingServiceId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 取消服务
|
||||
* @param userIdAndHousekeepingServiceId 家政服务主键id 和 用户主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/cancel")
|
||||
public Map<String,Object> cancel(UserIdAndHousekeepingServiceId userIdAndHousekeepingServiceId){
|
||||
return appHousekeepingServiceService.cancel(userIdAndHousekeepingServiceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 评价
|
||||
* @param appHousekeepingService app 新版家政服务 model
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/evaluation")
|
||||
public Map<String,Object> evaluation(@RequestBody AppHousekeepingService appHousekeepingService, HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
return appHousekeepingServiceService.evaluation(appHousekeepingService,id);
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
|
||||
import com.api.app.service.butler.AppMeterReadingShareDetailsService;
|
||||
import com.api.model.alipay.SysMeterReadingShareDetailsOrder;
|
||||
import com.api.vo.app.AppGambitThemeVo;
|
||||
import com.api.vo.app.AppMeterShareOrderVo;
|
||||
import com.api.vo.app.AppMeterShareVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 抄表分摊详情管理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/meterReadingShareDetails")
|
||||
public class AppMeterReadingShareDetailsController {
|
||||
@Resource
|
||||
AppMeterReadingShareDetailsService appMeterReadingShareDetailsService;
|
||||
|
||||
|
||||
/**
|
||||
* 查询所有未缴纳的公摊缴费
|
||||
* @param estateId 房产主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findAllUnPayList")
|
||||
public Map<String,Object> findAllUnPayList(Integer estateId){
|
||||
return appMeterReadingShareDetailsService.findAllUnPayList(estateId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据手机号查询所有的抄表公摊缴费订单记录
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @param tel 手机号
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findAllMeterShareOrderByTel")
|
||||
public Map<String,Object> findAllMeterShareOrderByTel(int pageNum,int size,String tel){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppMeterShareOrderVo> appMeterShareOrderVos = appMeterReadingShareDetailsService.findAllMeterShareOrderByTel(tel);
|
||||
PageInfo<AppMeterShareOrderVo> pageInfo = new PageInfo<>(appMeterShareOrderVos);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppNewsService;
|
||||
import com.api.model.app.SearchAppNews;
|
||||
import com.api.vo.app.AppActivityVo;
|
||||
import com.api.vo.app.AppNewsVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 公共资讯
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/news")
|
||||
public class AppNewsController {
|
||||
@Resource
|
||||
AppNewsService appNewsService;
|
||||
|
||||
/**
|
||||
* 查询所有的资讯分类(【全部】是app页面默认显示的值)
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/categoryList")
|
||||
public Map<String,Object> categoryList(){
|
||||
return appNewsService.categoryList();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据资讯分类主键id查询资讯信息
|
||||
* @param searchAppNews app 公共资讯 搜素条件
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/newsList")
|
||||
public Map<String,Object> newsList(SearchAppNews searchAppNews){
|
||||
PageHelper.startPage(searchAppNews.getPageNum(),searchAppNews.getSize());
|
||||
List<AppNewsVo> appNewsVoList = appNewsService.newsList(searchAppNews);
|
||||
PageInfo<AppNewsVo> pageInfo = new PageInfo<>(appNewsVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据资讯主键id 查询资讯信息详情
|
||||
* @param newsId 资讯主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findNewsByNewsId")
|
||||
public Map<String,Object> findNewsByNewsId(Integer newsId){
|
||||
return appNewsService.findNewsByNewsId(newsId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询热门资讯
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findHotNews")
|
||||
public Map<String,Object> findHotNews(int pageNum,int size){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppNewsVo> appNewsVoList = appNewsService.findHotNews();
|
||||
PageInfo<AppNewsVo> pageInfo = new PageInfo<>(appNewsVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加浏览量
|
||||
* @param newsId 资讯主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/addViews")
|
||||
public Map<String,Object> addViews(Integer newsId){
|
||||
return appNewsService.addViews(newsId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询资讯轮播图
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/findNewsRotation")
|
||||
public Map<String,Object> findNewsRotation(){
|
||||
return appNewsService.findNewsRotation();
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppOwnersCommitteeService;
|
||||
import com.api.vo.app.AppConvenientTelephoneVo;
|
||||
import com.api.vo.butlerService.VoOwnersCommittee;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 业委会管理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/ownersCommittee")
|
||||
public class AppOwnersCommitteeController {
|
||||
@Resource
|
||||
AppOwnersCommitteeService appOwnersCommitteeService;
|
||||
|
||||
/**
|
||||
* 查询业委会所有人员信息
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
public Map<String,Object> findAll(int pageNum,int size){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<VoOwnersCommittee> voOwnersCommitteeList =appOwnersCommitteeService.findAll();
|
||||
PageInfo<VoOwnersCommittee> pageInfo = new PageInfo<>(voOwnersCommitteeList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询业委会手机号
|
||||
* @return map 业委会手机号
|
||||
*/
|
||||
@GetMapping("/findOwnersTel")
|
||||
public Map<String,Object> findOwnersTel(){
|
||||
return appOwnersCommitteeService.findOwnersTel();
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppQuestionnaireService;
|
||||
import com.api.manage.service.butlerService.SysQuestionnaireService;
|
||||
import com.api.model.app.AppQuestionnaireSubmit;
|
||||
import com.api.vo.app.AppQuestionnaireVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app问卷调查
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/questionnaire")
|
||||
public class AppQuestionnaireController {
|
||||
@Resource
|
||||
AppQuestionnaireService appQuestionnaireService;
|
||||
|
||||
|
||||
/**
|
||||
* app查询所有的问卷调查list
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @param id 用户主键id
|
||||
* @param type 用户类型
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(int pageNum,int size,Integer id,Integer type){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppQuestionnaireVo> appQuestionnaireVos =appQuestionnaireService.list(id,type);
|
||||
PageInfo<AppQuestionnaireVo> pageInfo = new PageInfo<>(appQuestionnaireVos);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据问卷id查询问卷详情
|
||||
* @param questionnaireId 问卷id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("findById")
|
||||
public Map<String,Object> findById(Integer questionnaireId){
|
||||
return appQuestionnaireService.findById(questionnaireId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* app问卷调查提交
|
||||
* @param appQuestionnaireSubmit app问卷调查提交信息
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
public Map<String,Object> submit(@RequestBody AppQuestionnaireSubmit appQuestionnaireSubmit, HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
return appQuestionnaireService.submit(appQuestionnaireSubmit,id);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppServiceBrowsingService;
|
||||
import com.api.vo.app.AppReportRepairVo;
|
||||
import com.api.vo.app.AppServiceBrowsingVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app服务浏览
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/serviceBrowsing")
|
||||
public class AppServiceBrowsingController {
|
||||
@Resource
|
||||
AppServiceBrowsingService appServiceBrowsingService;
|
||||
|
||||
/**
|
||||
* 查询所有的app服务浏览信息
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(int pageNum,int size){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppServiceBrowsingVo> appServiceBrowsingVoList =appServiceBrowsingService.list();
|
||||
PageInfo<AppServiceBrowsingVo> pageInfo = new PageInfo<>(appServiceBrowsingVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.api.app.controller.butler;
|
||||
|
||||
import com.api.app.service.butler.AppSurroundingEnterprisesService;
|
||||
import com.api.vo.app.AppServiceBrowsingVo;
|
||||
import com.api.vo.app.AppSurroundingEnterprisesVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 周边企业信息管理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/surroundingEnterprises")
|
||||
public class AppSurroundingEnterprisesController {
|
||||
@Resource
|
||||
AppSurroundingEnterprisesService appSurroundingEnterprisesService;
|
||||
|
||||
/**
|
||||
* 查询所有的周边企业信息
|
||||
* @param pageNum 当前页数
|
||||
* @param size 每页记录数
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(Integer pageNum,Integer size){
|
||||
PageHelper.startPage(pageNum,size);
|
||||
List<AppSurroundingEnterprisesVo> appSurroundingEnterprisesVoList = appSurroundingEnterprisesService.list();
|
||||
PageInfo<AppSurroundingEnterprisesVo> pageInfo = new PageInfo<>(appSurroundingEnterprisesVoList);
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
map.put("tableList",pageInfo.getList());
|
||||
map.put("rowCount",pageInfo.getTotal());
|
||||
map.put("pageCount",pageInfo.getPages());
|
||||
return map;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.api.app.controller.homePage;
|
||||
|
||||
import com.api.app.service.homePage.AppSearchService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 首页全局搜索
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/search")
|
||||
public class AppSearchController {
|
||||
@Resource
|
||||
AppSearchService appSearchService;
|
||||
|
||||
/**
|
||||
* 全局搜索
|
||||
* @param searchName 模糊查询条件
|
||||
* @param id 用户主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/search")
|
||||
public Map<String,Object> search(String searchName,Integer id){
|
||||
return appSearchService.search(searchName,id);
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.api.app.controller.my;
|
||||
|
||||
import com.api.app.service.login.AppLoginService;
|
||||
import com.api.app.service.my.AppSignOutService;
|
||||
import com.api.vo.app.UserLoginTokenVo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("app/user")
|
||||
public class AppSignOutController {
|
||||
@Resource
|
||||
AppSignOutService appSignOutService;
|
||||
@Resource
|
||||
AppLoginService appLoginService;
|
||||
|
||||
|
||||
/**
|
||||
* 用户退出账户
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/signOut")
|
||||
public Map<String,Object> signOut(HttpServletRequest request){
|
||||
//获取token信息
|
||||
String tokenId = request.getHeader("app-admin-token");
|
||||
//根据token Id查询登录信息 (user_login_token)
|
||||
UserLoginTokenVo userLoginTokenVo = appLoginService.findULTByTokenId(Long.valueOf(tokenId));
|
||||
return appSignOutService.signOut(userLoginTokenVo.getId());
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.api.app.controller.my;
|
||||
|
||||
|
||||
import com.api.app.service.my.MyCarService;
|
||||
import com.api.vo.my.MyCarVo;
|
||||
import com.api.vo.my.MyParkingSpaceVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 我的车辆
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/myCar")
|
||||
public class MyCarController {
|
||||
@Resource
|
||||
MyCarService myCarService;
|
||||
|
||||
/**
|
||||
* 查询所有的车辆
|
||||
* @param estateId 房产id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(Integer estateId){
|
||||
return myCarService.list(estateId);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.api.app.controller.my;
|
||||
|
||||
import com.api.manage.service.butlerService.SysDoorQRCodeService;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* app 门禁二维码
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/doorQRCode")
|
||||
public class MyDoorQRCodeController {
|
||||
@Resource
|
||||
SysDoorQRCodeService sysDoorQRCodeService;
|
||||
/**
|
||||
* 获取设备二维码
|
||||
* @param startTime 生效时间戳
|
||||
* @param endTime 失效时间戳
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/getQrCode")
|
||||
public Map<String,Object> getQrCode(Date startTime, Date endTime,String tel){
|
||||
return sysDoorQRCodeService.getQrCode(startTime,endTime, tel);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取访客设备二维码
|
||||
* @param startTime 生效时间戳
|
||||
* @param endTime 失效时间戳
|
||||
* @param visitorsTel 访客手机号
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/getVisitorsQrCode")
|
||||
public Map<String,Object> getVisitorsQrCode(Date startTime, Date endTime,String visitorsTel){
|
||||
return sysDoorQRCodeService.getVisitorsQrCode(startTime,endTime, visitorsTel);
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.api.app.controller.my;
|
||||
|
||||
import com.api.app.service.my.MyParkingSpaceService;
|
||||
import com.api.model.my.MyParkingSpace;
|
||||
import com.api.vo.basicArchives.VoIds;
|
||||
import com.api.vo.my.MyParkingSpaceVo;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 我的车位
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/myParkingSpace")
|
||||
public class MyParkingSpaceController {
|
||||
@Resource
|
||||
MyParkingSpaceService myParkingSpaceService;
|
||||
|
||||
/**
|
||||
* 查询所有的车位
|
||||
* @param id 用户主键id
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public Map<String,Object> list(Integer id){
|
||||
return myParkingSpaceService.list(id);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,159 @@
|
||||
package com.api.app.controller.personalData;
|
||||
|
||||
import com.api.app.service.personalData.PersonalDataService;
|
||||
import com.api.manage.service.basicArchives.CpmBuildingService;
|
||||
import com.api.manage.service.basicArchives.CpmBuildingUnitEstateService;
|
||||
import com.api.manage.service.basicArchives.CpmBuildingUnitService;
|
||||
import com.api.model.app.AppUserInfo;
|
||||
import com.api.model.app.PersonalData;
|
||||
import com.api.model.app.UpdateHeadPortrait;
|
||||
import com.api.model.app.UpdateTel;
|
||||
import com.api.model.basicArchives.UserResident;
|
||||
import com.api.vo.app.PersonalDataVo;
|
||||
import com.api.vo.basicArchives.VoFindAll;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 个人资料
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/user/personalData")
|
||||
public class PersonalDataController {
|
||||
@Resource
|
||||
PersonalDataService personalDataService;
|
||||
|
||||
|
||||
/**
|
||||
* 获取用户信息
|
||||
* @param appUserInfo app用户信息
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/getUserDetail")
|
||||
public Map<String, Object> getUserDetail(AppUserInfo appUserInfo){
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
//根据用户id查询房产信息
|
||||
List<String> stringList = personalDataService.findEstateNameByResidentId(appUserInfo.getId());
|
||||
appUserInfo.setEstateNames(stringList);
|
||||
map.put("status", true);
|
||||
map.put("message", "请求成功");
|
||||
map.put("data", appUserInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询个人资料信息
|
||||
* @param userResident 住户信息表
|
||||
* @return map
|
||||
*/
|
||||
@GetMapping("/findPersonalData")
|
||||
public Map<String,Object> findPersonalData(UserResident userResident){
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
PersonalDataVo byId = personalDataService.findById(userResident.getId());
|
||||
map.put("status", true);
|
||||
map.put("message", "请求成功");
|
||||
map.put("data", byId);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改用户昵称
|
||||
* @param userResident 住户信息表
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/updateNickName")
|
||||
public Map<String,Object> updateNickName(@RequestBody UserResident userResident,HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
//填入用户id
|
||||
userResident.setId(id);
|
||||
return personalDataService.updateNickName(userResident);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户头像
|
||||
* @param updateHeadPortrait 修改头像信息资源
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/updateHeadPortrait")
|
||||
public Map<String,Object> updateHeadPortrait(@RequestBody UpdateHeadPortrait updateHeadPortrait,HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
return personalDataService.updateHeadPortrait(id,updateHeadPortrait.getFileUrls());
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送手机号修改验证码
|
||||
* @param updateTel 修改手机号信息
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("sendTelUpdateCode")
|
||||
public Map<String,Object> sendTelUpdateCode(@RequestBody UpdateTel updateTel,HttpServletRequest request){
|
||||
//从request获取用户tel
|
||||
String oldTel = request.getParameter("tel");
|
||||
updateTel.setOldTel(oldTel);
|
||||
return personalDataService.sendTelUpdateCode(updateTel);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据新手机号发送修改验证码
|
||||
* @param updateTel 修改手机号信息
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/updateTel")
|
||||
public Map<String,Object> updateTel(@RequestBody UpdateTel updateTel, HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
//从request获取用户tel
|
||||
String oldTel = request.getParameter("tel");
|
||||
//填入用户id
|
||||
updateTel.setId(id);
|
||||
return personalDataService.updateTel(updateTel,oldTel);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改用户性别
|
||||
* @param personalData 个人资料信息
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/updateSex")
|
||||
public Map<String,Object> updateSex(@RequestBody PersonalData personalData,HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
//填入用户id
|
||||
personalData.setId(id);
|
||||
return personalDataService.updateSex(personalData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户出生日期
|
||||
* @param personalData 个人资料信息
|
||||
* @param request app-admin-token获取的request用户信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/updateBirthday")
|
||||
public Map<String,Object> updateBirthday(@RequestBody PersonalData personalData,HttpServletRequest request){
|
||||
//从request获取用户id
|
||||
Integer id = Integer.valueOf(request.getParameter("id"));
|
||||
//填入用户id
|
||||
personalData.setId(id);
|
||||
return personalDataService.updateBirthday(personalData);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.api.app.controller.share_h5;
|
||||
|
||||
import com.api.app.service.butler.DecorationApplicationService;
|
||||
import com.api.model.app.AppUserDecorationSubmit;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
/**
|
||||
* app装修h5分享接口
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("app/share/decorationApplication")
|
||||
public class ShareDecorationController {
|
||||
@Resource
|
||||
DecorationApplicationService decorationApplicationService;
|
||||
/**
|
||||
* 添加装修人员信息(H5页面接口提交)
|
||||
* @param decorationSubmit 装修公司提交信息
|
||||
* @return map
|
||||
*/
|
||||
@PostMapping("/insertDecorationPerson")
|
||||
public Map<String,Object> insertDecorationPerson(@RequestBody AppUserDecorationSubmit decorationSubmit){
|
||||
return decorationApplicationService.insertDecorationPerson(decorationSubmit);
|
||||
}
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.AppActivityRegistration;
|
||||
import com.api.vo.app.AppActivityDetailVo;
|
||||
import com.api.vo.app.AppActivityRegistrationVo;
|
||||
import com.api.vo.app.AppActivityVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppActivityDao {
|
||||
/**
|
||||
* 查询所有的活动信息
|
||||
* @return 活动信息集合
|
||||
*/
|
||||
List<AppActivityVo> list();
|
||||
|
||||
/**
|
||||
* 查询用户是否有报名信息
|
||||
* @param appActivityRegistration app社区活动报名人信息
|
||||
* @return app社区活动报名人信息集合
|
||||
*/
|
||||
List<AppActivityRegistration> findRegistrationByIds(AppActivityRegistration appActivityRegistration);
|
||||
|
||||
/**
|
||||
* 根据社区活动主键id查询相关报名人信息
|
||||
* @param activityId 社区活动主键id
|
||||
* @return 相关报名人信息id数组
|
||||
*/
|
||||
List<Integer> findResidentIdById(Integer activityId);
|
||||
|
||||
/**
|
||||
* 根据社区活动主键id查询社区活动详情
|
||||
* @param activityId 社区活动主键id
|
||||
* @return 社区活动详情
|
||||
*/
|
||||
AppActivityDetailVo findById(Integer activityId);
|
||||
|
||||
/**
|
||||
* 查询报名人数
|
||||
* @param activityId 社区活动主键id
|
||||
* @return 报名人数
|
||||
*/
|
||||
int countRegistrationNum(Integer activityId);
|
||||
|
||||
/**
|
||||
* 添加活动报名管理信息
|
||||
* @param appActivityRegistration app社区活动报名人信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertRegistration(AppActivityRegistration appActivityRegistration);
|
||||
|
||||
/**
|
||||
* 查看参与人数
|
||||
* @param activityId 活动id
|
||||
* @return 参与人数集合
|
||||
*/
|
||||
List<AppActivityRegistrationVo> participantsList(Integer activityId);
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.AppAlarm;
|
||||
|
||||
public interface AppAlarmDao {
|
||||
/**
|
||||
* 添加app报警记录
|
||||
* @param appAlarm app 报警model 信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertAlarmRecord(AppAlarm appAlarm);
|
||||
|
||||
/**
|
||||
* 根据房产主键id查询房产名称
|
||||
* @param estateId 房产主键id
|
||||
* @return 房产名称
|
||||
*/
|
||||
String findRoomNameByEstateId(Integer estateId);
|
||||
|
||||
/**
|
||||
* 根据住户主键id查询住户名称
|
||||
* @param createId 住户主键id
|
||||
* @return 住户名称
|
||||
*/
|
||||
String findNameByResidentId(Integer createId);
|
||||
|
||||
/**
|
||||
* 根据住户主键id查询住户手机号
|
||||
* @param createId 住户主键id
|
||||
* @return 住户名称
|
||||
*/
|
||||
String findTelByResidentId(Integer createId);
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.TypeAndAnnouncementId;
|
||||
import com.api.model.app.TypeAndNowDate;
|
||||
import com.api.vo.app.AppAnnouncementDetailVo;
|
||||
import com.api.vo.app.AppAnnouncementVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppAnnouncementDao {
|
||||
/**
|
||||
* 查询所有的社区公告
|
||||
* @param typeAndNowDate 用户类型 和 当前时间
|
||||
* @return 社区公告Vo list 回显
|
||||
*/
|
||||
List<AppAnnouncementVo> list(TypeAndNowDate typeAndNowDate);
|
||||
|
||||
/**
|
||||
* 根据社区公告主键id查询社区公告信息
|
||||
* @param typeAndAnnouncementId 用户类型 和 社区公告主键id
|
||||
* @return 社区公告Vo list 回显
|
||||
*/
|
||||
AppAnnouncementDetailVo findById(TypeAndAnnouncementId typeAndAnnouncementId);
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.AppArticleBorrow;
|
||||
import com.api.model.app.UserIdAndArticleBorrowId;
|
||||
import com.api.vo.app.AppArticleBorrowDetailVo;
|
||||
import com.api.vo.app.AppArticleBorrowReturnVo;
|
||||
import com.api.vo.app.AppArticleBorrowVo;
|
||||
import com.api.vo.app.AppMyArticleBorrowVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppArticleBorrowDao {
|
||||
/**
|
||||
* 查询所有可借物品信息
|
||||
* @return app物品所有可借信息集合(当前 quantity 为 正常物品数量)
|
||||
*/
|
||||
List<AppArticleBorrowVo> list();
|
||||
|
||||
/**
|
||||
* 根据物品主键id查询借出数量
|
||||
* @param id 物品主键id
|
||||
* @return 借出数量
|
||||
*/
|
||||
int findBorrowNumById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询该用户的所有物品借还信息
|
||||
* @param id 用户id
|
||||
* @return 我的借还物品信息集合
|
||||
*/
|
||||
List<AppMyArticleBorrowVo> myList(Integer id);
|
||||
|
||||
/**
|
||||
* 报损
|
||||
* @param userIdAndArticleBorrowId 用户id 和 物品借还主键id
|
||||
* @return 影响行数
|
||||
*/
|
||||
int frmLoss(UserIdAndArticleBorrowId userIdAndArticleBorrowId);
|
||||
|
||||
/**
|
||||
* 根据物品总类主键id查询未借出的物品明细
|
||||
* @param articleId 物品总类主键id
|
||||
* @return 未借出的物品明细
|
||||
*/
|
||||
List<AppArticleBorrowDetailVo> findDetailById(Integer articleId);
|
||||
|
||||
/**
|
||||
* 借取物品(添加物品借还信息)
|
||||
* @param appArticleBorrow 物品借还信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int borrow(AppArticleBorrow appArticleBorrow);
|
||||
|
||||
/**
|
||||
* 查询出借中或待检查的物品明细主键id数组
|
||||
* @return 正在出借中或待检查的物品明细主键id数组
|
||||
*/
|
||||
List<Integer> findBorrowOrCheckArticleId();
|
||||
|
||||
/**
|
||||
* 根据用户主键id查询需要归还物品信息
|
||||
* @param id 用户主键id
|
||||
* @return 需要归还物品信息
|
||||
*/
|
||||
List<AppArticleBorrowReturnVo> findBorrowByUserId(Integer id);
|
||||
|
||||
/**
|
||||
* 查询该用户出借中的物品明细主键id数组
|
||||
* @param userId 用户主键id
|
||||
* @return 物品借还主键id数组
|
||||
*/
|
||||
List<Integer> findBorrowArticleIdByUserId(Integer userId);
|
||||
|
||||
/**
|
||||
* 根据借还主键id修改物品借还归还状态信息
|
||||
* @param appArticleBorrow 物品借还信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int articleReturn(AppArticleBorrow appArticleBorrow);
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.AppArticleOut;
|
||||
import com.api.model.app.UserIdAndArticleOutId;
|
||||
import com.api.vo.app.AppArticleOutQRCodeVo;
|
||||
import com.api.vo.app.AppArticleOutVo;
|
||||
import com.api.vo.app.AppMovingCompanyVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppArticleOutDao {
|
||||
/**
|
||||
* 提交物品出户信息
|
||||
* @param appArticleOut app物品出户信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int submit(AppArticleOut appArticleOut);
|
||||
|
||||
/**
|
||||
* 获取搬家公司手机号
|
||||
* @return 搬家公司信息
|
||||
*/
|
||||
List<AppMovingCompanyVo> getMovingCompanyTel();
|
||||
|
||||
/**
|
||||
* 查询当前用户所有的物品出户信息
|
||||
* @param id 当前用户主键id
|
||||
* @return 物品出户信息集合
|
||||
*/
|
||||
List<AppArticleOutVo> list(Integer id);
|
||||
|
||||
/**
|
||||
* 假删除物品出户信息
|
||||
* @param userIdAndArticleOutId 用户主键id 和 物品出户主键id
|
||||
* @return 影响行数
|
||||
*/
|
||||
int falseDelete(UserIdAndArticleOutId userIdAndArticleOutId);
|
||||
|
||||
/**
|
||||
* 根据 用户主键id 和 物品出户主键id 查询二维码信息
|
||||
* @param userIdAndArticleOutId 用户主键id 和 物品出户主键id
|
||||
* @return map
|
||||
*/
|
||||
AppArticleOutQRCodeVo findQRCodeByIds(UserIdAndArticleOutId userIdAndArticleOutId);
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.vo.app.AppCommunityIntroductionVo;
|
||||
|
||||
public interface AppCommunityIntroductionDao {
|
||||
/***
|
||||
* 查询开启的社区介绍模版
|
||||
* @return 社区介绍模版
|
||||
*/
|
||||
AppCommunityIntroductionVo findEnable();
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.butlerService.SearchConveniencePhone;
|
||||
import com.api.vo.app.AppConvenientTelephoneVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppConvenientTelephoneDao {
|
||||
List<AppConvenientTelephoneVo> list(SearchConveniencePhone searchConveniencePhone);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.AppElectronicCommerceVo;
|
||||
import com.api.model.app.AppElectronicCommerceVoFBI;
|
||||
import com.api.model.app.SearchAppElectronicCommerce;
|
||||
import com.api.vo.app.IdAndName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppElectronicCommerceDao {
|
||||
/**
|
||||
* 查询所有的电子商务分类(【全部】是默认显示的值)
|
||||
* @return 电子商务分类
|
||||
*/
|
||||
List<IdAndName> findAllCategory();
|
||||
|
||||
/**
|
||||
* 根据电子商务分类主键id查询电子商务信息
|
||||
* @param searchAppElectronicCommerce app电子商务搜索条件
|
||||
* @return 电子商务信息
|
||||
*/
|
||||
List<AppElectronicCommerceVo> electronicCommerceList(SearchAppElectronicCommerce searchAppElectronicCommerce);
|
||||
|
||||
/**
|
||||
* 根据电子商务主键id 查询电子商务信息详情
|
||||
* @param electronicCommerceId 电子商务主键id
|
||||
* @return 电子商务信息详情
|
||||
*/
|
||||
AppElectronicCommerceVoFBI findElectronicCommerceById(Integer electronicCommerceId);
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.vo.app.AppHouseTypeDescriptionVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppHouseTypeDescriptionDao {
|
||||
List<AppHouseTypeDescriptionVo> list();
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.AppHousekeepingService;
|
||||
import com.api.model.app.AppHousekeepingServiceProcessRecord;
|
||||
import com.api.model.app.SearchAppHousekeepingService;
|
||||
import com.api.model.app.UserIdAndHousekeepingServiceId;
|
||||
import com.api.model.businessManagement.SysUser;
|
||||
import com.api.vo.app.AppHousekeepingServiceVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppHousekeepingServiceDao {
|
||||
/**
|
||||
* 添加家政服务信息
|
||||
* @param appHousekeepingService app 新版家政服务 model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int submitHousekeeping(AppHousekeepingService appHousekeepingService);
|
||||
|
||||
/**
|
||||
* 添加家政服务处理进程记录
|
||||
* @param processRecord app 新版家政服务处理进程记录
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertHousekeepingProcessRecord(AppHousekeepingServiceProcessRecord processRecord);
|
||||
|
||||
/**
|
||||
* 查询所有的家政服务信息(包含条件搜索)
|
||||
* @param searchAppHousekeepingService app 新版家政服务搜素条件
|
||||
* @return 家政服务信息集合
|
||||
*/
|
||||
List<AppHousekeepingServiceVo> list(SearchAppHousekeepingService searchAppHousekeepingService);
|
||||
|
||||
/**
|
||||
* 根据家政服务主键id查询家政服务服务进程
|
||||
* @param housekeepingServiceId 家政服务主键id
|
||||
* @return 家政服务服务进程集合
|
||||
*/
|
||||
List<AppHousekeepingServiceProcessRecord> findHousekeepingProcessRecord(Integer housekeepingServiceId);
|
||||
|
||||
/**
|
||||
* 取消服务
|
||||
* @param userIdAndHousekeepingServiceId 家政服务主键id 和 用户主键id
|
||||
* @return 影响行数
|
||||
*/
|
||||
int cancel(UserIdAndHousekeepingServiceId userIdAndHousekeepingServiceId);
|
||||
|
||||
/**
|
||||
* 根据家政服务主键id查询家政服务信息
|
||||
* @param housekeepingServiceId 家政服务主键id
|
||||
* @return 家政服务信息
|
||||
*/
|
||||
AppHousekeepingService findHousekeepingServiceById(Integer housekeepingServiceId);
|
||||
|
||||
/**
|
||||
* 评价
|
||||
* @param appHousekeepingService app 新版家政服务 model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int evaluation(AppHousekeepingService appHousekeepingService);
|
||||
|
||||
/**
|
||||
* 根据被指派人主键id查询被指派人信息
|
||||
* @param handler 被指派人主键id
|
||||
* @return 被指派人信息
|
||||
*/
|
||||
SysUser findUserInfoById(Integer handler);
|
||||
|
||||
/**
|
||||
* 接单
|
||||
* @param appHousekeepingService app 新版家政服务 model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int orderReceiving(AppHousekeepingService appHousekeepingService);
|
||||
|
||||
/**
|
||||
* 提交报告
|
||||
* @param appHousekeepingService app 新版家政服务 model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int submitReport(AppHousekeepingService appHousekeepingService);
|
||||
|
||||
/**
|
||||
* 根据新版家政服务主键id修改状态
|
||||
* @param appHousekeepingService app 新版家政服务 model
|
||||
* @return 影响行数
|
||||
*/
|
||||
int updateStatusById(AppHousekeepingService appHousekeepingService);
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.alipay.SysMeterReadingShareDetailsOrder;
|
||||
import com.api.model.alipay.SysMeterReadingShareDetailsOrderList;
|
||||
import com.api.model.app.EstateIdAndShareBillId;
|
||||
import com.api.model.chargeManagement.SysMeterReadingShareBillDetails;
|
||||
import com.api.vo.app.AppMeterShareDetailsVo;
|
||||
import com.api.vo.app.AppMeterShareOrderVo;
|
||||
import com.api.vo.app.AppMeterShareVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppMeterReadingShareDetailsDao {
|
||||
/**
|
||||
* 根据公摊账单详情主键id查询公摊账单详情
|
||||
* @param shareDetailsId 公摊账单详情主键id
|
||||
* @return 公摊账单详情
|
||||
*/
|
||||
SysMeterReadingShareBillDetails findShareDetailsById(Integer shareDetailsId);
|
||||
|
||||
/**
|
||||
* 根据主键id修改状态
|
||||
* @param shareBillDetails 抄表公摊账单详情
|
||||
* @return 影响函数
|
||||
*/
|
||||
int updateStatusById(SysMeterReadingShareBillDetails shareBillDetails);
|
||||
|
||||
/**
|
||||
* 查询所有未缴纳的公摊缴费
|
||||
* @param estateId 房产主键id
|
||||
* @return 所有未缴纳的公摊缴费
|
||||
*/
|
||||
List<AppMeterShareVo> findAllUnPayList(Integer estateId);
|
||||
|
||||
/**
|
||||
* 根据公摊账单详情主键id查询未缴纳的公摊账单详情
|
||||
* @param estateIdAndShareBillId 房产主键id和抄表公摊账单主键id
|
||||
* @return 未缴纳的公摊账单详情
|
||||
*/
|
||||
List<AppMeterShareDetailsVo> findUnPayShareDetailsById(EstateIdAndShareBillId estateIdAndShareBillId);
|
||||
|
||||
/**
|
||||
* 根据手机号查询所有的抄表公摊缴费订单
|
||||
* @param tel 手机号
|
||||
* @return 所有的抄表公摊缴费订单
|
||||
*/
|
||||
List<AppMeterShareOrderVo> findAllMeterShareOrderByTel(String tel);
|
||||
|
||||
/**
|
||||
* 添加抄表分摊订单清单
|
||||
* @param orderList 抄表分摊详情订单清单信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertOrderList(SysMeterReadingShareDetailsOrderList orderList);
|
||||
|
||||
/**
|
||||
* 根据抄表分摊订单支付单号查询抄表分摊详情信息
|
||||
* @param outTradeNo 订单支付单号
|
||||
* @return 抄表分摊详情信息
|
||||
*/
|
||||
List<SysMeterReadingShareBillDetails> findShareBillDetailsByOrderCode(String outTradeNo);
|
||||
|
||||
/**
|
||||
* 根据抄表分摊详情主键id查询抄表分摊详情
|
||||
* @param shareDetailsOrder 抄表分摊详情订单
|
||||
* @return 询抄表分摊详情
|
||||
*/
|
||||
List<SysMeterReadingShareBillDetails> findShareDetailsByIds(SysMeterReadingShareDetailsOrder shareDetailsOrder);
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.SearchAppNews;
|
||||
import com.api.vo.app.AppNewsRotationVo;
|
||||
import com.api.vo.app.AppNewsVo;
|
||||
import com.api.vo.app.AppNewsVoFBI;
|
||||
import com.api.vo.app.IdAndName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppNewsDao {
|
||||
/**
|
||||
* 查询所有的资讯分类(【全部】是app页面默认显示的值)
|
||||
* @return 资讯信息
|
||||
*/
|
||||
List<IdAndName> findAllCategory();
|
||||
|
||||
/**
|
||||
* 根据资讯分类主键id查询资讯信息
|
||||
* @param searchAppNews app 公共资讯 搜素条件
|
||||
* @return 资讯信息
|
||||
*/
|
||||
List<AppNewsVo> newsList(SearchAppNews searchAppNews);
|
||||
|
||||
/**
|
||||
* 根据资讯主键id 查询资讯信息详情
|
||||
* @param newsId 资讯主键id
|
||||
* @return 资讯信息详情
|
||||
*/
|
||||
AppNewsVoFBI findNewsByNewsId(Integer newsId);
|
||||
|
||||
/**
|
||||
* 查询资讯轮播图信息
|
||||
* @return
|
||||
*/
|
||||
List<AppNewsRotationVo> findNewsRotation();
|
||||
|
||||
/**
|
||||
* 查询热门资讯
|
||||
* @return 热门资讯
|
||||
*/
|
||||
List<AppNewsVo> findHotNews();
|
||||
|
||||
/**
|
||||
* 增加浏览量
|
||||
* @param newsId 资讯主键id
|
||||
* @return 影响行数
|
||||
*/
|
||||
int addViews(Integer newsId);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.butlerService.SysSetting;
|
||||
import com.api.vo.butlerService.VoOwnersCommittee;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppOwnersCommitteeDao {
|
||||
List<VoOwnersCommittee> findAll();
|
||||
|
||||
String findOwnersTel(String owners);
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.model.app.AppQuestionJudgmentAnswer;
|
||||
import com.api.model.app.AppQuestionnaireChoiceAnswer;
|
||||
import com.api.model.app.AppQuestionnaireShortAnswer;
|
||||
import com.api.model.butlerService.SysQuestionnaireTopic;
|
||||
import com.api.vo.app.AppQuestionnaireChoiceVo;
|
||||
import com.api.vo.app.AppQuestionnaireDetailVo;
|
||||
import com.api.model.app.AppQuestionnairePersonnel;
|
||||
import com.api.vo.app.AppQuestionnaireTopicVo;
|
||||
import com.api.vo.app.AppQuestionnaireVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppQuestionnaireDao {
|
||||
/**
|
||||
* app查询所有的问卷调查list
|
||||
* @param type 用户类型
|
||||
* @return 所有的问卷调查list
|
||||
*/
|
||||
List<AppQuestionnaireVo> list(Integer type);
|
||||
|
||||
/**
|
||||
* 查询是否答过卷
|
||||
* @param personnel 问卷人表信息条件
|
||||
* @return 问卷人表信息
|
||||
*/
|
||||
List<AppQuestionnairePersonnel> findPersonnelByIds(AppQuestionnairePersonnel personnel);
|
||||
|
||||
/**
|
||||
* 根据问卷信息id查询相关答卷人信息
|
||||
* @param questionnaireId 问卷信息id
|
||||
* @return 相关答卷人信息
|
||||
*/
|
||||
List<Integer> findAnswerIdById(Integer questionnaireId);
|
||||
|
||||
/**
|
||||
* 根据问卷调查主键ID查询问卷调查信息
|
||||
* @param questionnaireId 问卷调查主键ID
|
||||
* @return 问卷调查信息
|
||||
*/
|
||||
AppQuestionnaireDetailVo findQuestionnaireById(Integer questionnaireId);
|
||||
|
||||
/**
|
||||
* 根据问卷调查主键ID查询题目信息集合
|
||||
* @param questionnaireId 问卷调查主键ID
|
||||
* @return 题目信息集合
|
||||
*/
|
||||
List<AppQuestionnaireTopicVo> findTopicById(Integer questionnaireId);
|
||||
|
||||
/**
|
||||
* 根据题目主键id查询选择项信息集合
|
||||
* @param topicId 题目主键id
|
||||
* @return 选择项信息集合
|
||||
*/
|
||||
List<AppQuestionnaireChoiceVo> findChoiceByTopicId(Integer topicId);
|
||||
|
||||
/**
|
||||
* 根据问卷调查主键id对答题人员数量进行累加
|
||||
* @param id 问卷调查主键id
|
||||
* @return 影响行数
|
||||
*/
|
||||
int accumulationAnswerNum(Integer id);
|
||||
|
||||
/**
|
||||
* 根据题目id查询题目信息
|
||||
* @param topicId 题目id
|
||||
* @return 题目信息
|
||||
*/
|
||||
AppQuestionnaireTopicVo findTopicByTopicId(Integer topicId);
|
||||
|
||||
/**
|
||||
* 添加选择答案信息
|
||||
* @param questionnaireChoiceAnswer 选择答案信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertChoiceAnswer(AppQuestionnaireChoiceAnswer questionnaireChoiceAnswer);
|
||||
|
||||
/**
|
||||
* 添加判断答案信息
|
||||
* @param appQuestionJudgmentAnswer 判断答案信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertJudgmentAnswer(AppQuestionJudgmentAnswer appQuestionJudgmentAnswer);
|
||||
|
||||
|
||||
/**
|
||||
* 添加开放题答案信息
|
||||
* @param appQuestionnaireShortAnswer 开放题答案信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertShortAnswer(AppQuestionnaireShortAnswer appQuestionnaireShortAnswer);
|
||||
|
||||
/**
|
||||
* 添加答题人信息表
|
||||
* @param appQuestionnairePersonnel 问卷人表信息
|
||||
* @return 影响行数
|
||||
*/
|
||||
int insertPersonnel(AppQuestionnairePersonnel appQuestionnairePersonnel);
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.api.app.dao.butler;
|
||||
|
||||
import com.api.vo.app.AppServiceBrowsingVo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AppServiceBrowsingDao {
|
||||
List<AppServiceBrowsingVo> list();
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue