添加护理单元接口参数

This commit is contained in:
yangjun 2025-09-28 14:16:34 +08:00
parent 387b2866b6
commit 631557a82a
7 changed files with 30 additions and 0 deletions

View File

@ -61,4 +61,17 @@ public class BaseInfoApi {
}
@AutoLog(value = "护理单元-是否报警")
@ApiOperation(value = "护理单元-是否报警", notes = "护理单元-是否报警")
@PostMapping(value = "/izWarngin")
public Result<String> izWarngin(@RequestBody NuBaseInfoEntity nuBaseInfoApiDto) {
int dto = iNuBaseInfoApi.izWarngin(nuBaseInfoApiDto);
if (dto > 0) {
return Result.OK("操作成功");
} else {
return Result.OK("操作失败");
}
}
}

View File

@ -76,6 +76,7 @@ public class NuBaseInfoEntity implements Serializable {
private String sysOrgCode;
private String orgCode;
private String asyncId;
private String izWarning;
/**
* 余额
*/

View File

@ -36,4 +36,6 @@ public interface INuBaseInfoApi {
List<NuBaseInfoEntity> queryByOpenId(String openId);
boolean canBinding(String nuId);
int izWarngin(NuBaseInfoEntity nuBaseInfoApiDto);
}

View File

@ -125,6 +125,8 @@ public class NuBaseInfo implements Serializable {
*/
@ApiModelProperty(value = "所属部门")
private java.lang.String sysOrgCode;
@ApiModelProperty(value = "是否报警")
private java.lang.String izWarning;
/**
* 是否已同步0已同步 1未同步
*/

View File

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nu.entity.NuBaseInfoEntity;
import com.nu.modules.nubaseinfo.entity.NuBaseInfo;
import org.apache.ibatis.annotations.Param;
@ -23,4 +24,6 @@ public interface NuBaseInfoMapper extends BaseMapper<NuBaseInfo> {
IPage<NuBaseInfo> qyList(Page<NuBaseInfo> page, @Param(Constants.WRAPPER) QueryWrapper<NuBaseInfo> queryWrapper);
NuBaseInfo queryinfoByBuId(@Param(Constants.WRAPPER) QueryWrapper<NuBaseInfo> queryWrapper);
int updateWarningByNuId(NuBaseInfoEntity nuBaseInfoApiDto);
}

View File

@ -25,4 +25,7 @@
select * from nu_base_info
${ew.customSqlSegment}
</select>
<update id="updateWarningByNuId">
update nu_base_info set iz_warning = #{izWarning} where nu_id = #{nuId}
</update>
</mapper>

View File

@ -278,4 +278,10 @@ public class NuBaseInfoServiceImpl extends ServiceImpl<NuBaseInfoMapper, NuBaseI
return "0".equals(nuBaseInfo.getStatus()) || "3".equals(nuBaseInfo.getStatus());
}
@Override
public int izWarngin(NuBaseInfoEntity nuBaseInfoApiDto) {
int dto = baseMapper.updateWarningByNuId(nuBaseInfoApiDto);
return dto;
}
}