PropertyServiceDaoImpl.java 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. package com.java110.property.dao.impl;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.java110.property.dao.IPropertyServiceDao;
  4. import com.java110.common.constant.ResponseConstant;
  5. import com.java110.common.exception.DAOException;
  6. import com.java110.common.util.DateUtil;
  7. import com.java110.core.base.dao.BaseServiceDao;
  8. import org.slf4j.Logger;
  9. import org.slf4j.LoggerFactory;
  10. import org.springframework.stereotype.Service;
  11. import java.util.List;
  12. import java.util.Map;
  13. /**
  14. * 物业服务 与数据库交互
  15. * Created by wuxw on 2017/4/5.
  16. */
  17. @Service("propertyServiceDaoImpl")
  18. //@Transactional
  19. public class PropertyServiceDaoImpl extends BaseServiceDao implements IPropertyServiceDao {
  20. private final static Logger logger = LoggerFactory.getLogger(PropertyServiceDaoImpl.class);
  21. /**
  22. * 物业信息封装
  23. * @param businessPropertyInfo 物业信息 封装
  24. * @throws DAOException
  25. */
  26. @Override
  27. public void saveBusinessPropertyInfo(Map businessPropertyInfo) throws DAOException {
  28. businessPropertyInfo.put("month", DateUtil.getCurrentMonth());
  29. // 查询business_user 数据是否已经存在
  30. logger.debug("保存物业信息 入参 businessPropertyInfo : {}",businessPropertyInfo);
  31. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyInfo",businessPropertyInfo);
  32. if(saveFlag < 1){
  33. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业数据失败:"+ JSONObject.toJSONString(businessPropertyInfo));
  34. }
  35. }
  36. /**
  37. * 物业属性信息分装
  38. * @param businessPropertyAttr 物业属性信息封装
  39. * @throws DAOException
  40. */
  41. @Override
  42. public void saveBusinessPropertyAttr(Map businessPropertyAttr) throws DAOException {
  43. businessPropertyAttr.put("month", DateUtil.getCurrentMonth());
  44. // 查询business_user 数据是否已经存在
  45. logger.debug("保存物业属性信息 入参 businessPropertyAttr : {}",businessPropertyAttr);
  46. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyAttr",businessPropertyAttr);
  47. if(saveFlag < 1){
  48. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业属性数据失败:"+ JSONObject.toJSONString(businessPropertyAttr));
  49. }
  50. }
  51. /**
  52. * 保存物业照片信息
  53. * @param businessPropertyPhoto 物业照片
  54. * @throws DAOException
  55. */
  56. @Override
  57. public void saveBusinessPropertyPhoto(Map businessPropertyPhoto) throws DAOException {
  58. businessPropertyPhoto.put("month", DateUtil.getCurrentMonth());
  59. logger.debug("保存物业照片信息 入参 businessPropertyPhoto : {}",businessPropertyPhoto);
  60. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyPhoto",businessPropertyPhoto);
  61. if(saveFlag < 1){
  62. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业照片数据失败:"+ JSONObject.toJSONString(businessPropertyPhoto));
  63. }
  64. }
  65. /**
  66. * 保存物业证件信息
  67. * @param businessPropertyCerdentials 物业证件
  68. * @throws DAOException
  69. */
  70. @Override
  71. public void saveBusinessPropertyCerdentials(Map businessPropertyCerdentials) throws DAOException {
  72. businessPropertyCerdentials.put("month", DateUtil.getCurrentMonth());
  73. logger.debug("保存物业证件信息 入参 businessPropertyCerdentials : {}",businessPropertyCerdentials);
  74. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyCerdentials",businessPropertyCerdentials);
  75. if(saveFlag < 1){
  76. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业证件数据失败:"+ JSONObject.toJSONString(businessPropertyCerdentials));
  77. }
  78. }
  79. /**
  80. * 保存物业用户信息
  81. * @param info
  82. * @throws DAOException
  83. */
  84. public void saveBusinessPropertyUser(Map info) throws DAOException{
  85. info.put("month", DateUtil.getCurrentMonth());
  86. logger.debug("保存物业用户信息入参 info : {}",info);
  87. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyUser",info);
  88. if(saveFlag < 1){
  89. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业用户信息数据失败:"+ JSONObject.toJSONString(info));
  90. }
  91. }
  92. /**
  93. * 保存物业费用信息
  94. * @param info
  95. * @throws DAOException
  96. */
  97. public void saveBusinessPropertyFee(Map info) throws DAOException{
  98. info.put("month", DateUtil.getCurrentMonth());
  99. logger.debug("保存物业费用信息入参 info : {}",info);
  100. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyFee",info);
  101. if(saveFlag < 1){
  102. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业费用信息数据失败:"+ JSONObject.toJSONString(info));
  103. }
  104. }
  105. /**
  106. * 保存 住户信息
  107. * @param businessPropertyHouse 住户信息 封装
  108. * @throws DAOException 操作数据库异常
  109. */
  110. public void saveBusinessPropertyHouse(Map businessPropertyHouse) throws DAOException{
  111. businessPropertyHouse.put("month", DateUtil.getCurrentMonth());
  112. // 查询business_user 数据是否已经存在
  113. logger.debug("保存住户信息 入参 businessPropertyHouse : {}",businessPropertyHouse);
  114. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyHouse",businessPropertyHouse);
  115. if(saveFlag < 1){
  116. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存住户数据失败:"+ JSONObject.toJSONString(businessPropertyHouse));
  117. }
  118. }
  119. /**
  120. * 保存住户属性
  121. * @param businessPropertyHouseAttr 住户信息封装
  122. * @throws DAOException 操作数据库异常
  123. */
  124. public void saveBusinessPropertyHouseAttr(Map businessPropertyHouseAttr) throws DAOException{
  125. businessPropertyHouseAttr.put("month", DateUtil.getCurrentMonth());
  126. // 查询business_user 数据是否已经存在
  127. logger.debug("保存住户属性信息 入参 businessPropertyHouseAttr : {}",businessPropertyHouseAttr);
  128. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.saveBusinessPropertyHouseAttr",businessPropertyHouseAttr);
  129. if(saveFlag < 1){
  130. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存住户属性数据失败:"+ JSONObject.toJSONString(businessPropertyHouseAttr));
  131. }
  132. }
  133. /**
  134. * 查询物业信息
  135. * @param info bId 信息
  136. * @return 物业信息
  137. * @throws DAOException
  138. */
  139. @Override
  140. public Map getBusinessPropertyInfo(Map info) throws DAOException {
  141. logger.debug("查询物业信息 入参 info : {}",info);
  142. List<Map> businessPropertyInfos = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyInfo",info);
  143. if(businessPropertyInfos == null){
  144. return null;
  145. }
  146. if(businessPropertyInfos.size() >1){
  147. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"根据条件查询有多条数据,数据异常,请检查:businessPropertyInfos,"+ JSONObject.toJSONString(info));
  148. }
  149. return businessPropertyInfos.get(0);
  150. }
  151. /**
  152. * 查询物业属性
  153. * @param info bId 信息
  154. * @return 物业属性
  155. * @throws DAOException
  156. */
  157. @Override
  158. public List<Map> getBusinessPropertyAttrs(Map info) throws DAOException {
  159. logger.debug("查询物业属性信息 入参 info : {}",info);
  160. List<Map> businessPropertyAttrs = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyAttrs",info);
  161. return businessPropertyAttrs;
  162. }
  163. /**
  164. * 查询住户信息(business过程)
  165. * 根据bId 查询物业信息
  166. * @param info bId 信息
  167. * @return 物业信息
  168. * @throws DAOException
  169. */
  170. public Map getBusinessPropertyHouse(Map info) throws DAOException{
  171. logger.debug("查询住户信息 入参 info : {}",info);
  172. List<Map> businessPropertyHouses = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyHouse",info);
  173. if(businessPropertyHouses == null){
  174. return null;
  175. }
  176. if(businessPropertyHouses.size() >1){
  177. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"根据条件查询有多条数据,数据异常,请检查:businessPropertyHouse,"+ JSONObject.toJSONString(info));
  178. }
  179. return businessPropertyHouses.get(0);
  180. }
  181. /**
  182. * 查询住户属性信息(business过程)
  183. * @param info bId 信息
  184. * @return 物业属性
  185. * @throws DAOException
  186. */
  187. public List<Map> getBusinessPropertyHouseAttrs(Map info) throws DAOException{
  188. logger.debug("查询住户属性信息 入参 info : {}",info);
  189. List<Map> businessPropertyHouseAttrs = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyHouseAttrs",info);
  190. return businessPropertyHouseAttrs;
  191. }
  192. /**
  193. * 查询物业照片
  194. * @param info bId 信息
  195. * @return
  196. * @throws DAOException
  197. */
  198. @Override
  199. public List<Map> getBusinessPropertyPhoto(Map info) throws DAOException {
  200. logger.debug("查询物业照片信息 入参 info : {}",info);
  201. List<Map> businessPropertyPhotos = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyPhoto",info);
  202. return businessPropertyPhotos;
  203. }
  204. /**
  205. * 查询物业证件
  206. * @param info bId 信息
  207. * @return
  208. * @throws DAOException
  209. */
  210. @Override
  211. public List<Map> getBusinessPropertyCerdentials(Map info) throws DAOException {
  212. logger.debug("查询物业证件信息 入参 info : {}",info);
  213. List<Map> businessPropertyCerdentialses = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyCerdentials",info);
  214. return businessPropertyCerdentialses;
  215. }
  216. /**
  217. * 查询物业用户信息
  218. * @param info bId 信息
  219. * @return 物业照片
  220. * @throws DAOException
  221. */
  222. public List<Map> getBusinessPropertyUser(Map info) throws DAOException{
  223. logger.debug("查询物业用户信息 入参 info : {}",info);
  224. List<Map> businessPropertyUsers = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyUser",info);
  225. return businessPropertyUsers;
  226. }
  227. /**
  228. * 查询物业费用信息
  229. * @param info bId 信息
  230. * @return 物业照片
  231. * @throws DAOException
  232. */
  233. public List<Map> getBusinessPropertyFee(Map info) throws DAOException{
  234. logger.debug("查询物业用户信息 入参 info : {}",info);
  235. List<Map> businessPropertyUsers = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getBusinessPropertyFee",info);
  236. return businessPropertyUsers;
  237. }
  238. /**
  239. * 保存物业信息 到 instance
  240. * @param info bId 信息
  241. * @throws DAOException
  242. */
  243. @Override
  244. public void savePropertyInfoInstance(Map info) throws DAOException {
  245. logger.debug("保存物业信息Instance 入参 info : {}",info);
  246. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyInfoInstance",info);
  247. if(saveFlag < 1){
  248. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业信息Instance数据失败:"+ JSONObject.toJSONString(info));
  249. }
  250. }
  251. @Override
  252. public void savePropertyAttrsInstance(Map info) throws DAOException {
  253. logger.debug("保存物业属性信息Instance 入参 info : {}",info);
  254. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyAttrsInstance",info);
  255. if(saveFlag < 1){
  256. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业属性信息Instance数据失败:"+ JSONObject.toJSONString(info));
  257. }
  258. }
  259. /**
  260. * 保存 住户信息 Business数据到 Instance中
  261. * @param info
  262. * @throws DAOException
  263. */
  264. public void savePropertyHouseInstance(Map info) throws DAOException{
  265. logger.debug("保存住户信息Instance 入参 info : {}",info);
  266. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyHouseInstance",info);
  267. if(saveFlag < 1){
  268. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存住户信息Instance数据失败:"+ JSONObject.toJSONString(info));
  269. }
  270. }
  271. /**
  272. * 保存 住户属性信息 Business数据到 Instance中
  273. * @param info
  274. * @throws DAOException
  275. */
  276. public void savePropertyHouseAttrsInstance(Map info) throws DAOException{
  277. logger.debug("保存住户属性信息Instance 入参 info : {}",info);
  278. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyHouseAttrsInstance",info);
  279. if(saveFlag < 1){
  280. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存住户属性信息Instance数据失败:"+ JSONObject.toJSONString(info));
  281. }
  282. }
  283. @Override
  284. public void savePropertyPhotoInstance(Map info) throws DAOException {
  285. logger.debug("保存物业照片信息Instance 入参 info : {}",info);
  286. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyPhotoInstance",info);
  287. if(saveFlag < 1){
  288. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业照片信息Instance数据失败:"+ JSONObject.toJSONString(info));
  289. }
  290. }
  291. @Override
  292. public void savePropertyCerdentialsInstance(Map info) throws DAOException {
  293. logger.debug("保存物业证件信息Instance 入参 info : {}",info);
  294. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyCerdentialsInstance",info);
  295. if(saveFlag < 1){
  296. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业证件信息Instance数据失败:"+ JSONObject.toJSONString(info));
  297. }
  298. }
  299. /**
  300. * 保存 物业用户信息 Business数据到 Instance中
  301. * @param info
  302. * @throws DAOException
  303. */
  304. public void savePropertyUserInstance(Map info) throws DAOException{
  305. logger.debug("保存物业用户信息Instance 入参 info : {}",info);
  306. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyUserInstance",info);
  307. if(saveFlag < 1){
  308. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业用户信息Instance数据失败:"+ JSONObject.toJSONString(info));
  309. }
  310. }
  311. /**
  312. * 保存 物业费用信息 Business数据到 Instance中
  313. * @param info
  314. * @throws DAOException
  315. */
  316. public void savePropertyFeeInstance(Map info) throws DAOException{
  317. logger.debug("保存物业费用信息Instance 入参 info : {}",info);
  318. int saveFlag = sqlSessionTemplate.insert("propertyServiceDaoImpl.savePropertyFeeInstance",info);
  319. if(saveFlag < 1){
  320. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存物业费用信息Instance数据失败:"+ JSONObject.toJSONString(info));
  321. }
  322. }
  323. /**
  324. * 查询物业信息(instance)
  325. * @param info bId 信息
  326. * @return
  327. * @throws DAOException
  328. */
  329. @Override
  330. public Map getPropertyInfo(Map info) throws DAOException {
  331. logger.debug("查询物业信息 入参 info : {}",info);
  332. List<Map> businessPropertyInfos = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyInfo",info);
  333. if(businessPropertyInfos == null || businessPropertyInfos.size() == 0){
  334. return null;
  335. }
  336. if(businessPropertyInfos.size() >1){
  337. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"根据条件查询有多条数据,数据异常,请检查:getPropertyInfo,"+ JSONObject.toJSONString(info));
  338. }
  339. return businessPropertyInfos.get(0);
  340. }
  341. /**
  342. * 物业属性查询(instance)
  343. * @param info bId 信息
  344. * @return
  345. * @throws DAOException
  346. */
  347. @Override
  348. public List<Map> getPropertyAttrs(Map info) throws DAOException {
  349. logger.debug("查询物业属性信息 入参 info : {}",info);
  350. List<Map> propertyAttrs = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyAttrs",info);
  351. return propertyAttrs;
  352. }
  353. /**
  354. * 查询住户信息(instance过程)
  355. * 根据bId 查询物业信息
  356. * @param info bId 信息
  357. * @return 物业信息
  358. * @throws DAOException
  359. */
  360. public Map getPropertyHouse(Map info) throws DAOException{
  361. logger.debug("查询住户信息 入参 info : {}",info);
  362. List<Map> businessPropertyInfos = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyHouse",info);
  363. if(businessPropertyInfos == null || businessPropertyInfos.size() == 0){
  364. return null;
  365. }
  366. if(businessPropertyInfos.size() >1){
  367. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"根据条件查询有多条数据,数据异常,请检查:getPropertyHouse,"+ JSONObject.toJSONString(info));
  368. }
  369. return businessPropertyInfos.get(0);
  370. }
  371. /**
  372. * 查询住户属性信息(instance过程)
  373. * @param info bId 信息
  374. * @return 物业属性
  375. * @throws DAOException
  376. */
  377. public List<Map> getPropertyHouseAttrs(Map info) throws DAOException{
  378. logger.debug("查询住户属性信息 入参 info : {}",info);
  379. List<Map> propertyAttrs = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyHouseAttrs",info);
  380. return propertyAttrs;
  381. }
  382. /**
  383. * 物业照片查询(instance)
  384. * @param info bId 信息
  385. * @return
  386. * @throws DAOException
  387. */
  388. @Override
  389. public List<Map> getPropertyPhoto(Map info) throws DAOException {
  390. logger.debug("查询物业照片信息 入参 info : {}",info);
  391. List<Map> propertyPhotos = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyPhoto",info);
  392. return propertyPhotos;
  393. }
  394. /**
  395. * 物业证件查询(instance)
  396. * @param info bId 信息
  397. * @return
  398. * @throws DAOException
  399. */
  400. @Override
  401. public List<Map> getPropertyCerdentials(Map info) throws DAOException {
  402. logger.debug("查询物业证件信息 入参 info : {}",info);
  403. List<Map> propertyCerdentialses = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyCerdentials",info);
  404. return propertyCerdentialses;
  405. }
  406. /**
  407. * 查询物业用户信息(instance 过程)
  408. * @param info bId 信息
  409. * @return 物业照片
  410. * @throws DAOException
  411. */
  412. public List<Map> getPropertyUser(Map info) throws DAOException{
  413. logger.debug("查询物业用户信息 入参 info : {}",info);
  414. List<Map> propertyUsers = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyUser",info);
  415. return propertyUsers;
  416. }
  417. public List<Map> getPropertyFee(Map info) throws DAOException{
  418. logger.debug("查询物业费用信息 入参 info : {}",info);
  419. List<Map> propertyFees = sqlSessionTemplate.selectList("propertyServiceDaoImpl.getPropertyFee",info);
  420. return propertyFees;
  421. }
  422. /**
  423. * 修改物业信息
  424. * @param info 修改信息
  425. * @throws DAOException
  426. */
  427. @Override
  428. public void updatePropertyInfoInstance(Map info) throws DAOException {
  429. logger.debug("修改物业信息Instance 入参 info : {}",info);
  430. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyInfoInstance",info);
  431. if(saveFlag < 1){
  432. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改物业信息Instance数据失败:"+ JSONObject.toJSONString(info));
  433. }
  434. }
  435. /**
  436. * 修改物业属性信息(instance)
  437. * @param info 修改信息
  438. * @throws DAOException
  439. */
  440. @Override
  441. public void updatePropertyAttrInstance(Map info) throws DAOException {
  442. logger.debug("修改物业属性信息Instance 入参 info : {}",info);
  443. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyAttrInstance",info);
  444. if(saveFlag < 1){
  445. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改物业属性信息Instance数据失败:"+ JSONObject.toJSONString(info));
  446. }
  447. }
  448. /**
  449. * 修改住户信息
  450. * @param info 修改信息
  451. * @throws DAOException
  452. */
  453. public void updatePropertyHouseInstance(Map info) throws DAOException{
  454. logger.debug("修改住户信息Instance 入参 info : {}",info);
  455. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyHouseInstance",info);
  456. if(saveFlag < 1){
  457. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改住户信息Instance数据失败:"+ JSONObject.toJSONString(info));
  458. }
  459. }
  460. /**
  461. * 修改住户属性信息
  462. * @param info 修改信息
  463. * @throws DAOException
  464. */
  465. public void updatePropertyHouseAttrInstance(Map info) throws DAOException{
  466. logger.debug("修改住户属性信息Instance 入参 info : {}",info);
  467. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyHouseAttrInstance",info);
  468. if(saveFlag < 1){
  469. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改住户属性信息Instance数据失败:"+ JSONObject.toJSONString(info));
  470. }
  471. }
  472. /**
  473. * 修改 物业照片信息
  474. * @param info 修改信息
  475. * @throws DAOException
  476. */
  477. @Override
  478. public void updatePropertyPhotoInstance(Map info) throws DAOException {
  479. logger.debug("修改物业照片信息Instance 入参 info : {}",info);
  480. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyPhotoInstance",info);
  481. if(saveFlag < 1){
  482. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改物业照片信息Instance数据失败:"+ JSONObject.toJSONString(info));
  483. }
  484. }
  485. /**
  486. * 修改物业证件信息
  487. * @param info 修改信息
  488. * @throws DAOException
  489. */
  490. @Override
  491. public void updatePropertyCerdentailsInstance(Map info) throws DAOException {
  492. logger.debug("修改物业证件信息Instance 入参 info : {}",info);
  493. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyCerdentailsInstance",info);
  494. if(saveFlag < 1){
  495. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改物业证件信息Instance数据失败:"+ JSONObject.toJSONString(info));
  496. }
  497. }
  498. /**
  499. * 修改物业用户信息
  500. * @param info 修改信息
  501. * @throws DAOException
  502. */
  503. public void updatePropertyUserInstance(Map info) throws DAOException{
  504. logger.debug("修改物业用户信息Instance 入参 info : {}",info);
  505. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyUserInstance",info);
  506. if(saveFlag < 1){
  507. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改物业用户信息Instance数据失败:"+ JSONObject.toJSONString(info));
  508. }
  509. }
  510. /**
  511. * 修改物业费用信息
  512. * @param info 修改信息
  513. * @throws DAOException
  514. */
  515. public void updatePropertyFeeInstance(Map info) throws DAOException{
  516. logger.debug("修改物业费用信息Instance 入参 info : {}",info);
  517. int saveFlag = sqlSessionTemplate.update("propertyServiceDaoImpl.updatePropertyFeeInstance",info);
  518. if(saveFlag < 1){
  519. throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改物业费用信息Instance数据失败:"+ JSONObject.toJSONString(info));
  520. }
  521. }
  522. }