|
@@ -21,7 +21,6 @@ import com.fs.his.service.IFsDoctorPatientService;
|
|
|
import com.fs.his.service.IFsPrescribeService;
|
|
import com.fs.his.service.IFsPrescribeService;
|
|
|
import com.fs.hisStore.param.FsCompanyCustomerOrderParam;
|
|
import com.fs.hisStore.param.FsCompanyCustomerOrderParam;
|
|
|
import com.fs.hisStore.service.IFsUserInformationCollectionService;
|
|
import com.fs.hisStore.service.IFsUserInformationCollectionService;
|
|
|
-import com.fs.hisStore.service.impl.FsUserInformationCollectionServiceImpl;
|
|
|
|
|
import com.fs.hisStore.vo.FsStoreOrderVO;
|
|
import com.fs.hisStore.vo.FsStoreOrderVO;
|
|
|
import com.fs.hisStore.vo.FsUserInformationCollectionOverviewVo;
|
|
import com.fs.hisStore.vo.FsUserInformationCollectionOverviewVo;
|
|
|
import com.fs.qw.domain.FsCompanyCustomer;
|
|
import com.fs.qw.domain.FsCompanyCustomer;
|
|
@@ -305,11 +304,25 @@ public class FsCompanyCustomerController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 生成制单二维码
|
|
|
|
|
|
|
+ * 增加客户购买次数
|
|
|
|
|
+ * */
|
|
|
|
|
+ @PostMapping("/addBuyTimes")
|
|
|
|
|
+ public AjaxResult addBuyTimes(@RequestBody FsCompanyCustomer fsCompanyCustomer){
|
|
|
|
|
+ LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
|
|
+ Long companyUserId = loginUser.getUser().getUserId();
|
|
|
|
|
+ if (companyUserId == null){
|
|
|
|
|
+ throw new CustomException("登录信息已过期,请重新登录");
|
|
|
|
|
+ }
|
|
|
|
|
+ int result=fsCompanyCustomerService.addBuyTimes(fsCompanyCustomer.getId());
|
|
|
|
|
+ return toAjax( result);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 生成客户信息表制单二维码
|
|
|
* */
|
|
* */
|
|
|
@GetMapping("/getQRCode/{orderId}")
|
|
@GetMapping("/getQRCode/{orderId}")
|
|
|
public R getQRCode(@PathVariable("orderId") Long orderId){
|
|
public R getQRCode(@PathVariable("orderId") Long orderId){
|
|
|
- //TODO 后续从配置获取
|
|
|
|
|
|
|
+ //TODO appId后续从配置获取
|
|
|
String appId="wx50bcb040b4963a7e";
|
|
String appId="wx50bcb040b4963a7e";
|
|
|
return informationCollectionService.getCustomerGenerateQRCode(orderId,appId);
|
|
return informationCollectionService.getCustomerGenerateQRCode(orderId,appId);
|
|
|
}
|
|
}
|