添加护理单元接口参数
This commit is contained in:
parent
387b2866b6
commit
631557a82a
|
|
@ -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("操作失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ public class NuBaseInfoEntity implements Serializable {
|
|||
private String sysOrgCode;
|
||||
private String orgCode;
|
||||
private String asyncId;
|
||||
private String izWarning;
|
||||
/**
|
||||
* 余额
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -36,4 +36,6 @@ public interface INuBaseInfoApi {
|
|||
List<NuBaseInfoEntity> queryByOpenId(String openId);
|
||||
|
||||
boolean canBinding(String nuId);
|
||||
|
||||
int izWarngin(NuBaseInfoEntity nuBaseInfoApiDto);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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未同步
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue