| | |
| | | private String acctName; |
| | | private String objType; |
| | | private String partId; |
| | | |
| | | private String[] communityIds; |
| | | private String hasMoney; // 1 标识有 |
| | | private String link; |
| | | private String idCard; |
| | |
| | | public void setRoomName(String roomName) { |
| | | this.roomName = roomName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String state; |
| | | private String stateName; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | |
| | | private String taskId; |
| | | |
| | |
| | | public void setStaffs(List<ComplaintTypeUserDto> staffs) { |
| | | this.staffs = staffs; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String endTime; |
| | | private String curTime; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String feeTypeCdName; |
| | | private String feeFlagName; |
| | | |
| | |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String[] floorIds; |
| | | |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | |
| | | private String communityName; |
| | | |
| | |
| | | public void setCommunityName(String communityName) { |
| | | this.communityName = communityName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String inspectionPlanId; |
| | | private String state; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | |
| | | private String communityName; |
| | | private String staffId; |
| | |
| | | public void setCommunityName(String communityName) { |
| | | this.communityName = communityName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String inspectionPlanName; |
| | | private String planUserName; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String actUserId; |
| | | private String taskId; |
| | | private String state; |
| | |
| | | public void setInspectionRouteId(String inspectionRouteId) { |
| | | this.inspectionRouteId = inspectionRouteId; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String model; |
| | | private String state; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String brand; |
| | | private String machineTypeCd; |
| | | private String machineCode; |
| | |
| | | public void setMachineNameLike(String machineNameLike) { |
| | | this.machineNameLike = machineNameLike; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String parentTypeId; |
| | | private String machineTypeCd; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String communityName; |
| | | private String isEnable; |
| | | private String machineTypeCode; |
| | |
| | | public void setCommunityName(String communityName) { |
| | | this.communityName = communityName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String stateName; |
| | | private String appUserId; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String appTypeCd; |
| | | private String memberId; |
| | | private String ownerId; |
| | |
| | | public void setOwnerTypeCdName(String ownerTypeCdName) { |
| | | this.ownerTypeCdName = ownerTypeCdName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private List<String> states; |
| | | private String stateName; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String communityName; |
| | | private String roomId; |
| | | private String[] roomIds; |
| | |
| | | public void setCommunityName(String communityName) { |
| | | this.communityName = communityName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String repairType; |
| | | private String remark; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String communityName; |
| | | private String repairWay; |
| | | private String repairWayName; |
| | |
| | | public void setCommunityName(String communityName) { |
| | | this.communityName = communityName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | private String oweAmount; |
| | | private String curOweAmount; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String feeCreateTime; |
| | | private String feeStartTime; |
| | | private String feeEndTime; |
| | |
| | | public void setCommunityName(String communityName) { |
| | | this.communityName = communityName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | |
| | | private String finishTime; |
| | | private String communityId; |
| | | private String[] communityIds; |
| | | private String communityName; |
| | | private String storeId; |
| | | private String taskId; |
| | |
| | | public void setCommunityName(String communityName) { |
| | | this.communityName = communityName; |
| | | } |
| | | |
| | | public String[] getCommunityIds() { |
| | | return communityIds; |
| | | } |
| | | |
| | | public void setCommunityIds(String[] communityIds) { |
| | | this.communityIds = communityIds; |
| | | } |
| | | } |
| | |
| | | <if test="partId !=null and partId != ''"> |
| | | and t.part_id= #{partId} |
| | | </if> |
| | | <if test="communityIds !=null "> |
| | | and t.part_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="link !=null and link != ''"> |
| | | and t.link= #{link} |
| | | </if> |
| | |
| | | <if test="partId !=null and partId != ''"> |
| | | and t.part_id= #{partId} |
| | | </if> |
| | | <if test="communityIds !=null "> |
| | | and t.part_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="link !=null and link != ''"> |
| | | and t.link= #{link} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="brand !=null and brand != ''"> |
| | | and t.brand= #{brand} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="brand !=null and brand != ''"> |
| | | and t.brand= #{brand} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="beforeTime !=null and beforeTime != ''"> |
| | | and t.before_time = #{beforeTime} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="beforeTime !=null and beforeTime != ''"> |
| | | and t.before_time = #{beforeTime} |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="beforeTime !=null and beforeTime != ''"> |
| | | and t.before_time = #{beforeTime} |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id= #{bId} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id= #{bId} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.create_time >= #{startTime} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.create_time >= #{startTime} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id= #{bId} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id= #{bId} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.cur_month_time >= #{startTime} |
| | | </if> |
| | |
| | | and t.detail_id = '-1' |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.cur_month_time >= #{startTime} |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="primeRate != null and primeRate != ''"> |
| | | and t.prime_rate = #{primeRate} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="primeRate != null and primeRate != ''"> |
| | | and t.prime_rate = #{primeRate} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.create_time >= #{startTime} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.create_time >= #{startTime} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" open="(" close=")" |
| | | separator="," item="item">#{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="appTypeCd !=null and appTypeCd != ''"> |
| | | and t.app_type_cd= #{appTypeCd} |
| | | </if> |
| | |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | <if test="communityIds !=null"> |
| | | and t.community_id in |
| | | <foreach collection="communityIds" open="(" close=")" |
| | | separator="," item="item">#{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="appTypeCd !=null and appTypeCd != ''"> |
| | | and t.app_type_cd= #{appTypeCd} |
| | | </if> |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.acct.bmo.account.IGetAccountBMO; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.intf.store.IContractInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerCarInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerRoomRelInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | @Autowired |
| | | private IGetAccountBMO getAccountBMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | |
| | | AccountDto accountDto = BeanConvertUtil.covertBean(reqJson, AccountDto.class); |
| | | |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | accountDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | hasFeeId(reqJson, accountDto); |
| | | String ownerId = reqJson.getString("ownerId"); |
| | | if (!StringUtil.isEmpty(ownerId)) { |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.dto.machine.MachineTypeDto; |
| | | import com.java110.intf.common.IEquipmentAccountV1InnerServiceSMO; |
| | | import com.java110.intf.common.IMachineTypeV1InnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.cache.UrlCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | @Autowired |
| | | private IMachineTypeV1InnerServiceSMO machineTypeV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | EquipmentAccountDto equipmentAccountDto = BeanConvertUtil.covertBean(reqJson, EquipmentAccountDto.class); |
| | | String staffId = CmdContextUtils.getUserId(cmdDataFlowContext); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | equipmentAccountDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | int count = equipmentAccountV1InnerServiceSMOImpl.queryEquipmentAccountsCount(equipmentAccountDto); |
| | | |
| | |
| | | public List<Map> getEquipmentAccountInfo(Map info) throws DAOException { |
| | | logger.debug("查询 getEquipmentAccountInfo 入参 info : {}",info); |
| | | |
| | | List<Map> businessEquipmentAccountInfos = sqlSessionTemplate.selectList("equipmentAccountV1ServiceDaoImpl.getEquipmentAccountInfo",info); |
| | | List<Map> infos = sqlSessionTemplate.selectList("equipmentAccountV1ServiceDaoImpl.getEquipmentAccountInfo",info); |
| | | |
| | | return businessEquipmentAccountInfos; |
| | | return infos; |
| | | } |
| | | |
| | | |
| | |
| | | public int queryEquipmentAccountsCount(Map info) { |
| | | logger.debug("查询 queryEquipmentAccountsCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessEquipmentAccountInfos = sqlSessionTemplate.selectList("equipmentAccountV1ServiceDaoImpl.queryEquipmentAccountsCount", info); |
| | | if (businessEquipmentAccountInfos.size() < 1) { |
| | | List<Map> infos = sqlSessionTemplate.selectList("equipmentAccountV1ServiceDaoImpl.queryEquipmentAccountsCount", info); |
| | | if (infos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessEquipmentAccountInfos.get(0).get("count").toString()); |
| | | return Integer.parseInt(infos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.intf.community.IInspectionPlanV1InnerServiceSMO; |
| | | import com.java110.intf.community.IInspectionRouteInnerServiceSMO; |
| | | import com.java110.intf.user.IOrgStaffRelInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | @Autowired |
| | | private ICommunityV1InnerServiceSMO communityV1InnerServiceSMOImpl; |
| | | |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | | InspectionPlanDto inspectionPlanDto = BeanConvertUtil.covertBean(reqJson, InspectionPlanDto.class); |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | inspectionPlanDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | int count = inspectionPlanV1InnerServiceSMOImpl.queryInspectionPlansCount(inspectionPlanDto); |
| | | |
| | | List<InspectionPlanDto> inspectionPlans = null; |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.dto.repair.RepairDto; |
| | | import com.java110.intf.community.ICommunityV1InnerServiceSMO; |
| | | import com.java110.intf.community.IInspectionTaskInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | @Autowired |
| | | private ICommunityV1InnerServiceSMO communityV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | | InspectionTaskDto inspectionTaskDto = BeanConvertUtil.covertBean(reqJson, InspectionTaskDto.class); |
| | | String staffId = CmdContextUtils.getUserId(cmdDataFlowContext); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | inspectionTaskDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | if (reqJson.containsKey("moreState") && reqJson.getString("moreState").contains(",")) { |
| | | inspectionTaskDto.setStates(reqJson.getString("moreState").split(",")); |
| | | } |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.intf.community.IRepairInnerServiceSMO; |
| | | import com.java110.intf.community.IRepairUserInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerV1InnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | |
| | | @Autowired |
| | | private ICommunityV1InnerServiceSMO communityV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | RepairDto ownerRepairDto = BeanConvertUtil.covertBean(reqJson, RepairDto.class); |
| | | |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | ownerRepairDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | //todo 处理时间 |
| | | ifHasTime(ownerRepairDto); |
| | | if (!StringUtil.isEmpty(ownerRepairDto.getRoomId()) && ownerRepairDto.getRoomId().contains(",")) { |
| | |
| | | |
| | | RoomDto roomDto = BeanConvertUtil.covertBean(reqJson, RoomDto.class); |
| | | |
| | | |
| | | // 计算根据业主查询 |
| | | computeOwnerRoomIds(reqJson, roomDto); |
| | | |
| | |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.community.dao.IInspectionPlanV1ServiceDao; |
| | | import com.java110.utils.util.ListUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public int queryInspectionPlansCount(Map info) { |
| | | logger.debug("查询 queryInspectionPlansCount 入参 info : {}",info); |
| | | |
| | | List<Map> businessInspectionPlanInfos = sqlSessionTemplate.selectList("inspectionPlanV1ServiceDaoImpl.queryInspectionPlansCount", info); |
| | | if (businessInspectionPlanInfos.size() < 1) { |
| | | List<Map> infos = sqlSessionTemplate.selectList("inspectionPlanV1ServiceDaoImpl.queryInspectionPlansCount", info); |
| | | if (ListUtil.isNull(infos)) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessInspectionPlanInfos.get(0).get("count").toString()); |
| | | return Integer.parseInt(infos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | logger.debug("查询活动信息 入参 info : {}", info); |
| | | |
| | | List<Map> businessInspectionTaskInfos = sqlSessionTemplate.selectList("inspectionTaskServiceDaoImpl.getBusinessInspectionTaskInfo", info); |
| | | List<Map> infos = sqlSessionTemplate.selectList("inspectionTaskServiceDaoImpl.getBusinessInspectionTaskInfo", info); |
| | | |
| | | return businessInspectionTaskInfos; |
| | | return infos; |
| | | } |
| | | |
| | | |
| | |
| | | public List<Map> getInspectionTaskInfo(Map info) throws DAOException { |
| | | logger.debug("查询活动信息 入参 info : {}", info); |
| | | |
| | | List<Map> businessInspectionTaskInfos = sqlSessionTemplate.selectList("inspectionTaskServiceDaoImpl.getInspectionTaskInfo", info); |
| | | List<Map> infos = sqlSessionTemplate.selectList("inspectionTaskServiceDaoImpl.getInspectionTaskInfo", info); |
| | | |
| | | return businessInspectionTaskInfos; |
| | | return infos; |
| | | } |
| | | |
| | | |
| | |
| | | public int queryInspectionTasksCount(Map info) { |
| | | logger.debug("查询活动数据 入参 info : {}", info); |
| | | |
| | | List<Map> businessInspectionTaskInfos = sqlSessionTemplate.selectList("inspectionTaskServiceDaoImpl.queryInspectionTasksCount", info); |
| | | if (businessInspectionTaskInfos.size() < 1) { |
| | | List<Map> infos = sqlSessionTemplate.selectList("inspectionTaskServiceDaoImpl.queryInspectionTasksCount", info); |
| | | if (infos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessInspectionTaskInfos.get(0).get("count").toString()); |
| | | return Integer.parseInt(infos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.fee.FeeConfigDto; |
| | | import com.java110.intf.fee.IFeeConfigInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.api.feeConfig.ApiFeeConfigDataVo; |
| | | import com.java110.vo.api.feeConfig.ApiFeeConfigVo; |
| | |
| | | @Autowired |
| | | private IFeeConfigInnerServiceSMO feeConfigInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | FeeConfigDto feeConfigDto = BeanConvertUtil.covertBean(reqJson, FeeConfigDto.class); |
| | | |
| | | String staffId = CmdContextUtils.getUserId(cmdDataFlowContext); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | feeConfigDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | if (!StringUtil.isEmpty(reqJson.getString("isFlag")) && reqJson.getString("isFlag").equals("0")) { |
| | | feeConfigDto.setPage(PageDto.DEFAULT_PAGE); |
| | | } |
| | |
| | | @Override |
| | | public List<Map> getBusinessFeeConfigInfo(Map info) throws DAOException { |
| | | logger.debug("查询费用配置信息 入参 info : {}", info); |
| | | List<Map> businessFeeConfigInfos = sqlSessionTemplate.selectList("feeConfigServiceDaoImpl.getBusinessFeeConfigInfo", info); |
| | | return businessFeeConfigInfos; |
| | | List<Map> infos = sqlSessionTemplate.selectList("feeConfigServiceDaoImpl.getBusinessFeeConfigInfo", info); |
| | | return infos; |
| | | } |
| | | |
| | | |
| | |
| | | @Override |
| | | public int queryFeeConfigsCount(Map info) { |
| | | logger.debug("查询费用配置数据 入参 info : {}", info); |
| | | List<Map> businessFeeConfigInfos = sqlSessionTemplate.selectList("feeConfigServiceDaoImpl.queryFeeConfigsCount", info); |
| | | if (businessFeeConfigInfos.size() < 1) { |
| | | List<Map> infos = sqlSessionTemplate.selectList("feeConfigServiceDaoImpl.queryFeeConfigsCount", info); |
| | | if (infos.size() < 1) { |
| | | return 0; |
| | | } |
| | | return Integer.parseInt(businessFeeConfigInfos.get(0).get("count").toString()); |
| | | return Integer.parseInt(infos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminAccessControlBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminAccessControlInoutBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminBarrierBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminCarInoutDetailBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminChargeMachineBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminChargeMachineOrderBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminMeterChargeBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.job.adapt.hcIot.http.ISendIot; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | String communityIdStr = String.join(", ", communityIds); |
| | | reqJson.put("communityIdStr",communityIdStr); |
| | | } |
| | | ResultVo resultVo = sendIotImpl.postAdmin("listAdminMeterMachineBmoImpl", reqJson); |
| | | |
| | | if (resultVo.getCode() != ResultVo.CODE_OK) { |
| | |
| | | import com.java110.dto.work.WorkTaskDto; |
| | | import com.java110.intf.community.ICommunityV1InnerServiceSMO; |
| | | import com.java110.intf.oa.IWorkTaskV1InnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | |
| | | @Autowired |
| | | private ICommunityV1InnerServiceSMO communityV1InnerServiceSMOImpl; |
| | | |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | WorkTaskDto workTaskDto = BeanConvertUtil.covertBean(reqJson, WorkTaskDto.class); |
| | | workTaskDto.setStoreId(""); |
| | | |
| | | String staffId = CmdContextUtils.getUserId(cmdDataFlowContext); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | workTaskDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | int count = workTaskV1InnerServiceSMOImpl.queryWorkTasksCount(workTaskDto); |
| | | |
| | | List<WorkTaskDto> workTaskDtos = null; |
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.intf.community.ICommunityV1InnerServiceSMO; |
| | | import com.java110.intf.dev.IDictV1InnerServiceSMO; |
| | | import com.java110.intf.report.IReportCommunityInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | @Autowired |
| | | private IDictV1InnerServiceSMO dictV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | // must be administrator |
| | |
| | | List<CommunityDto> communityDtos = null; |
| | | |
| | | CommunityDto communityDto = new CommunityDto(); |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | communityDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | communityDtos = communityV1InnerServiceSMOImpl.queryCommunitys(communityDto); |
| | | JSONArray communitys = new JSONArray(); |
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.floor.FloorDto; |
| | | import com.java110.intf.report.IReportCommunityInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | @Autowired |
| | | private IReportCommunityInnerServiceSMO reportCommunityInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | // must be administrator |
| | |
| | | List<FloorDto> floorDtos = null; |
| | | |
| | | FloorDto floorDto = new FloorDto(); |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | floorDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | floorDtos = reportCommunityInnerServiceSMOImpl.queryCommunityFloorTree(floorDto); |
| | | JSONArray communitys = new JSONArray(); |
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.inspection.InspectionPlanDto; |
| | | import com.java110.intf.dev.IDictV1InnerServiceSMO; |
| | | import com.java110.intf.report.IReportCommunityInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | @Autowired |
| | | private IDictV1InnerServiceSMO dictV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | // must be administrator |
| | |
| | | |
| | | InspectionPlanDto inspectionPlanDto = new InspectionPlanDto(); |
| | | |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | inspectionPlanDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | inspectionPlanDtos = reportCommunityInnerServiceSMOImpl.queryCommunityInspectionTree(inspectionPlanDto); |
| | | JSONArray communitys = new JSONArray(); |
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.dto.org.OrgDto; |
| | | import com.java110.dto.unit.UnitDto; |
| | | import com.java110.intf.report.IReportCommunityInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | @Autowired |
| | | private IReportCommunityInnerServiceSMO reportCommunityInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validateAdmin(context); |
| | |
| | | |
| | | MachineTypeDto machineTypeDto = new MachineTypeDto(); |
| | | |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | machineTypeDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | |
| | | machineTypeDtos = reportCommunityInnerServiceSMOImpl.queryCommunityMachineTypeTree(machineTypeDto); |
| | | JSONArray communitys = new JSONArray(); |
| | | if (ListUtil.isNull(machineTypeDtos)) { |
| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.dto.repair.RepairSettingDto; |
| | | import com.java110.intf.dev.IDictV1InnerServiceSMO; |
| | | import com.java110.intf.report.IReportCommunityInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | @Autowired |
| | | private IDictV1InnerServiceSMO dictV1InnerServiceSMOImpl; |
| | | |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | // must be administrator |
| | |
| | | List<RepairSettingDto> repairSettingDtos = null; |
| | | |
| | | RepairSettingDto repairSettingDto = new RepairSettingDto(); |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | repairSettingDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | repairSettingDtos = reportCommunityInnerServiceSMOImpl.queryCommunityRepairTree(repairSettingDto); |
| | | JSONArray communitys = new JSONArray(); |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.dto.reportFee.ReportFeeMonthStatisticsDto; |
| | | import com.java110.intf.community.ICommunityV1InnerServiceSMO; |
| | | import com.java110.intf.report.IReportFeeMonthStatisticsInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.report.bmo.reportFeeMonthStatistics.impl.GetReportFeeMonthStatisticsBMOImpl; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | @Autowired |
| | | private ICommunityV1InnerServiceSMO communityV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validateAdmin(context); |
| | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto = BeanConvertUtil.covertBean(reqJson, ReportFeeMonthStatisticsDto.class); |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | reportFeeMonthStatisticsDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | int count = reportFeeMonthStatisticsInnerServiceSMOImpl.queryOweFeeDetailCount(reportFeeMonthStatisticsDto); |
| | | List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticsDtos = null; |
| | | if (count > 0) { |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.dto.reportFee.ReportFeeMonthStatisticsDto; |
| | | import com.java110.intf.report.IQueryPayFeeDetailInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.List; |
| | | |
| | | @Java110Cmd(serviceCode = "fee.queryAdminPayFeeDetail") |
| | | public class QueryAdminPayFeeDetailCmd extends Cmd { |
| | | @Autowired |
| | | private IQueryPayFeeDetailInnerServiceSMO queryPayFeeDetailInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException, ParseException { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | |
| | | reportFeeMonthStatisticsDto.setFeeYear(DateUtil.getYear() + ""); |
| | | reportFeeMonthStatisticsDto.setFeeMonth(DateUtil.getMonth() + ""); |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | reportFeeMonthStatisticsDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | |
| | | ResultVo resultVo = queryPayFeeDetailInnerServiceSMOImpl.query(reportFeeMonthStatisticsDto); |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.intf.store.IComplaintTypeUserV1InnerServiceSMO; |
| | | import com.java110.intf.store.IComplaintV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerV1InnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | @Autowired |
| | | private IComplaintTypeUserV1InnerServiceSMO complaintTypeUserV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext context, JSONObject reqJson) throws CmdException { |
| | | |
| | | ComplaintDto complaintDto = BeanConvertUtil.covertBean(reqJson, ComplaintDto.class); |
| | | String staffId = CmdContextUtils.getUserId(context); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | complaintDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | complaintDto.setStoreId(""); |
| | | int count = complaintV1InnerServiceSMOImpl.queryComplaintsCount(complaintDto); |
| | | List<ComplaintDto> complaintDtos = null; |
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.context.CmdContextUtils; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | |
| | | import com.java110.dto.privilege.BasePrivilegeDto; |
| | | import com.java110.intf.community.IMenuInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerAppUserInnerServiceSMO; |
| | | import com.java110.intf.user.IStaffCommunityV1InnerServiceSMO; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Autowired |
| | | private IMenuInnerServiceSMO menuInnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IStaffCommunityV1InnerServiceSMO staffCommunityV1InnerServiceSMOImpl; |
| | | |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | |
| | |
| | | @Override |
| | | public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException { |
| | | //获取当前用户id |
| | | String userId = reqJson.getString("userId"); |
| | | OwnerAppUserDto ownerAppUserDto = BeanConvertUtil.covertBean(reqJson, OwnerAppUserDto.class); |
| | | |
| | | String staffId = CmdContextUtils.getUserId(cmdDataFlowContext); |
| | | |
| | | List<String> communityIds = staffCommunityV1InnerServiceSMOImpl.queryStaffCommunityIds(staffId); |
| | | |
| | | if (!ListUtil.isNull(communityIds)) { |
| | | ownerAppUserDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()])); |
| | | } |
| | | |
| | | ownerAppUserDto.setUserId(reqJson.getString("systemUserId")); |
| | | int count = ownerAppUserInnerServiceSMOImpl.queryOwnerAppUsersCount(ownerAppUserDto); |
| | | int row = reqJson.getIntValue("row"); |