Commit a22c9354 authored by 谢希宇's avatar 谢希宇

update by strive

parent 72f5fc94
...@@ -181,7 +181,6 @@ ...@@ -181,7 +181,6 @@
<select id="isThree" name="isThree" class="form-control required"> <select id="isThree" name="isThree" class="form-control required">
<option value="">请选择患者类型</option> <option value="">请选择患者类型</option>
<option value="3">三期患者</option> <option value="3">三期患者</option>
<option value="4">四期患者</option>
</select> </select>
</div> </div>
<div class="col-xs-2"> <div class="col-xs-2">
...@@ -455,15 +454,15 @@ ...@@ -455,15 +454,15 @@
"mRender": function(a, b, c, d){ "mRender": function(a, b, c, d){
if ((c.status == 4 || c.status == 3 || c.status == 2) && c.confirm == null){ if ((c.status == 4 || c.status == 3 || c.status == 2) && c.confirm == null){
//是否超过7天 0标识超过7天 //是否超过7天 0标识超过7天
if( c.isExceedSevenDay == '0'){ //if( c.isExceedSevenDay == '0' && c.isThree != '1'){
if(isCheckedQyCode.indexOf(a+"")!=-1){ if(isCheckedQyCode.indexOf(a+"")!=-1){
return '<input class="isExport" checked value="'+a+'" type="checkBox">'; return '<input class="isExport" checked value="'+a+'" type="checkBox">';
}else{ }else{
return '<input class="isExport" value="'+a+'" type="checkBox">'; return '<input class="isExport" value="'+a+'" type="checkBox">';
} }
}else{ //}else{
return ""; return "";
} //}
}else{ }else{
return ""; return "";
} }
......
...@@ -277,23 +277,20 @@ public class OrderController { ...@@ -277,23 +277,20 @@ public class OrderController {
if (StringUtils.isNoneBlank(order.getCourierNumber())) { if (StringUtils.isNoneBlank(order.getCourierNumber())) {
conds.like("o.courier_number", order.getCourierNumber()); conds.like("o.courier_number", order.getCourierNumber());
} }
//别名 //别名
if (StringUtils.isNoneBlank(order.getFansAlias())) { if (StringUtils.isNoneBlank(order.getFansAlias())) {
conds.like("f.store", order.getFansAlias()); conds.like("f.store", order.getFansAlias());
} }
//订单状态
if (StringUtils.equals("", order.getStatus())) { if (StringUtils.equals("", order.getStatus())) {
conds.in("o.status", new String[]{"0", "1"}); conds.in("o.status", new String[]{"0", "1"});
} else if (StringUtils.isNoneBlank(order.getStatus()) && !StringUtils.equals(order.getStatus(), "all")) { } else if (StringUtils.isNoneBlank(order.getStatus()) && !StringUtils.equals(order.getStatus(), "all")) {
conds.equal("o.status", order.getStatus()); conds.equal("o.status", order.getStatus());
} }
//三期患者 //三期患者
if (StringUtils.equals("3", order.getIsThree())) { if (StringUtils.equals("3", order.getIsThree())) {
conds.equal("au.status", "1"); conds.equal("m.status", "1");
} }
//是否开票 //是否开票
if (StringUtils.isNoneBlank(order.getIsBill()) && StringUtils.equals(order.getIsBill(), "1")) {//未开票 if (StringUtils.isNoneBlank(order.getIsBill()) && StringUtils.equals(order.getIsBill(), "1")) {//未开票
conds.isNull("o.confirm"); conds.isNull("o.confirm");
...@@ -455,16 +452,11 @@ public class OrderController { ...@@ -455,16 +452,11 @@ public class OrderController {
MpAccountsEntity mpAccountsEntity = accountsService.getDetail(accountsId); MpAccountsEntity mpAccountsEntity = accountsService.getDetail(accountsId);
boolean leader = roleService.selectRoleEntityByUserId(userid, Constants.SYSTEM_LEADER); boolean leader = roleService.selectRoleEntityByUserId(userid, Constants.SYSTEM_LEADER);
if (leader) {
userid = 1L;//药店主管
}
boolean manager = roleService.selectRoleEntityByUserId(userid, Constants.SYSTEM_STORAGEMANAGER); boolean manager = roleService.selectRoleEntityByUserId(userid, Constants.SYSTEM_STORAGEMANAGER);
if (manager) { if (leader || manager) {
userid = 1L;//仓管员 userid = 1L;//药店主管
} }
Sort sort = new Sort("o.create_time", OrderType.ASC); Sort sort = new Sort("o.create_time", OrderType.ASC);
Conds conds = new Conds(); Conds conds = new Conds();
conds.equal("o.del_flag", 0); conds.equal("o.del_flag", 0);
...@@ -485,23 +477,31 @@ public class OrderController { ...@@ -485,23 +477,31 @@ public class OrderController {
if (StringUtils.isNoneBlank(order.getCourierNumber())) { if (StringUtils.isNoneBlank(order.getCourierNumber())) {
conds.like("o.courier_number", order.getCourierNumber()); conds.like("o.courier_number", order.getCourierNumber());
} }
//别名
if (StringUtils.isNoneBlank(order.getFansAlias())) {
conds.like("f.store", order.getFansAlias());
}
//订单状态 //订单状态
if (StringUtils.isNoneBlank(order.getStatus())) { if (StringUtils.equals("", order.getStatus())) {
conds.in("o.status", new String[]{"0", "1"});
} else if (StringUtils.isNoneBlank(order.getStatus()) && !StringUtils.equals(order.getStatus(), "all")) {
conds.equal("o.status", order.getStatus()); conds.equal("o.status", order.getStatus());
} }
//三期患者
if (StringUtils.equals("3", order.getIsThree())) {
conds.equal("m.status", "1");
}
//是否开票 //是否开票
if (StringUtils.isNoneBlank(order.getIsBill()) && StringUtils.equals(order.getIsBill(), "1")) {//未开票 if (StringUtils.isNoneBlank(order.getIsBill()) && StringUtils.equals(order.getIsBill(), "1")) {//未开票
conds.isNull("o.confirm"); conds.isNull("o.confirm");
} else if (StringUtils.isNoneBlank(order.getIsBill()) && StringUtils.equals(order.getIsBill(), "0")) {//已开票 } else if (StringUtils.isNoneBlank(order.getIsBill()) && StringUtils.equals(order.getIsBill(), "0")) {//已开票
conds.notNull("o.confirm"); conds.notNull("o.confirm");
} }
//订单开始时间 //订单时间
if (StringUtils.isNoneBlank(order.getOrderStartTime())) { if (StringUtils.isNoneBlank(order.getOrderStartTime())) {
conds.greatEqual("DATE_FORMAT(o.create_time, '%Y-%m-%d')", order.getOrderStartTime()); String[] dateArr = order.getOrderStartTime().split(" - ");
} conds.greatEqual("DATE_FORMAT(o.create_time, '%Y/%m/%d %H:%i')", dateArr[0]);
//订单结束时间 conds.lessEqual("DATE_FORMAT(o.create_time, '%Y/%m/%d %H:%i')", dateArr[1]);
if (StringUtils.isNoneBlank(order.getOrderEndTime())) {
conds.lessEqual("DATE_FORMAT(o.create_time, '%Y-%m-%d')", order.getOrderEndTime());
} }
List<Order> list = orderService.fetchSearchBy(conds, sort, 0, 0, userid, order.getStartOrderAmount(), order.getStartPayAmount()); List<Order> list = orderService.fetchSearchBy(conds, sort, 0, 0, userid, order.getStartOrderAmount(), order.getStartPayAmount());
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<result column="description" property="description"/> <result column="description" property="description"/>
<result column="create_by" property="createBy"/> <result column="create_by" property="createBy"/>
<result column="update_by" property="updateBy"/> <result column="update_by" property="updateBy"/>
<result column="openid" property="openid"/>
</resultMap> </resultMap>
<sql id="sqlWhere"> <sql id="sqlWhere">
...@@ -62,36 +63,69 @@ ...@@ -62,36 +63,69 @@
</sql> </sql>
<sql id="sqlColumns"> <sql id="sqlColumns">
id id,
, number,
number, min_program_no,
min_program_no, store_id,
store_id, hospital_name,
hospital_name, store_name,
store_name, cust_name,
cust_name, weight,
weight, cust_sex,
cust_sex, cust_phone,
cust_phone, symptom,
symptom, syptm_flag,
syptm_flag, doctor_name,
doctor_name, doctor_dpmt_name,
doctor_dpmt_name, doc_status,
doc_status, doc_result,
doc_result, pharm_name,
pharm_name, result,
result, guoms,
guoms, age,
age, pres_url,
pres_url, accounts_id,
accounts_id, del_flag,
del_flag, status,
status, create_time,
create_time, update_time,
update_time, description,
description, create_by,
create_by, update_by,
update_by openid
</sql>
<sql id="listColumns">
t.id,
t.number,
t.min_program_no,
t.store_id,
t.hospital_name,
t.store_name,
t.cust_name,
t.weight,
t.cust_sex,
t.cust_phone,
t.symptom,
t.syptm_flag,
t.doctor_name,
t.doctor_dpmt_name,
t.doc_status,
t.doc_result,
t.pharm_name,
t.result,
t.guoms,
t.age,
t.pres_url,
t.accounts_id,
t.del_flag,
t.status,
t.create_time,
t.update_time,
t.description,
t.create_by,
t.update_by,
t.openid
</sql> </sql>
...@@ -131,7 +165,8 @@ ...@@ -131,7 +165,8 @@
now(), now(),
#{description, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR},
#{createBy, jdbcType=BIGINT}, #{createBy, jdbcType=BIGINT},
#{updateBy, jdbcType=BIGINT} #{updateBy, jdbcType=BIGINT},
#{openid, jdbcType=VARCHAR}
) )
</insert> </insert>
...@@ -143,15 +178,15 @@ ...@@ -143,15 +178,15 @@
</select> </select>
<select id="count" parameterType="java.util.Map" resultType="java.lang.Integer"> <select id="count" parameterType="java.util.Map" resultType="java.lang.Integer">
SELECT COUNT(1) FROM t_aidea_prescription SELECT COUNT(1) FROM t_aidea_prescription t
<include refid="sqlWhere"/> <include refid="sqlWhere"/>
</select> </select>
<select id="fetchSearchByPage" parameterType="java.util.Map" resultMap="resultMap"> <select id="fetchSearchByPage" parameterType="java.util.Map" resultMap="resultMap">
SELECT SELECT
<include refid="sqlColumns"/> <include refid="listColumns"/>
FROM t_aidea_prescription FROM t_aidea_prescription t
<include refid="sqlWhere"/> <include refid="sqlWhere"/>
<if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if> <if test="sort!=null">ORDER BY ${sort.param} ${sort.type}</if>
<if test="limit>0">limit #{offset},#{limit}</if> <if test="limit>0">limit #{offset},#{limit}</if>
...@@ -244,6 +279,9 @@ ...@@ -244,6 +279,9 @@
<if test="updateBy != null"> <if test="updateBy != null">
update_by = #{updateBy, jdbcType=BIGINT}, update_by = #{updateBy, jdbcType=BIGINT},
</if> </if>
<if test="openid != null">
openid = #{openid, jdbcType=BIGINT},
</if>
</set> </set>
where id=#{id,jdbcType=BIGINT} where id=#{id,jdbcType=BIGINT}
</update> </update>
......
...@@ -20,6 +20,9 @@ public class Prescription implements Serializable { ...@@ -20,6 +20,9 @@ public class Prescription implements Serializable {
/* 编码 */ /* 编码 */
@ExportConfig(value = "编码", width = 100, showLevel = 1) @ExportConfig(value = "编码", width = 100, showLevel = 1)
private String number; private String number;
/* openid */
@ExportConfig(value = "人员openid", width = 100, showLevel = 1)
private String openid;
/* 小程序编码 */ /* 小程序编码 */
@ExportConfig(value = "小程序编码", width = 100, showLevel = 1) @ExportConfig(value = "小程序编码", width = 100, showLevel = 1)
private String minProgramNo; private String minProgramNo;
......
package com.cftech.prescription.service; package com.cftech.prescription.service;
import com.alibaba.fastjson.JSONObject;
import com.cftech.prescription.model.Prescription; import com.cftech.prescription.model.Prescription;
import com.cftech.core.generic.GenericService; import com.cftech.core.generic.GenericService;
...@@ -11,5 +12,18 @@ import com.cftech.core.generic.GenericService; ...@@ -11,5 +12,18 @@ import com.cftech.core.generic.GenericService;
*/ */
public interface PrescriptionService extends GenericService<Prescription> { public interface PrescriptionService extends GenericService<Prescription> {
/**
* 创建处方单
* @param appId
* @param openId
* @return
*/
JSONObject generatePre(String appId, String openId);
/**
* 获取用户最新处方单
* @param openId
* @return
*/
JSONObject findLastPrescription(String appId, String openId);
} }
package com.cftech.prescription.service.impl; package com.cftech.prescription.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.cftech.accounts.model.MpAccountsEntity;
import com.cftech.accounts.service.MpAccountsService;
import com.cftech.base.codingrule.utils.CodingruleUtils;
import com.cftech.core.scope.OrderType;
import com.cftech.core.sql.Sort;
import com.cftech.core.util.SystemConfig;
import com.cftech.prescription.model.Prescription; import com.cftech.prescription.model.Prescription;
import com.cftech.prescription.dao.PrescriptionMapper; import com.cftech.prescription.dao.PrescriptionMapper;
import com.cftech.prescription.service.PrescriptionService; import com.cftech.prescription.service.PrescriptionService;
import com.cftech.core.generic.GenericDao; import com.cftech.core.generic.GenericDao;
import com.cftech.core.generic.GenericServiceImpl; import com.cftech.core.generic.GenericServiceImpl;
import com.cftech.core.sql.Conds; import com.cftech.core.sql.Conds;
import com.cftech.product.model.Product;
import com.cftech.product.service.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.connection.ConnectionUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import java.util.List;
/** /**
* 处方单列表ServiceImpl * 处方单列表ServiceImpl
...@@ -16,6 +30,7 @@ import org.springframework.stereotype.Service; ...@@ -16,6 +30,7 @@ import org.springframework.stereotype.Service;
* @author Strive * @author Strive
* @date: 2021-08-18 19:32 * @date: 2021-08-18 19:32
*/ */
@Slf4j
@Service("prescriptionService") @Service("prescriptionService")
public class PrescriptionServiceImpl extends GenericServiceImpl<Prescription> implements PrescriptionService { public class PrescriptionServiceImpl extends GenericServiceImpl<Prescription> implements PrescriptionService {
...@@ -23,9 +38,73 @@ public class PrescriptionServiceImpl extends GenericServiceImpl<Prescription> im ...@@ -23,9 +38,73 @@ public class PrescriptionServiceImpl extends GenericServiceImpl<Prescription> im
@Qualifier("prescriptionMapper") @Qualifier("prescriptionMapper")
private PrescriptionMapper prescriptionMapper; private PrescriptionMapper prescriptionMapper;
@Autowired
private CodingruleUtils codingruleUtils;
@Autowired
private MpAccountsService accountsService;
@Autowired
private ProductService productService;
@Override @Override
public GenericDao<Prescription> getGenericMapper() { public GenericDao<Prescription> getGenericMapper() {
return prescriptionMapper; return prescriptionMapper;
} }
@Override
public JSONObject generatePre(String appId, String openId) {
JSONObject retObj = new JSONObject();
try {
MpAccountsEntity accountsEntity = accountsService.getMpAccountsAppid(appId);
//生成处方单编码
String number = codingruleUtils.getNumber(accountsEntity.getId(), Prescription.class.getName());
Product product = productService.fetchById(SystemConfig.p.getProperty("THREE_DRUGS_ID"));
Prescription prescription = new Prescription();
prescription.setNumber(number);
prescription.setOpenid(openId);
if (this.save(prescription)) {
JSONObject data = new JSONObject();
data.put("prescriptionNo", number);
data.put("productNo", product.getProductNumber());
data.put("unit", product.getUnit());
data.put("storeNo", SystemConfig.p.getProperty("cdfortis.store_no"));
retObj.put("errorNo", 0);
retObj.put("data", data);
} else {
retObj.put("errorNo", 1);
}
} catch (Exception e) {
retObj.put("errorNo", 1);
retObj.put("errorMsg", "生成处方单接口失败");
log.error("生成处方单接口失败:{}", e.getMessage());
e.printStackTrace();
}
return retObj;
}
@Override
public JSONObject findLastPrescription(String appId, String openId) {
JSONObject retObj = new JSONObject();
try {
//获取最新处方单数据
Conds conds = new Conds();
conds.equal("t.openid", openId);
Sort sort = new Sort("t.create_time", OrderType.DESC);
List<Prescription> list = this.fetchSearchByPage(conds, sort, 0, 0);
if (CollectionUtils.isEmpty(list)) {
retObj.put("errorNo", 1);
retObj.put("errorMsg", "暂无处方单信息,请稍后");
return retObj;
}
retObj.put("errorNo", 0);
retObj.put("data", list.get(0));
} catch (Exception e) {
e.printStackTrace();
}
return retObj;
}
} }
\ No newline at end of file
package com.cftech.prescription.web;
import com.alibaba.fastjson.JSONObject;
import com.cftech.prescription.service.PrescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
@RestController
@CrossOrigin
@RequestMapping(value = "mobile/auth/precription")
public class MobilePrecriptionController {
@Autowired
private PrescriptionService prescriptionService;
/**
* 生成处方单编码
* @param appId
* @param openId
* @return
*/
@RequestMapping(value = "generatePrescriptionNumber", method = { RequestMethod.GET }, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public JSONObject generatePrescriptionNumber(@RequestParam String appId,
@RequestParam String openId) {
return prescriptionService.generatePre(appId, openId);
}
/**
* 获取最新处方单
* @param appId
* @param openId
* @return
*/
@RequestMapping(value = "findLastPrescription", method = { RequestMethod.GET }, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public JSONObject findLastPrescription(@RequestParam String appId,
@RequestParam String openId) {
return prescriptionService.findLastPrescription(appId, openId);
}
}
...@@ -156,7 +156,7 @@ public class PrescriptionController { ...@@ -156,7 +156,7 @@ public class PrescriptionController {
if (file == null) { if (file == null) {
return list(request, model); return list(request, model);
} }
// 构造临时路径来存储上传的文件 // 构造临时路径来存储上传的文件
String uploadPath = System.getProperty("java.io.tmpdir"); String uploadPath = System.getProperty("java.io.tmpdir");
File uploadDir = new File(uploadPath); File uploadDir = new File(uploadPath);
if (!uploadDir.exists()) { if (!uploadDir.exists()) {
......
...@@ -62,7 +62,7 @@ public class ReportJob implements Job { ...@@ -62,7 +62,7 @@ public class ReportJob implements Job {
//获取报表用户信息 //获取报表用户信息
Conds condPeople = new Conds(); Conds condPeople = new Conds();
//condPeople.equal("DATE_FORMAT(detail.create_time ,'%Y-%m-%d')", format.format(today)); condPeople.equal("DATE_FORMAT(detail.create_time ,'%Y-%m-%d')", format.format(today));
condPeople.equal("detail.del_flag", Constants.DEL_FLAG_0); condPeople.equal("detail.del_flag", Constants.DEL_FLAG_0);
Sort sortPeople = new Sort("detail.create_time", OrderType.DESC); Sort sortPeople = new Sort("detail.create_time", OrderType.DESC);
List<ReportPeopleInfo> listPeople = reportService.selectReportPeopleInfo(condPeople, sortPeople); List<ReportPeopleInfo> listPeople = reportService.selectReportPeopleInfo(condPeople, sortPeople);
......
...@@ -144,21 +144,23 @@ map.key=OPIBZ-VYIW2-CK7UO-CM4WN-ELY2K-EUFYP ...@@ -144,21 +144,23 @@ map.key=OPIBZ-VYIW2-CK7UO-CM4WN-ELY2K-EUFYP
map.secret_key=W1je0RfMuDsfxCy73M0b3iEfZRF5cAcU map.secret_key=W1je0RfMuDsfxCy73M0b3iEfZRF5cAcU
#\u5fae\u95ee\u8bca\u914d\u7f6e\u53c2\u6570 #\u5FAE\u95EE\u8BCA\u914D\u7F6E\u53C2\u6570
#\u83b7\u53d6\u0074\u006f\u006b\u0065\u006e\u5730\u5740 #\u83B7\u53D6token\u5730\u5740
#cdfortis.token_url=https://171.cdfortis.com/api/verify/token?appid={appid}&flag={flag}&timestamp={timestamp}&sign={sign} #cdfortis.token_url=https://171.cdfortis.com/api/verify/token?appid={appid}&flag={flag}&timestamp={timestamp}&sign={sign}
cdfortis.token_url=https://api.cdfortis.com/api/verify/token?appid={appid}&flag={flag}&timestamp={timestamp}&sign={sign} cdfortis.token_url=https://api.cdfortis.com/api/verify/token?appid={appid}&flag={flag}&timestamp={timestamp}&sign={sign}
#\u5fae\u95ee\u8bca\u0061\u0070\u0070\u0069\u0064 #\u5FAE\u95EE\u8BCAappid
cdfortis.appid=74523ca670a6ceab8095a7476805c649 cdfortis.appid=74523ca670a6ceab8095a7476805c649
#\u5fae\u95ee\u8bca\u0073\u0065\u0063\u0072\u0065\u0074 #\u5FAE\u95EE\u8BCAsecret
cdfortis.secret=c2cf8d3e9a6c715a8046541bf397ccc6 cdfortis.secret=c2cf8d3e9a6c715a8046541bf397ccc6
#\u5fae\u95ee\u8bca\u0066\u006c\u0061\u0067 #\u5FAE\u95EE\u8BCAflag
cdfortis.flag=aidea888 cdfortis.flag=aidea888
#\u5fae\u95ee\u8bca\u836f\u54c1\u6e05\u5355\u4e0a\u4f20\u63a5\u53e3\u5730\u5740 #\u5FAE\u95EE\u8BCA\u836F\u54C1\u6E05\u5355\u4E0A\u4F20\u63A5\u53E3\u5730\u5740
cdfortis.drug_upload_url=https://api.cdfortis.com/api/drug/chain cdfortis.drug_upload_url=https://api.cdfortis.com/api/drug/chain
#\u5fae\u95ee\u8bca\u83b7\u53d6\u56fe\u6587\u5904\u65b9\u5217\u8868\u63a5\u53e3 #\u5FAE\u95EE\u8BCA\u83B7\u53D6\u56FE\u6587\u5904\u65B9\u5217\u8868\u63A5\u53E3
cdfortis.get_fbusi_list_url=https://api.cdfortis.com/api/fbusi/getFbusiList cdfortis.get_fbusi_list_url=https://api.cdfortis.com/api/fbusi/getFbusiList
#\u5fae\u95ee\u8bca\u83b7\u53d6\u56fe\u6587\u5904\u65b9\u56fe\u7247\u63a5\u53e3 #\u5FAE\u95EE\u8BCA\u83B7\u53D6\u56FE\u6587\u5904\u65B9\u56FE\u7247\u63A5\u53E3
cdfortis.get_fbusi_pic_url=https://api.cdfortis.com/api/fbusi/getFbusiPicture cdfortis.get_fbusi_pic_url=https://api.cdfortis.com/api/fbusi/getFbusiPicture
#\u5fae\u95ee\u8bca\u83b7\u53d6\u5355\u6761\u56fe\u6587\u5904\u65b9\u8be6\u60c5\u63a5\u53e3 #\u5FAE\u95EE\u8BCA\u83B7\u53D6\u5355\u6761\u56FE\u6587\u5904\u65B9\u8BE6\u60C5\u63A5\u53E3
cdfortis.get_fbusi_info_url=https://api.cdfortis.com/api/fbusi/getFbusiInfo cdfortis.get_fbusi_info_url=https://api.cdfortis.com/api/fbusi/getFbusiInfo
\ No newline at end of file #\u5FAE\u95EE\u8BCA\u836F\u5E97\u7F16\u7801
cdfortis.store_no=aidea888
\ No newline at end of file
...@@ -318,8 +318,12 @@ ...@@ -318,8 +318,12 @@
"aTargets": [8], "aTargets": [8],
"mData": "address", "mData": "address",
"mRender": function (a, b, c, d) { "mRender": function (a, b, c, d) {
if (a != null && a != '' && a.length >= 4) { if (a != null && a != '') {
return '****' + a.slice(4, a.length); let retObj = "";
for(let i=0; i<a.length; i++) {
retObj+="*";
}
return retObj;
} }
return a; return a;
} }
......
...@@ -158,9 +158,26 @@ public class MpFanssController { ...@@ -158,9 +158,26 @@ public class MpFanssController {
mpFanssVO.setProvince(fanssEntity.getProvince()); mpFanssVO.setProvince(fanssEntity.getProvince());
mpFanssVO.setCity(fanssEntity.getCity()); mpFanssVO.setCity(fanssEntity.getCity());
mpFanssVO.setNickname(fanssEntity.getNickname()); mpFanssVO.setNickname(fanssEntity.getNickname());
mpFanssVO.setSource(fanssEntity.getSource().equals("1") ? "普通关注" : fanssEntity.getSource().equals("2") ? "医师二维码" : fanssEntity.getSource().equals("3") ? "客服二维码" :fanssEntity.getSource().equals("4") ? "医生二维码" :"组织二维码");
mpFanssVO.setSubscribetime( simpleDateFormat.format(fanssEntity.getSubscribetime())); switch (fanssEntity.getSource()) {
list.add(mpFanssVO); case "0":
mpFanssVO.setSource("普通关注");
break;
case "1":
mpFanssVO.setSource("药师二维码");
break;
case "2":
mpFanssVO.setSource("客服二维码");
break;
case "3":
mpFanssVO.setSource("医生二维码");
break;
case "4":
mpFanssVO.setSource("组织二维码");
break;
}
mpFanssVO.setSubscribetime( simpleDateFormat.format(fanssEntity.getSubscribetime()));
list.add(mpFanssVO);
} }
ExcelKit.$Export(MpFanssVO.class,response).toExcel(list,"粉丝列表"); ExcelKit.$Export(MpFanssVO.class,response).toExcel(list,"粉丝列表");
......
...@@ -968,7 +968,7 @@ ...@@ -968,7 +968,7 @@
<source>1.8</source> <source>1.8</source>
<target>1.8</target> <target>1.8</target>
<compilerArguments> <compilerArguments>
<bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath> <bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath>
</compilerArguments> </compilerArguments>
</configuration> </configuration>
</plugin> </plugin>
......
...@@ -346,6 +346,12 @@ ...@@ -346,6 +346,12 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<type>war</type> <type>war</type>
</dependency> </dependency>
<dependency>
<groupId>com.cftech</groupId>
<artifactId>prescription-module-web</artifactId>
<version>1.0-SNAPSHOT</version>
<type>war</type>
</dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>portal-web</finalName> <finalName>portal-web</finalName>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment