!312 消化系统管理问卷移除减脂经历

Merge pull request !312 from 德仔/xzj
This commit is contained in:
德仔 2021-07-08 09:48:21 +00:00 committed by Gitee
commit 001fc2c7d5
2 changed files with 9 additions and 5 deletions

View File

@ -83,6 +83,8 @@ public class WechatAppletController extends BaseController {
@RequestParam(value="randomFlag",required = false,defaultValue = "false") boolean randomFlag) {
if(randomFlag){
List<CustomerCaseResponse> reponseList = sysCustomerCaseService.getWxCustomerCaseByRandom(pageSize);
//处理ID加密
dealIdEnc(reponseList);
TableDataInfo rspData = new TableDataInfo();
rspData.setCode(HttpStatus.SUCCESS);
rspData.setMsg("查询成功");
@ -305,8 +307,10 @@ public class WechatAppletController extends BaseController {
* @return
*/
private void dealIdEnc(List<CustomerCaseResponse> list) {
for (CustomerCaseResponse cus : list) {
cus.setId(AesUtils.encrypt(cus.getId() + "", null));
if(list != null){
for (CustomerCaseResponse cus : list) {
cus.setId(AesUtils.encrypt(cus.getId() + "", null));
}
}
}

View File

@ -823,12 +823,12 @@ export function dealHealthy(customerHealthy) {
return customerHealthy;
}
export const extendHealthyTitle = {"0":"减脂","5":"降血压","6":"降血糖","3": "备孕营养", "1": "月经不调", "2": "多囊调理", "11":"心脑血管调理","13":"胃肠肿瘤调理","4":"产后调理","7":"高血脂"};
export const projectName = {"0":"减脂","5":"高血压","6":"高血糖","3": "备孕营养", "1":"月经不调", "2":"多囊卵巢综合症", "13":"胃肠肿瘤","4":"产后调理","7":"高血脂"};
export const extendHealthyTitle = {"0":"减脂","5":"降血压","6":"降血糖","3": "备孕营养", "1": "月经不调", "2": "多囊调理", "11":"心脑血管调理","13":"胃肠肿瘤调理","4":"产后调理","7":"高血脂","10":"消化系统管理"};
export const projectName = {"0":"减脂","5":"高血压","6":"高血糖","3": "备孕营养", "1":"月经不调", "2":"多囊卵巢综合症", "13":"胃肠肿瘤","4":"产后调理","7":"高血脂","10":"消化系统管理"};
//需要填写慢病调查问卷的项目
export const extendHealthyIndex = [5, 6, 1, 2, 13,4,7];
//跳过减脂经历问卷的项目
export const notExperienceIndex = [3,1,2,13,4,7];
export const notExperienceIndex = [3,1,2,13,4,7,10];
export function getTitleKey(projectId){
return extendHealthyTitle[projectId+""] != null ? extendHealthyTitle[projectId+""] : extendHealthyTitle["0"];