Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0da27cab4d
|
|
@ -78,6 +78,10 @@ public class AccCardServiceImpl implements IAccCardService {
|
||||||
if (cardCountByUserId > 0) {
|
if (cardCountByUserId > 0) {
|
||||||
throw new ServiceException("此用户已有卡, 不能再次发放");
|
throw new ServiceException("此用户已有卡, 不能再次发放");
|
||||||
}
|
}
|
||||||
|
int cardCountByCardSerialNum= accCardMapper.selectAccCardCountByCardSerialNum(accountCard.getSerialNum());
|
||||||
|
if (cardCountByCardSerialNum > 0) {
|
||||||
|
throw new ServiceException("卡号已存在, 卡号不能重复");
|
||||||
|
}
|
||||||
int count = accCardMapper.insertAccCard(accountCard);
|
int count = accCardMapper.insertAccCard(accountCard);
|
||||||
saveAccCardChangeRecord(accountCard);
|
saveAccCardChangeRecord(accountCard);
|
||||||
return count;
|
return count;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ public @interface PreventRepeatSubmit
|
||||||
/**
|
/**
|
||||||
* 间隔时间(s),小于此时间视为重复提交
|
* 间隔时间(s),小于此时间视为重复提交
|
||||||
*/
|
*/
|
||||||
public int interval() default 5;
|
public int interval() default 7;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 提示消息
|
* 提示消息
|
||||||
|
|
|
||||||
|
|
@ -299,7 +299,7 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
|
||||||
if (RecipeTypeEnum.DAILY.key().equals(cookRecipeDTO.getRecipeType()) && Objects.nonNull(recipeDateList.get(0))) { //每日循环
|
if (RecipeTypeEnum.DAILY.key().equals(cookRecipeDTO.getRecipeType()) && Objects.nonNull(recipeDateList.get(0))) { //每日循环
|
||||||
List<CookRecipeDetailDTO> recipeDetailList = recipeDateList.get(0).getDetailList();
|
List<CookRecipeDetailDTO> recipeDetailList = recipeDateList.get(0).getDetailList();
|
||||||
LocalDate now = LocalDate.now();
|
LocalDate now = LocalDate.now();
|
||||||
for (int i = 0; i < GlobalConstants.WEEK_DAYS; ++i) {
|
for (int i = 0; i < 3; ++i) { //每日循环菜谱,只生成3天的量,后面的依赖每天的定时任务
|
||||||
CookRecipeDateDTO cookRecipeDateDTO = new CookRecipeDateDTO();
|
CookRecipeDateDTO cookRecipeDateDTO = new CookRecipeDateDTO();
|
||||||
cookRecipeDateDTO.setDetailList(recipeDetailList);
|
cookRecipeDateDTO.setDetailList(recipeDetailList);
|
||||||
cookRecipeDateDTO.setApplyDate(now.plusDays(i));
|
cookRecipeDateDTO.setApplyDate(now.plusDays(i));
|
||||||
|
|
|
||||||
|
|
@ -175,5 +175,5 @@ public class HealthPersonInfo extends BaseEntity {
|
||||||
private String doctorAdvices;
|
private String doctorAdvices;
|
||||||
private String placeIds;
|
private String placeIds;
|
||||||
private String deptIds;
|
private String deptIds;
|
||||||
|
private String encryptedSearchValue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,8 @@ public class HealthPersonInfoServiceImpl implements IHealthPersonInfoService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<HealthPersonInfo> selectHealthPersonInfoList(HealthPersonInfo healthPersonInfo) {
|
public List<HealthPersonInfo> selectHealthPersonInfoList(HealthPersonInfo healthPersonInfo) {
|
||||||
|
String encryptedSearchValue = SM4EncryptUtils.sm4Encrypt(healthPersonInfo.getArticleTitle());
|
||||||
|
healthPersonInfo.setEncryptedSearchValue(encryptedSearchValue);
|
||||||
List<HealthPersonInfo> list=healthPersonInfoMapper.selectHealthPersonInfoList(healthPersonInfo);
|
List<HealthPersonInfo> list=healthPersonInfoMapper.selectHealthPersonInfoList(healthPersonInfo);
|
||||||
if(CollUtil.isNotEmpty(list)) {
|
if(CollUtil.isNotEmpty(list)) {
|
||||||
for(HealthPersonInfo vo : list) {
|
for(HealthPersonInfo vo : list) {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ package com.bonus.canteen.core.kitchen.mapper;
|
||||||
import com.bonus.canteen.core.kitchen.domain.KitchenStaffFace;
|
import com.bonus.canteen.core.kitchen.domain.KitchenStaffFace;
|
||||||
import com.bonus.canteen.core.kitchen.domain.KitchenStaffInfo;
|
import com.bonus.canteen.core.kitchen.domain.KitchenStaffInfo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 人员生物识别特征Mapper接口
|
* 人员生物识别特征Mapper接口
|
||||||
*
|
*
|
||||||
|
|
@ -17,4 +19,6 @@ public interface KitchenStaffFaceMapper {
|
||||||
int deleteStaffFaces(Long[] staffIds);
|
int deleteStaffFaces(Long[] staffIds);
|
||||||
|
|
||||||
int updateStaffFaceState(KitchenStaffInfo kitchenStaffInfo);
|
int updateStaffFaceState(KitchenStaffInfo kitchenStaffInfo);
|
||||||
|
|
||||||
|
KitchenStaffFace selectStaffFaceByStaffId(Long staffId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -195,6 +195,10 @@ public class KitchenStaffInfoServiceImpl implements IKitchenStaffInfoService {
|
||||||
if(!StaffFaceStateEnum.isValidFaceState(kitchenStaffInfo.getFaceState())) {
|
if(!StaffFaceStateEnum.isValidFaceState(kitchenStaffInfo.getFaceState())) {
|
||||||
throw new ServiceException("无效的人脸状态");
|
throw new ServiceException("无效的人脸状态");
|
||||||
}
|
}
|
||||||
|
KitchenStaffFace kitchenStaffFace = kitchenStaffFaceMapper.selectStaffFaceByStaffId(kitchenStaffInfo.getStaffId());
|
||||||
|
if(Objects.isNull(kitchenStaffFace)) {
|
||||||
|
throw new ServiceException("该员工没有人脸信息");
|
||||||
|
}
|
||||||
return kitchenStaffFaceMapper.updateStaffFaceState(kitchenStaffInfo);
|
return kitchenStaffFaceMapper.updateStaffFaceState(kitchenStaffInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="selectAccCardCountByCardSerialNum" parameterType="String" resultType="Integer">
|
<select id="selectAccCardCountByCardSerialNum" parameterType="String" resultType="Integer">
|
||||||
select count(1)
|
select count(1)
|
||||||
from account_card
|
from account_card
|
||||||
where serial_num = #{serialNum}
|
where serial_num = #{serialNum} and card_status in (1,4,5)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectAccCardById" parameterType="Long" resultMap="AccCardResult">
|
<select id="selectAccCardById" parameterType="Long" resultMap="AccCardResult">
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join health_person_body_record d on a.user_id = d.user_id and d.if_latest = 1
|
left join health_person_body_record d on a.user_id = d.user_id and d.if_latest = 1
|
||||||
where 1 = 1
|
where 1 = 1
|
||||||
<if test="articleTitle != null and articleTitle != ''">
|
<if test="articleTitle != null and articleTitle != ''">
|
||||||
and(a.nick_name like concat('%', #{articleTitle}, '%') or a.phonenumber like concat('%', #{articleTitle}, '%') or b.doctor_num like concat('%', #{articleTitle}, '%'))
|
and(a.nick_name like concat('%', #{articleTitle}, '%') or a.phonenumber like concat('%', #{encryptedSearchValue}, '%') or b.doctor_num like concat('%', #{articleTitle}, '%'))
|
||||||
</if>
|
</if>
|
||||||
<if test="chronicIds != null and chronicIds != ''">
|
<if test="chronicIds != null and chronicIds != ''">
|
||||||
and c.chronic_id in (${chronicIds})
|
and c.chronic_id in (${chronicIds})
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,12 @@
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.canteen.core.kitchen.mapper.KitchenStaffFaceMapper">
|
<mapper namespace="com.bonus.canteen.core.kitchen.mapper.KitchenStaffFaceMapper">
|
||||||
|
<select id="selectStaffFaceByStaffId" resultType="com.bonus.canteen.core.kitchen.domain.KitchenStaffFace">
|
||||||
|
select staff_id,photo_url,features,create_by,error_msg,create_time,update_by,update_time
|
||||||
|
from kitchen_staff_face
|
||||||
|
where staff_id = #{staffId}
|
||||||
|
</select>
|
||||||
|
|
||||||
<insert id="insertStaffFace" parameterType="com.bonus.canteen.core.kitchen.domain.KitchenStaffFace">
|
<insert id="insertStaffFace" parameterType="com.bonus.canteen.core.kitchen.domain.KitchenStaffFace">
|
||||||
insert into kitchen_staff_face(staff_id,photo_url,features,create_by,error_msg,create_time,update_by,update_time)
|
insert into kitchen_staff_face(staff_id,photo_url,features,create_by,error_msg,create_time,update_by,update_time)
|
||||||
values(#{staffId},#{photoUrl},#{features},#{createBy},#{errorMsg},#{createTime},#{updateBy},#{updateTime})
|
values(#{staffId},#{photoUrl},#{features},#{createBy},#{errorMsg},#{createTime},#{updateBy},#{updateTime})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue