| | |
| | | private String payFeeMonth; |
| | | private String feePrice; |
| | | private String takeTime; |
| | | |
| | | private String outTime; |
| | | private String startTime; |
| | | private String endTime; |
| | | |
| | |
| | | this.memberId = memberId; |
| | | } |
| | | |
| | | public String getOutTime() { |
| | | return outTime; |
| | | } |
| | | |
| | | public void setOutTime(String outTime) { |
| | | this.outTime = outTime == null ? null : outTime.split(" ")[0]; |
| | | } |
| | | |
| | | public String getState() { |
| | | return state; |
| | | } |
| | |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | private String outTime; |
| | | |
| | | public String getOutTime() { |
| | | return outTime; |
| | | } |
| | | |
| | | public void setOutTime(String outTime) { |
| | | this.outTime = outTime; |
| | | } |
| | | |
| | | public String getDetailId() { |
| | | return detailId; |
| | |
| | | |
| | | private String takeTime; |
| | | |
| | | private String outTime; |
| | | |
| | | public String getOutTime() { |
| | | return outTime; |
| | | } |
| | | |
| | | public void setOutTime(String outTime) { |
| | | this.outTime = outTime; |
| | | } |
| | | public String getTakeTime() { |
| | | return takeTime; |
| | | } |
| | |
| | | private String createTime; |
| | | private String feePrice; |
| | | private String takeTime; |
| | | private String outTime; |
| | | |
| | | public String getOutTime() { |
| | | return outTime; |
| | | } |
| | | |
| | | public void setOutTime(String outTime) { |
| | | this.outTime = outTime; |
| | | } |
| | | |
| | | public String getTakeTime() { |
| | | return takeTime; |
| | |
| | | |
| | | <!-- 查询小区信息 add by wuxw 2018-07-03 --> |
| | | <select id="getCommunityInfo" parameterType="Map" resultType="Map"> |
| | | select s.community_id,s.b_id,s.name,s.address,s.city_code,s.nearby_landmarks,s.map_x,s.map_y,s.status_cd,s.state, s.take_time |
| | | select s.community_id,s.b_id,s.name,s.address,s.city_code,s.nearby_landmarks,s.map_x,s.map_y,s.status_cd,s.state, s.take_time, s.out_time |
| | | from s_community s |
| | | where 1=1 |
| | | <if test="statusCd != null and statusCd != ''"> |
| | |
| | | </if> |
| | | <if test="takeTime !=null and takeTime != ''"> |
| | | , t.take_time= #{takeTime} |
| | | </if> |
| | | <if test="outTime !=null and outTime != ''"> |
| | | , t.out_time= #{outTime} |
| | | </if> |
| | | <if test="communityArea != null and communityArea != ''"> |
| | | ,s.community_area = #{communityArea} |
| | |
| | | <if test="needCommunityInfo == true"> |
| | | and sc.`community_id` = ms.`community_id` |
| | | AND sc.`status_cd` = '0' |
| | | and sc.state='1100' |
| | | and sc.state in ('1100','1400') |
| | | </if> |
| | | <if test="statusCd != null and statusCd != ''"> |
| | | and ms.status_cd = #{statusCd} |
| | |
| | | <if test="needCommunityInfo == true"> |
| | | and sc.`community_id` = ms.`community_id` |
| | | AND sc.`status_cd` = '0' |
| | | and sc.state='1100' |
| | | and sc.state in ('1100','1400') |
| | | </if> |
| | | <if test="statusCd != null and statusCd != ''"> |
| | | and ms.status_cd = #{statusCd} |
| | |
| | | t.map_x,t.map_x mapX,t.state,td.name stateName,ca.area_code areaCode,ca.area_name areaName, |
| | | ca.parent_area_code parentAreaCode,ca.parent_area_name parentAreaName, |
| | | t.community_area communityArea,t.pay_fee_month,t.pay_fee_month payFeeMonth,t.fee_price,t.fee_price |
| | | feePrice,t.qr_code qrCode,t.create_time createTime,s.name storeName,s.store_id storeId, t.take_time, t.take_time takeTime |
| | | feePrice,t.qr_code qrCode,t.create_time createTime,s.name storeName,s.store_id storeId, t.take_time, t.take_time takeTime,t.out_time outTime |
| | | from s_community t |
| | | left join city_area ca on t.city_code = ca.area_code and ca.status_cd = '0' |
| | | left join s_community_member cm on t.community_id = cm.community_id and cm.member_type_cd = '390001200002' and cm.status_cd = '0' |
| | |
| | | ca1.parent_area_name provName, |
| | | sc.community_area communityArea, |
| | | sc.qr_code qrCode, |
| | | sc.take_time takeTime |
| | | sc.take_time takeTime, |
| | | sc.out_time outTime |
| | | FROM |
| | | s_community sc, |
| | | s_community_member scm, |
| | |
| | | <!-- 保存小区管理信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveCommunityInfo" parameterType="Map"> |
| | | insert into s_community( |
| | | fee_price,address,city_code,map_y,pay_fee_month,map_x,nearby_landmarks,name,tel,state,community_id,community_area,take_time |
| | | fee_price,address,city_code,map_y,pay_fee_month,map_x,nearby_landmarks,name,tel,state,community_id,community_area,take_time,out_time |
| | | ) values ( |
| | | #{feePrice},#{address},#{cityCode},#{mapY},#{payFeeMonth},#{mapX},#{nearbyLandmarks},#{name},#{tel},#{state},#{communityId},#{communityArea},#{takeTime} |
| | | #{feePrice},#{address},#{cityCode},#{mapY},#{payFeeMonth},#{mapX},#{nearbyLandmarks},#{name},#{tel},#{state},#{communityId},#{communityArea},#{takeTime},#{outTime} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | select t.fee_price,t.fee_price feePrice,t.address,t.city_code,t.city_code cityCode,t.status_cd,t.status_cd |
| | | statusCd,t.map_y,t.map_y mapY,t.pay_fee_month,t.pay_fee_month payFeeMonth,t.map_x,t.map_x |
| | | mapX,t.nearby_landmarks,t.nearby_landmarks nearbyLandmarks,t.name,t.tel,t.state,t.community_id,t.community_id |
| | | communityId,t.community_area,t.community_area communityArea,t.qr_code qrCode,t.take_time, t.take_time takeTime |
| | | communityId,t.community_area,t.community_area communityArea,t.qr_code qrCode,t.take_time, t.take_time takeTime, t.out_time , t.out_time outTime |
| | | from s_community t |
| | | where 1 =1 |
| | | <if test="feePrice !=null and feePrice != ''"> |
| | |
| | | <if test="takeTime !=null and takeTime != ''"> |
| | | , t.take_time= #{takeTime} |
| | | </if> |
| | | <if test="outTime !=null and outTime != ''"> |
| | | , t.out_time= #{outTime} |
| | | </if> |
| | | where 1=1 |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | |
| | | select t.fee_price,t.fee_price feePrice,t.address,t.city_code,t.city_code cityCode,t.status_cd,t.status_cd |
| | | statusCd,t.map_y,t.map_y mapY,t.pay_fee_month,t.pay_fee_month payFeeMonth,t.map_x,t.map_x |
| | | mapX,t.nearby_landmarks,t.nearby_landmarks nearbyLandmarks,t.name,t.tel,t.state,t.community_id,t.community_id |
| | | communityId,t.community_area,t.community_area communityArea,t.qr_code qrCode,cm.member_id storeId,t.take_time, t.take_time takeTime |
| | | communityId,t.community_area,t.community_area communityArea,t.qr_code qrCode,cm.member_id storeId,t.take_time, t.take_time takeTime, t.out_time , t.out_time outTime |
| | | from s_community t |
| | | left join s_community_member cm on t.community_id = cm.community_id and cm.member_type_cd = '390001200002' |
| | | where 1 =1 |
| | |
| | | public void addCommunity(JSONObject paramInJson, ICmdDataFlowContext dataFlowContext) { |
| | | |
| | | paramInJson.put("communityId", GenerateCodeFactory.getCommunityId()); |
| | | paramInJson.put("state", "1000"); |
| | | if (paramInJson.containsKey("state")) { |
| | | paramInJson.put("state", paramInJson.getString("state")); |
| | | }else{ |
| | | paramInJson.put("state", "1000"); |
| | | } |
| | | paramInJson.put("communityArea", "0"); |
| | | CommunityPo communityPo = BeanConvertUtil.covertBean(paramInJson, CommunityPo.class); |
| | | communityPo.setState(CommunityDto.STATE_NORMAL); |
| | | communityPo.setState(paramInJson.containsKey("state") ? paramInJson.getString("state"):CommunityDto.STATE_NORMAL); |
| | | |
| | | int flag = communityV1InnerServiceSMOImpl.saveCommunity(communityPo); |
| | | if (flag < 1) { |
| | |
| | | assetImportLogPo = new AssetImportLogPo(); |
| | | assetImportLogPo.setLogId(importDataDto.getLogId()); |
| | | assetImportLogPo.setState(AssetImportLogDto.STATE_COMPLETE_IMPORT); |
| | | assetImportLogPo.setRemark(""); |
| | | assetImportLogInnerServiceSMOImpl.updateAssetImportLog(assetImportLogPo); |
| | | } |
| | | |
| | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.core.smo.IComputeFeeSMO; |
| | | import com.java110.core.smo.impl.ComputeFeeSMOImpl; |
| | | import com.java110.dto.PropertyWhiteListFlowDto; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.contract.ContractDto; |
| | |
| | | |
| | | @Autowired |
| | | private ICommunityInnerServiceSMO communityInnerServiceSMO; |
| | | |
| | | @Autowired |
| | | private ComputeFeeSMOImpl calculateFeeSMOImpl; |
| | | |
| | | @Override |
| | | public void importData(List<AssetImportLogDetailDto> assetImportLogDetailDtos) { |
| | |
| | | feeInnerServiceSMOImpl.updateFee(payFeePo); |
| | | feeInfo = feeInnerServiceSMOImpl.queryFees(fee).get(0); |
| | | if (importRoomFee.getEndTime().split(" ")[0].equals(DateUtil.getFormatTimeStringB(feeInfo.getMaxEndTime()))) { |
| | | double computeFee = computeFee(feeInfo,importRoomFee); |
| | | Date deadlineTime = feeInfo.getDeadlineTime(); |
| | | feeInfo.setDeadlineTime(DateUtil.getDateFromStringA(importRoomFee.getEndTime())); |
| | | calculateFeeSMOImpl.computeOweFee(feeInfo); |
| | | feeInfo.setDeadlineTime(deadlineTime); |
| | | double computeFee = Double.parseDouble(feeInfo.getAmountOwed()); |
| | | if(computeFee <= 1 && computeFee >= -1){ |
| | | PayFeePo payFee = new PayFeePo(); |
| | | payFee.setFeeId(feeInfo.getFeeId()); |
| | |
| | | spring: |
| | | profiles: |
| | | active: debug |
| | | active: devlocal |
| | | |
| | | import: |
| | | line: |