Merge remote-tracking branch 'origin/xinghong-dev'
| | |
| | | |
| | | private String ruleId; |
| | | |
| | | //映射关系值 |
| | | private String value; |
| | | |
| | | private List<FeeDiscountSpecDto> feeDiscountSpecs; |
| | | |
| | | private double discountPrice; |
| | |
| | | public void setDiscountName(String discountName) { |
| | | this.discountName = discountName; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | } |
| | |
| | | private String receiptId; |
| | | private String objType; |
| | | |
| | | //商户名称 |
| | | private String storeName; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | |
| | | public String getStoreName() { |
| | | return storeName; |
| | | } |
| | | |
| | | public void setStoreName(String storeName) { |
| | | this.storeName = storeName; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.dto.store; |
| | | |
| | | import com.java110.dto.PageDto; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 员工商户封装 |
| | | * |
| | | * @author fqz |
| | | * @date 2020-12-08 19:39 |
| | | */ |
| | | public class StoreUserDto extends PageDto implements Serializable { |
| | | |
| | | //商户id |
| | | private String storeId; |
| | | |
| | | //业务id |
| | | private String bId; |
| | | |
| | | //用户id |
| | | private String userId; |
| | | |
| | | //商户名称 |
| | | private String name; |
| | | |
| | | //商户地址 |
| | | private String address; |
| | | |
| | | //商户电话 |
| | | private String tel; |
| | | |
| | | private String storeTypeCd; |
| | | |
| | | //地标 |
| | | private String nearbyLandmarks; |
| | | |
| | | //地区 x坐标地区 x坐标 |
| | | private String mapX; |
| | | |
| | | //地区 y坐标 |
| | | private String mapY; |
| | | |
| | | //数据状态 |
| | | private String statusCd; |
| | | |
| | | //代理商用户id |
| | | private String storeUserId; |
| | | |
| | | //用户和代理商关系 |
| | | private String relCd; |
| | | |
| | | //创建时间 |
| | | private Date createTime; |
| | | |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | |
| | | public String getbId() { |
| | | return bId; |
| | | } |
| | | |
| | | public void setbId(String bId) { |
| | | this.bId = bId; |
| | | } |
| | | |
| | | public String getUserId() { |
| | | return userId; |
| | | } |
| | | |
| | | public void setUserId(String userId) { |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getAddress() { |
| | | return address; |
| | | } |
| | | |
| | | public void setAddress(String address) { |
| | | this.address = address; |
| | | } |
| | | |
| | | public String getTel() { |
| | | return tel; |
| | | } |
| | | |
| | | public void setTel(String tel) { |
| | | this.tel = tel; |
| | | } |
| | | |
| | | public String getStoreTypeCd() { |
| | | return storeTypeCd; |
| | | } |
| | | |
| | | public void setStoreTypeCd(String storeTypeCd) { |
| | | this.storeTypeCd = storeTypeCd; |
| | | } |
| | | |
| | | public String getNearbyLandmarks() { |
| | | return nearbyLandmarks; |
| | | } |
| | | |
| | | public void setNearbyLandmarks(String nearbyLandmarks) { |
| | | this.nearbyLandmarks = nearbyLandmarks; |
| | | } |
| | | |
| | | public String getMapX() { |
| | | return mapX; |
| | | } |
| | | |
| | | public void setMapX(String mapX) { |
| | | this.mapX = mapX; |
| | | } |
| | | |
| | | public String getMapY() { |
| | | return mapY; |
| | | } |
| | | |
| | | public void setMapY(String mapY) { |
| | | this.mapY = mapY; |
| | | } |
| | | |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | |
| | | public String getStoreUserId() { |
| | | return storeUserId; |
| | | } |
| | | |
| | | public void setStoreUserId(String storeUserId) { |
| | | this.storeUserId = storeUserId; |
| | | } |
| | | |
| | | public String getRelCd() { |
| | | return relCd; |
| | | } |
| | | |
| | | public void setRelCd(String relCd) { |
| | | this.relCd = relCd; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Date createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | } |
| | |
| | | <!-- 查询商户属性信息 add by wuxw 2018-07-03 --> |
| | | <select id="getStoreAttrs" parameterType="Map" resultType="Map"> |
| | | select |
| | | sa.b_id,sa.attr_id,sa.attr_id attrId, |
| | | sa.store_id, sa.store_id storeId,sa.spec_cd,sa.spec_cd specCd,sa.value,sa.status_cd, |
| | | c.name |
| | | sa.b_id,sa.attr_id,sa.attr_id attrId, |
| | | sa.store_id, sa.store_id storeId,sa.spec_cd,sa.spec_cd specCd,sa.value,sa.status_cd, |
| | | c.name |
| | | from s_store_attr sa inner join spec c on sa.spec_cd = c.spec_cd |
| | | where |
| | | 1=1 |
| | |
| | | <!-- 查询商户 --> |
| | | <select id="getStores" parameterType="Map" resultType="Map"> |
| | | select |
| | | s.store_id, |
| | | s.b_id, |
| | | s.user_id, |
| | | s.name,s.name storeName, |
| | | s.address, |
| | | s.tel, |
| | | s.store_id storeId, |
| | | s.store_type_cd,s.store_type_cd storeTypeCd, |
| | | s.nearby_landmarks,s.nearby_landmarks nearByLandmarks, |
| | | s.map_x,s.map_x mapX, |
| | | s.map_y,s.map_y mapY, |
| | | s.status_cd, |
| | | st.name storeTypeName |
| | | s.store_id, |
| | | s.b_id, |
| | | s.user_id, |
| | | s.name,s.name storeName, |
| | | s.address, |
| | | s.tel, |
| | | s.store_id storeId, |
| | | s.store_type_cd,s.store_type_cd storeTypeCd, |
| | | s.nearby_landmarks,s.nearby_landmarks nearByLandmarks, |
| | | s.map_x,s.map_x mapX, |
| | | s.map_y,s.map_y mapY, |
| | | s.status_cd, |
| | | st.name storeTypeName |
| | | from s_store s,store_type st |
| | | where s.status_cd = '0' |
| | | and s.store_type_cd = st.store_type_cd |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询员工和商户信息--> |
| | | <select id="getStoreUserInfo" parameterType="Map" resultType="Map"> |
| | | select s.store_id,s.b_id,s.user_id,s.name,s.address,s.tel,s.store_type_cd, |
| | | s.nearby_landmarks,s.map_x,s.map_y,s.create_time,su.store_user_id,su.rel_cd |
| | | from s_store s left join s_store_user su on s.store_id=su.store_id |
| | | <where> |
| | | s.status_cd = "0" and su.status_cd = "0" |
| | | <if test="userId != null and userId != ''"> |
| | | and su.user_id = #{userId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.store.StoreAttrDto; |
| | | import com.java110.dto.store.StoreDto; |
| | | import com.java110.dto.store.StoreUserDto; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | @RequestMapping(value = "/getStoreCount", method = RequestMethod.POST) |
| | | public int getStoreCount(@RequestBody StoreDto storeDto); |
| | | |
| | | /** |
| | | * 查询员工和员工所属商户信息 |
| | | * |
| | | * @param storeUserDto |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/getStoreUserInfo", method = RequestMethod.POST) |
| | | public List<StoreUserDto> getStoreUserInfo(@RequestBody StoreUserDto storeUserDto); |
| | | } |
| | |
| | | import com.java110.dto.feeReceipt.FeeReceiptDto; |
| | | import com.java110.dto.feeReceipt.FeeReceiptDtoNew; |
| | | import com.java110.dto.feeReceiptDetail.FeeReceiptDetailDto; |
| | | import com.java110.dto.store.StoreUserDto; |
| | | import com.java110.fee.bmo.feeReceipt.IDeleteFeeReceiptBMO; |
| | | import com.java110.fee.bmo.feeReceipt.IGetFeeReceiptBMO; |
| | | import com.java110.fee.bmo.feeReceipt.ISaveFeeReceiptBMO; |
| | |
| | | import com.java110.fee.bmo.feeReceiptDetail.IGetFeeReceiptDetailBMO; |
| | | import com.java110.fee.bmo.feeReceiptDetail.ISaveFeeReceiptDetailBMO; |
| | | import com.java110.fee.bmo.feeReceiptDetail.IUpdateFeeReceiptDetailBMO; |
| | | import com.java110.intf.store.IStoreInnerServiceSMO; |
| | | import com.java110.po.feeReceipt.FeeReceiptPo; |
| | | import com.java110.po.feeReceiptDetail.FeeReceiptDetailPo; |
| | | import com.java110.utils.util.Assert; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/feeReceipt") |
| | |
| | | |
| | | @Autowired |
| | | private IGetFeeReceiptDetailBMO getFeeReceiptDetailBMOImpl; |
| | | |
| | | @Autowired |
| | | private IStoreInnerServiceSMO storeInnerServiceSMO; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryFeeReceipt", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryFeeReceipt(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "objType",required = false) String objType, |
| | | @RequestParam(value = "roomId",required = false) String roomId, |
| | | @RequestParam(value = "receiptId",required = false) String receiptId, |
| | | @RequestParam(value = "objType", required = false) String objType, |
| | | @RequestParam(value = "roomId", required = false) String roomId, |
| | | @RequestParam(value = "receiptId", required = false) String receiptId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | @RequestParam(value = "row") int row, |
| | | @RequestHeader(value = "user_id") String userId) { |
| | | //获取商户名称 |
| | | StoreUserDto storeUserDto = new StoreUserDto(); |
| | | storeUserDto.setUserId(userId); |
| | | List<StoreUserDto> storeUserDtos = storeInnerServiceSMO.getStoreUserInfo(storeUserDto); |
| | | String storeName = ""; |
| | | for (StoreUserDto storeUser : storeUserDtos) { |
| | | storeName = storeUser.getName(); |
| | | } |
| | | FeeReceiptDto feeReceiptDto = new FeeReceiptDto(); |
| | | feeReceiptDto.setPage(page); |
| | | feeReceiptDto.setRow(row); |
| | |
| | | feeReceiptDto.setReceiptId(receiptId); |
| | | feeReceiptDto.setObjType(objType); |
| | | feeReceiptDto.setObjName(roomId); |
| | | feeReceiptDto.setStoreName(storeName); |
| | | return getFeeReceiptBMOImpl.get(feeReceiptDto); |
| | | } |
| | | |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryFeeReceiptNew", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryFeeReceiptNew(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "objType",required = false) String objType, |
| | | @RequestParam(value = "roomName",required = false) String roomName, |
| | | @RequestParam(value = "type",required = false) String type, |
| | | @RequestParam(value = "qstartTime",required = false) String qstartTime, |
| | | @RequestParam(value = "qendTime",required = false) String qendTime, |
| | | @RequestParam(value = "objType", required = false) String objType, |
| | | @RequestParam(value = "roomName", required = false) String roomName, |
| | | @RequestParam(value = "type", required = false) String type, |
| | | @RequestParam(value = "qstartTime", required = false) String qstartTime, |
| | | @RequestParam(value = "qendTime", required = false) String qendTime, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row |
| | | ) { |
| | | @RequestParam(value = "row") int row) { |
| | | FeeReceiptDtoNew feeReceiptDto = new FeeReceiptDtoNew(); |
| | | feeReceiptDto.setPage(page); |
| | | feeReceiptDto.setRow(row); |
| | |
| | | feeReceiptDto.setQstartTime(qstartTime); |
| | | feeReceiptDto.setQendTime(qendTime); |
| | | feeReceiptDto.setObjType(objType); |
| | | feeReceiptDto.setObjName(roomName ); |
| | | feeReceiptDto.setObjName(roomName); |
| | | return getFeeReceiptBMOImpl.gets(feeReceiptDto); |
| | | } |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryFeeReceiptDetail", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryFeeReceiptDetail(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "receiptId",required = false) String receiptId, |
| | | @RequestParam(value = "receiptId", required = false) String receiptId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | FeeReceiptDetailDto feeReceiptDetailDto = new FeeReceiptDetailDto(); |
| | |
| | | package com.java110.fee.bmo.feeDiscountRuleSpec; |
| | | import com.java110.dto.feeDiscountRuleSpec.FeeDiscountRuleSpecDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IComputeFeeDiscountBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询折扣规则配置 |
| | | * add by wuxw |
| | | * |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> compute(String feeId,String communityId,double cycles,int page,int row ); |
| | | |
| | | ResponseEntity<String> compute(String feeId, String communityId, double cycles, int page, int row); |
| | | |
| | | } |
| | |
| | | int count = feeReceiptInnerServiceSMOImpl.queryFeeReceiptsCount(feeReceiptDto); |
| | | |
| | | List<FeeReceiptDto> feeReceiptDtos = null; |
| | | List<FeeReceiptDto> feeReceiptList = new ArrayList<>(); |
| | | if (count > 0) { |
| | | feeReceiptDtos = feeReceiptInnerServiceSMOImpl.queryFeeReceipts(feeReceiptDto); |
| | | for (FeeReceiptDto feeReceipt : feeReceiptDtos) { |
| | | feeReceipt.setStoreName(feeReceiptDto.getStoreName()); |
| | | feeReceiptList.add(feeReceipt); |
| | | } |
| | | } else { |
| | | feeReceiptDtos = new ArrayList<>(); |
| | | feeReceiptList.addAll(feeReceiptDtos); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeReceiptDto.getRow()), count, feeReceiptDtos); |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) feeReceiptDto.getRow()), count, feeReceiptList); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | |
| | | import com.java110.intf.fee.IFeeInnerServiceSMO; |
| | | import com.java110.intf.fee.IPayFeeConfigDiscountInnerServiceSMO; |
| | | import com.java110.po.feeDiscount.FeeDiscountPo; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.factory.ApplicationContextFactory; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | |
| | | @Autowired |
| | | private IFeeDiscountSpecInnerServiceSMO feeDiscountSpecInnerServiceSMOImpl; |
| | | |
| | | //域 |
| | | public static final String DOMAIN_COMMON = "DOMAIN.COMMON"; |
| | | |
| | | //键 |
| | | public static final String DISCOUNT_MODE = "DISCOUNT_MODE"; |
| | | |
| | | |
| | | @Override |
| | |
| | | for (PayFeeConfigDiscountDto tmpPayFeeConfigDiscountDto : payFeeConfigDiscountDtos) { |
| | | doCompute(tmpPayFeeConfigDiscountDto, Double.parseDouble(feeDetailDto.getCycles()), computeDiscountDtos, feeDetailDto.getFeeId()); |
| | | } |
| | | return computeDiscountDtos; |
| | | |
| | | //取出开关映射的值 |
| | | String value = MappingCache.getValue(DOMAIN_COMMON, DISCOUNT_MODE); |
| | | |
| | | List<ComputeDiscountDto> computeDiscountDtoList = new ArrayList<>(); |
| | | for (ComputeDiscountDto computeDiscountDto : computeDiscountDtos) { |
| | | computeDiscountDto.setValue(value); |
| | | computeDiscountDtoList.add(computeDiscountDto); |
| | | } |
| | | |
| | | return computeDiscountDtoList; |
| | | |
| | | } |
| | | |
| | |
| | | package com.java110.store.dao; |
| | | |
| | | |
| | | import com.java110.utils.exception.DAOException; |
| | | |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * 商户组件内部之间使用,没有给外围系统提供服务能力 |
| | | * 商户服务接口类,要求全部以字符串传输,方便微服务化 |
| | | * 新建客户,修改客户,删除客户,查询客户等功能 |
| | | * |
| | | * <p> |
| | | * Created by wuxw on 2016/12/27. |
| | | */ |
| | | public interface IStoreServiceDao { |
| | | |
| | | /** |
| | | * 保存 商户信息 |
| | | * |
| | | * @param businessStoreInfo 商户信息 封装 |
| | | * @throws DAOException 操作数据库异常 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 保存商户属性 |
| | | * |
| | | * @param businessStoreAttr 商户属性信息封装 |
| | | * @throws DAOException 操作数据库异常 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 保存商户照片信息 |
| | | * |
| | | * @param businessStorePhoto 商户照片 |
| | | * @throws DAOException 操作数据库异常 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 保存商户证件信息 |
| | | * |
| | | * @param businessStoreCerdentials 商户证件 |
| | | * @throws DAOException 操作数据库异常 |
| | | */ |
| | |
| | | /** |
| | | * 查询商户信息(business过程) |
| | | * 根据bId 查询商户信息 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户信息 |
| | | * @throws DAOException |
| | | */ |
| | | public Map getBusinessStoreInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询商户属性信息(business过程) |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户属性 |
| | | * @throws DAOException |
| | | */ |
| | | public List<Map> getBusinessStoreAttrs(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询商户照片 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户照片 |
| | | * @throws DAOException |
| | | */ |
| | | public List<Map> getBusinessStorePhoto(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询商户证件信息 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户照片 |
| | | * @throws DAOException |
| | |
| | | |
| | | /** |
| | | * 保存 商户信息 Business数据到 Instance中 |
| | | * |
| | | * @param info |
| | | * @throws DAOException |
| | | */ |
| | | public void saveStoreInfoInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 保存 商户属性信息 Business数据到 Instance中 |
| | | * |
| | | * @param info |
| | | * @throws DAOException |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 保存 商户照片信息 Business数据到 Instance中 |
| | | * |
| | | * @param info |
| | | * @throws DAOException |
| | | */ |
| | | public void saveStorePhotoInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 保存 商户证件信息 Business数据到 Instance中 |
| | | * |
| | | * @param info |
| | | * @throws DAOException |
| | | */ |
| | | public void saveStoreCerdentialsInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询商户信息(instance过程) |
| | | * 根据bId 查询商户信息 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户信息 |
| | | * @throws DAOException |
| | | */ |
| | | public Map getStoreInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询商户属性信息(instance过程) |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户属性 |
| | | * @throws DAOException |
| | | */ |
| | | public List<Map> getStoreAttrs(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询商户照片(instance 过程) |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户照片 |
| | | * @throws DAOException |
| | |
| | | |
| | | /** |
| | | * 查询商户证件信息(instance 过程) |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户照片 |
| | | * @throws DAOException |
| | |
| | | |
| | | /** |
| | | * 修改商户信息 |
| | | * |
| | | * @param info 修改信息 |
| | | * @throws DAOException |
| | | */ |
| | | public void updateStoreInfoInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 修改商户属性信息 |
| | | * |
| | | * @param info 修改信息 |
| | | * @throws DAOException |
| | | */ |
| | | public void updateStoreAttrInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 修改商户照片信息 |
| | | * |
| | | * @param info 修改信息 |
| | | * @throws DAOException |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 修改商户证件信息 |
| | | * |
| | | * @param info 修改信息 |
| | | * @throws DAOException |
| | | */ |
| | | public void updateStoreCerdentailsInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 商户成员加入信息 |
| | | * |
| | | * @param businessMemberStore 商户成员信息 封装 |
| | | * @throws DAOException 操作数据库异常 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 成员加入 保存信息至instance |
| | | * |
| | | * @param info |
| | | * @throws DAOException |
| | | */ |
| | |
| | | /** |
| | | * 查询商户成员加入信息(business过程) |
| | | * 根据bId 查询商户信息 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户信息 |
| | | * @throws DAOException |
| | |
| | | /** |
| | | * 查询商户成员加入信息(instance过程) |
| | | * 根据bId 查询商户信息 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户信息 |
| | | * @throws DAOException |
| | |
| | | |
| | | /** |
| | | * 修改商户成员加入信息 |
| | | * |
| | | * @param info 修改信息 |
| | | * @throws DAOException |
| | | */ |
| | | public void updateMemberStoreInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 保存商户用户信息 |
| | | * |
| | | * @param info |
| | | * @throws DAOException |
| | | */ |
| | | public void saveBusinessStoreUser(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询物业用户信息 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 物业照片 |
| | | * @throws DAOException |
| | | */ |
| | | public List<Map> getBusinessStoreUser(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 保存 物业用户信息 Business数据到 Instance中 |
| | | * |
| | | * @param info |
| | | * @throws DAOException |
| | | */ |
| | | public void saveStoreUserInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询物业用户信息(instance 过程) |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 物业照片 |
| | | * @throws DAOException |
| | | */ |
| | | public List<Map> getStoreUser(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 修改物业用户信息 |
| | | * |
| | | * @param info 修改信息 |
| | | * @throws DAOException |
| | | */ |
| | | public void updateStoreUserInstance(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询商户信息(instance过程) |
| | | * 根据bId 查询商户信息 |
| | | * |
| | | * @param info bId 信息 |
| | | * @return 商户信息 |
| | | * @throws DAOException |
| | |
| | | |
| | | public int getStoreCount(Map info) throws DAOException; |
| | | |
| | | /** |
| | | * 查询员工和员工所属商户信息 |
| | | * |
| | | * @param info |
| | | * @return |
| | | * @throws DAOException |
| | | */ |
| | | public List<Map> getStoreUserInfo(Map info) throws DAOException; |
| | | |
| | | } |
| | |
| | | } |
| | | return Integer.parseInt(stores.get(0).get("count").toString()); |
| | | } |
| | | |
| | | /** |
| | | * 查询员工和商户信息表 |
| | | * |
| | | * @param info |
| | | * @return |
| | | * @throws DAOException |
| | | */ |
| | | @Override |
| | | public List<Map> getStoreUserInfo(Map info) throws DAOException { |
| | | List<Map> storeUserInfos = sqlSessionTemplate.selectList("storeServiceDaoImpl.getStoreUserInfo", info); |
| | | return storeUserInfos; |
| | | } |
| | | } |
| | |
| | | package com.java110.store.smo.impl; |
| | | |
| | | import com.java110.dto.store.StoreAttrDto; |
| | | import com.java110.dto.store.StoreUserDto; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.intf.store.IStoreInnerServiceSMO; |
| | |
| | | * add by wuxw 2019/9/20 |
| | | **/ |
| | | @RestController |
| | | public class StoreInnerServiceSMOImpl extends BaseServiceSMO implements IStoreInnerServiceSMO { |
| | | public class StoreInnerServiceSMOImpl extends BaseServiceSMO implements IStoreInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IStoreServiceDao storeServiceDaoImpl; |
| | |
| | | return storeDtos; |
| | | } |
| | | |
| | | public List<StoreAttrDto> getStoreAttrs(@RequestBody StoreAttrDto storeAttrDto){ |
| | | public List<StoreAttrDto> getStoreAttrs(@RequestBody StoreAttrDto storeAttrDto) { |
| | | List<StoreAttrDto> storeAttrDtos = BeanConvertUtil.covertBeanList(storeServiceDaoImpl.getStoreAttrs(BeanConvertUtil.beanCovertMap(storeAttrDto)), StoreAttrDto.class); |
| | | return storeAttrDtos; |
| | | } |
| | | |
| | | |
| | | public int getStoreCount(@RequestBody StoreDto storeDto){ |
| | | public int getStoreCount(@RequestBody StoreDto storeDto) { |
| | | return storeServiceDaoImpl.getStoreCount(BeanConvertUtil.beanCovertMap(storeDto)); |
| | | } |
| | | |
| | | /** |
| | | * 查询员工和员工所属商户信息 |
| | | * |
| | | * @param storeUserDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<StoreUserDto> getStoreUserInfo(@RequestBody StoreUserDto storeUserDto) { |
| | | List<StoreUserDto> storeUserInfos = BeanConvertUtil.covertBeanList(storeServiceDaoImpl.getStoreUserInfo(BeanConvertUtil.beanCovertMap(storeUserDto)), StoreUserDto.class); |
| | | return storeUserInfos; |
| | | } |
| | | |
| | | |
| | | public IStoreServiceDao getStoreServiceDaoImpl() { |
| | | return storeServiceDaoImpl; |