Merge remote-tracking branch 'origin/huacheng_test' into huacheng_test
| | |
| | | } |
| | | SysUser submitUser = iGuideRepairOrderService.getSubmitUser(order); |
| | | wxUtil.sendGuideRepairOrderComplete(submitUser.getOpenid(),accessToken,guideRepairOrderCompleteTemplateId,entity); |
| | | smsUtil.sendSmsCompleteNew(order.getConsultUserPhone(),order.getMatterName()); |
| | | } |
| | | else if (order.getSubmitType().equals(2)){ |
| | | smsUtil.sendSmsCompleteNew(order.getConsultUserPhone(),order.getMatterName()); |
| | |
| | | /** |
| | | * 根据所属地区查找部门 |
| | | */ |
| | | List<OrganizationChartEntity> selectByCode(@Param("id")String id, @Param("areaCode") String areaCode); |
| | | List<OrganizationChartEntity> selectByCode(@Param("id")String id, @Param("areaCode") String areaCode,@Param("grade") Integer grade); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | @Resource |
| | | private AreaCode2022Mapper areaCode2022Mapper; |
| | | |
| | | |
| | | @Resource |
| | | SmsUtil smsUtil; |
| | | |
| | | @Resource(name = "stringRedisTemplate") |
| | |
| | | } |
| | | } |
| | | if (isAdd) { |
| | | AreaCode2022 areaCode2022 = areaCode2022Mapper.selectOne(new QueryWrapper<AreaCode2022>().lambda().eq(AreaCode2022::getCode, guideRepairOrder.getAreaCode())); |
| | | Integer grade=2; |
| | | if (areaCode2022.getLevel()==2){ |
| | | grade=1; |
| | | } |
| | | //自动分配业务代码开始 |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectByCode(transactionEvent.getDepartmentId(), guideRepairOrder.getAreaCode()); |
| | | List<OrganizationChartEntity> organizationChartEntities = organizationChartMapper.selectByCode(transactionEvent.getDepartmentId(), guideRepairOrder.getAreaCode(),grade); |
| | | if (organizationChartEntities.size() > 0) { |
| | | for (OrganizationChartEntity organizationChart : organizationChartEntities) { |
| | | departmentIds.add(organizationChart.getId().toString()); |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.time.LocalDateTime; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.Random; |
| | |
| | | String url = |
| | | "https://dxsdk.028lk.com:8082/Api/SendSms?"+"LoginName="+LoginName+"&Pwd="+Pwd+"&FeeType="+FeeType+"&Mobile="+tel+"&Content="; |
| | | Random rd = new Random(); |
| | | String content="您有新的导办工单,请"+name+"尽快处理。"; |
| | | String content="您在"+ LocalDateTime.now() +"新的导办工单,请"+name+"尽快处理。"; |
| | | url=url+content; |
| | | OkHttpClient client = new OkHttpClient(); |
| | | Response response; |
| | |
| | | <select id="selectByCode" resultMap="OrganizationChartResult"> |
| | | <include refid="selectOrganizationChartVo"/> |
| | | <where> |
| | | ( id=#{id} or parent_id=#{id}) and (city=#{areaCode} or district= #{areaCode} or village=#{areaCode}) |
| | | ( id=#{id} or parent_id=#{id}) and (city=#{areaCode} or district= #{areaCode} or village=#{areaCode}) and grade=#{grade} |
| | | </where> |
| | | order by grade |
| | | </select> |
| | | |
| | | <insert id="insertConfig" parameterType="com.dg.core.db.gen.entity.OrganizationChartEntity"> |
| | |
| | | @ApiOperation(value = "随手拍详情", response = ComActEasyPhotoVO.class) |
| | | @GetMapping("easyphoto") |
| | | public R detailEasyPhoto(@RequestParam("id") Long id) { |
| | | Long userId = this.getUserId(); |
| | | return communityService.detailEasyPhoto(id, userId); |
| | | // Long userId = this.getUserId(); |
| | | return communityService.detailEasyPhoto(id, 0L); |
| | | } |
| | | } |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.text.DecimalFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | |
| | | if (R.isOk(sysUserVOR)) { |
| | | SysUserVO sysUserVO = JSONObject.parseObject(JSONObject.toJSONString(sysUserVOR.getData()), SysUserVO.class); |
| | | try { |
| | | DecimalFormat df = new DecimalFormat("#.00"); |
| | | WxUtil.sendNewOrderNotice(sysUserVO.getOpenid(),maService.getAccessToken(),shopOrderDO.getOrderNo(), |
| | | shopOrderDO.getDeliveryType()==1?"拼单订单":"快递订单",orderGoodsList.get(0).getGoodsName(), |
| | | shopOrderDO.getTotalAmount().toString(),DateUtil.format(shopOrderDO.getCreateAt(),"yyyy-MM-dd HH:mm")); |
| | | df.format(shopOrderDO.getTotalAmount()), |
| | | DateUtil.format(shopOrderDO.getCreateAt(),"yyyy-MM-dd HH:mm")); |
| | | } catch (WxErrorException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.DecimalFormat; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | if (R.isOk(sysUserVOR)) { |
| | | SysUserVO sysUserVO = JSONObject.parseObject(JSONObject.toJSONString(sysUserVOR.getData()), SysUserVO.class); |
| | | try { |
| | | WxUtil.sendNewRefundOrderNotice(sysUserVO.getOpenid(),maService.getAccessToken(),refundOrderNo,comShopFlowerRefundOrderDO.getRefundAmount().toString(),DateUtil.format(comShopFlowerRefundOrderDO.getRefundTime(),"yyyy-MM-dd HH:mm")); |
| | | DecimalFormat df = new DecimalFormat("#.00"); |
| | | WxUtil.sendNewRefundOrderNotice(sysUserVO.getOpenid(),maService.getAccessToken(),refundOrderNo,df.format(comShopFlowerRefundOrderDO.getRefundAmount()),DateUtil.format(comShopFlowerRefundOrderDO.getRefundTime(),"yyyy-MM-dd HH:mm")); |
| | | } catch (WxErrorException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | if (R.isOk(userOpenId)) { |
| | | String openid = userOpenId.getData().toString(); |
| | | try { |
| | | WxUtil.sendRefundNotice(openid,maService.getAccessToken(),comShopFlowerRefundOrderDO.getRefundOrderNo(),comShopFlowerRefundOrderDO.getRefundAmount().toString(),msg); |
| | | DecimalFormat df = new DecimalFormat("#.00"); |
| | | WxUtil.sendRefundNotice(openid,maService.getAccessToken(),comShopFlowerRefundOrderDO.getRefundOrderNo(),df.format(comShopFlowerRefundOrderDO.getRefundAmount()),msg); |
| | | } catch (WxErrorException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | if (isNull(convenientMerchantDO)) { |
| | | return R.fail("商家不存在"); |
| | | } |
| | | Long createBy = convenientMerchantDO.getCreatedBy(); |
| | | BeanUtils.copyProperties(convenientMerchantDTO, convenientMerchantDO); |
| | | if (nonNull(merchantDO) && !merchantDO.getId().equals(convenientMerchantDO.getId())) { |
| | | R.fail("该微信手机号:" + mobilePhone + "已被使用!请更换"); |
| | |
| | | serviceIds.forEach(serviceId -> { |
| | | ConvenientServiceCategoryDO convenientServiceCategoryDO = convenientServiceCategoryDAO.selectById(serviceId); |
| | | convenientServiceCategoryDAO.createMerchantServiceRelation(Snowflake.getId(), merchantId, serviceId, |
| | | convenientServiceCategoryDO.getName(), convenientMerchantDTO.getCreatedBy()); |
| | | convenientServiceCategoryDO.getName(), createBy); |
| | | }); |
| | | } |
| | | |
| | |
| | | from com_shop_flower_goods as csg |
| | | left join com_convenient_merchants as css on css.id = csg.store_id |
| | | left join com_convenient_goods_scope as cgs on cgs.goods_id = csg.id |
| | | where 1=1 and csg.delete_status = 1 and |
| | | css.`business_status` = 1 |
| | | where 1=1 and csg.delete_status = 1 |
| | | |
| | | <if test='comShopFlowerGoodsDTO.name != null and comShopFlowerGoodsDTO.name !=""'> |
| | | AND csg.`name` like concat('%',#{comShopFlowerGoodsDTO.name},'%') |
| | | </if> |
| | | <if test='comShopFlowerGoodsDTO.status != null '>AND csg.`status` = #{comShopFlowerGoodsDTO.status}</if> |
| | | <if test='comShopFlowerGoodsDTO.storeId != null '>AND csg.store_id = #{comShopFlowerGoodsDTO.storeId}</if> |
| | | <if test='comShopFlowerGoodsDTO.storeId == null '> |
| | | and css.`business_status` = 1 |
| | | </if> |
| | | <if test='comShopFlowerGoodsDTO.deliveryType != null '>AND csg.delivery_type like concat('%',#{comShopFlowerGoodsDTO.deliveryType},'%') </if> |
| | | <if test='comShopFlowerGoodsDTO.categoriesId != null '>AND cgs.goods_category_id = #{comShopFlowerGoodsDTO.categoriesId}</if> |
| | | order by sale desc,create_at desc |