parent
2583171f48
commit
28d00f8750
@ -1,40 +0,0 @@ |
||||
package edu.ncst.ioreport.model; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableLogic; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
@Data |
||||
public abstract class BaseEntity implements Serializable { |
||||
|
||||
@ApiModelProperty(value = "创建时间") |
||||
@TableField(value = "create_time", fill = FieldFill.INSERT) |
||||
private Date createTime; |
||||
|
||||
@ApiModelProperty(value = "创建人") |
||||
@TableField(value = "create_user_id", fill = FieldFill.INSERT) |
||||
private Integer createUserId; |
||||
|
||||
@ApiModelProperty(value = "最后更新时间") |
||||
@TableField(value = "last_modify_time", fill = FieldFill.INSERT_UPDATE) |
||||
private Date lastModifyTime; |
||||
|
||||
@ApiModelProperty(value = "最后更新者") |
||||
@TableField(value = "last_modify_user_id", fill = FieldFill.INSERT_UPDATE) |
||||
private Integer lastModifyUserId; |
||||
|
||||
@ApiModelProperty(value = "删除时间") |
||||
@TableField("delete_time") |
||||
@TableLogic |
||||
private Date deleteTime; |
||||
|
||||
@ApiModelProperty(value = "删除者") |
||||
@TableField("delete_user_id") |
||||
private Integer deleteUserId; |
||||
|
||||
} |
||||
@ -0,0 +1,18 @@ |
||||
package edu.ncst.ioreport.model; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
@ApiModel(value="Department", description="二级学院") |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@TableName("Department") |
||||
public class Department { |
||||
@ApiModelProperty(value = "部门编码") |
||||
private String departmentID; |
||||
@ApiModelProperty(value = "部门名称") |
||||
private String department; |
||||
} |
||||
@ -0,0 +1,15 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="edu.ncst.ioreport.mapper.IORecordsMapper"> |
||||
<resultMap id="Custodian" type="edu.ncst.ioreport.model.IORecords" autoMapping="true"> |
||||
<association property="teacher" columnPrefix="t_" autoMapping="true"/> |
||||
<association property="deptAuditor" columnPrefix="d_" autoMapping="true"/> |
||||
<association property="schoolAuditor" columnPrefix="s_" autoMapping="true"/> |
||||
<association property="validator" columnPrefix="v_" autoMapping="true"/> |
||||
</resultMap> |
||||
|
||||
<insert id="insertAndGetId" useGeneratedKeys="true" keyProperty="id" parameterType="edu.ncst.ioreport.model.IORecords"> |
||||
insert into iorecords (teacherid,iotype,outerResidence,innerResidence,reason,committime,status) |
||||
values(#{teacherID},#{ioType},#{outerResidence},#{innerResidence},#{reason},#{commitTime},#{status}) |
||||
</insert> |
||||
</mapper> |
||||
@ -1 +1 @@ |
||||
<button size="mini" class="submit-button" bindtap="onSubmit" style="background-color: {{bgColor}};color: white;width: 100%; border-radius: 0;">{{title}}</button> |
||||
<button size="mini" formtype = "{{formType}}" style="background-color: {{bgColor}};color: white;width: 100%; border-radius: 0;">{{title}}</button> |
||||
@ -1,3 +1,3 @@ |
||||
<view class="form-container" bindyFormSubmit="onSubmit"> |
||||
<form class="form-container" bindsubmit="{{bindsubmit}}"> |
||||
<slot></slot> |
||||
</view> |
||||
</form> |
||||
@ -1,22 +1,73 @@ |
||||
<navigationBar title="进校报备"></navigationBar> |
||||
<yform rules="{{rules}}" bindonSubmit="onSubmit"> |
||||
<view class="card-container"> |
||||
<view class="card-col-1"> |
||||
<yinput onlyRead padding="16rpx" label="工号:" bindValue="ID" defaultValue="{{id}}"></yinput> |
||||
<yinput onlyRead padding="16rpx" label="工号:" bindValue="teacherID" defaultValue="{{teacherID}}"></yinput> |
||||
<yinput onlyRead padding="16rpx" label="姓名:" bindValue="name" defaultValue="{{name}}"></yinput> |
||||
</view> |
||||
<yinput onlyRead padding="16rpx" label="联系方式:" bindValue="phone" defaultValue="{{phone}}"></yinput> |
||||
<yinput onlyRead padding="16rpx" label="学院: " bindValue="depart" defaultValue="{{department}}"></yinput> |
||||
<yinput onlyRead padding="16rpx" label="联系方式:" bindValue="mobile" defaultValue="{{mobile}}"></yinput> |
||||
<yinput onlyRead padding="16rpx" label="学院: " bindValue="dept" defaultValue="{{dept.department}}"></yinput> |
||||
</view> |
||||
|
||||
<form bindsubmit="onSubmit" rules="{{rules}}"> |
||||
|
||||
<view class="weui-cells__title">进出校报备信息填写</view> |
||||
<view class="weui-cells weui-cells_form"> |
||||
<view class="weui-cell weui-cell_active"> |
||||
<view class="weui-cell__hd"> |
||||
<label class="weui-label" style="width: 5em;">报备类型</label> |
||||
</view> |
||||
<view class="weui-cell__bd"> |
||||
<picker aria-role="combobox" bindchange="ioTypeChange" range="{{ioTypesArray}}"> |
||||
<view class="weui-select" style="height:24px;line-height: 24px;">{{ioType}}</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="weui-cell weui-cell_active"> |
||||
<view class="weui-cell__hd"> |
||||
<view class="weui-label" id="js_date" aria-hidden="true">申请日期</view> |
||||
</view> |
||||
<view class="weui-cell__bd"> |
||||
<picker mode="date" aria-role="combobox" aria-labelledby="js_date" start="{{applyDate}}" bindchange="bindDateChange"> |
||||
<view class="weui-input">{{applyDate}}</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="weui-cell weui-cell_active"> |
||||
<view class="weui-cell__hd"> |
||||
<view class="weui-label" aria-hidden="true" id="js_time">申请时间</view> |
||||
</view> |
||||
<view class="weui-cell__bd"> |
||||
<picker aria-role="combobox" aria-labelledby="js_time" mode="time" bindchange="bindTimeChange"> |
||||
<view class="weui-input">{{applyTime}}</view> |
||||
</picker> |
||||
</view> |
||||
</view> |
||||
<view class="weui-cell weui-cell_active"> |
||||
<view class="weui-cell__hd"> |
||||
<label class="weui-label" style="width: 5em;">校外住址</label> |
||||
</view> |
||||
<view class="weui-cell__bd weui-flex"> |
||||
<input class="weui-input" required placeholder="请输入校外住址" placeholder-class="weui-input__placeholder" name="outerResidence" value="{{outerResidence}}"/> |
||||
</view> |
||||
</view> |
||||
<view class="weui-cell weui-cell_active"> |
||||
<view class="weui-cell__hd"> |
||||
<label class="weui-label" style="width: 5em;">校内住址</label> |
||||
</view> |
||||
<view class="weui-cell__bd weui-flex"> |
||||
<input class="weui-input" required placeholder="请输入校内住址" placeholder-class="weui-input__placeholder" name="innerResidence" value="{{innerResidence}}"/> |
||||
</view> |
||||
</view> |
||||
<view class="weui-cell weui-cell_active"> |
||||
<view class="weui-cell__bd"> |
||||
<textarea class="weui-textarea" required placeholder="请填写进出校事由" name="reason" bindinput="inputs" placeholder-class="weui-input__placeholder" rows="3"> |
||||
</textarea> |
||||
<view aria-role="option" class="weui-textarea-counter"> |
||||
<span>已输入{{text_len?text_len:0}}字</span>/50 |
||||
</view> |
||||
</view> |
||||
<view class="input-container"> |
||||
<sysInput label="报备类型: " bindValue="orderType" defaultValue="1" style="display: none;" /> |
||||
<view class="card-col-1"> |
||||
<ydatePicker label="进校日期" bindValue="enterDate" /> |
||||
<ytimePicker label="进校时间" bindValue="enterTime" /> |
||||
</view> |
||||
<sysInput label="校内居住地: " bindValue="innerLocation" /> |
||||
<sysInput label="校外居住地: " bindValue="outerLocation" /> |
||||
<sysTextarea label="事由: " bindValue="reason" /> |
||||
|
||||
</view> |
||||
<ybutton class="submit-button" title="申请" bgColor="var(--color-primary)" /> |
||||
</yform> |
||||
<button class="submit-button" style="width: 100%;" formType="submit">提交</button> |
||||
</form> |
||||
@ -1 +0,0 @@ |
||||
/* pages/report/enter/enterReport.wxss */ |
||||
@ -0,0 +1,21 @@ |
||||
"use strict"; |
||||
Object.defineProperty(exports, "__esModule", { value: true }); |
||||
exports.request = exports.URL = void 0; |
||||
var util_1 = require("../../../utils/util"); |
||||
exports.URL = '/api/records/add'; |
||||
/** |
||||
* @desc 根据记录ID获取记录详细信息 |
||||
*/ |
||||
function request(bodyParams, options) { |
||||
var url = '/api/records/add'; |
||||
var fetchOption = Object.assign({ |
||||
url: url, |
||||
method: 'POST', |
||||
headers: { |
||||
'Content-Type': 'application/json', |
||||
}, |
||||
data: bodyParams, |
||||
}, options); |
||||
return util_1.fetch(fetchOption); |
||||
} |
||||
exports.request = request; |
||||
@ -0,0 +1,29 @@ |
||||
import { fetch } from '../../../utils/util'; |
||||
|
||||
export type ResponseType = Promise<defs.ResultVO<defs.IORecords>>; |
||||
|
||||
export const URL = '/api/records/add'; |
||||
|
||||
/** |
||||
* @desc 根据记录ID获取记录详细信息 |
||||
*/ |
||||
export function request( |
||||
bodyParams: defs.IORecords, |
||||
options?: WechatMiniprogram.RequestOption, |
||||
): ResponseType { |
||||
let url = '/api/records/add'; |
||||
|
||||
const fetchOption = Object.assign( |
||||
{ |
||||
url: url, |
||||
method: 'POST', |
||||
headers: { |
||||
'Content-Type': 'application/json', |
||||
}, |
||||
|
||||
data: bodyParams, |
||||
}, |
||||
options, |
||||
); |
||||
return fetch(fetchOption); |
||||
} |
||||
@ -1,7 +1,8 @@ |
||||
/** |
||||
* @description 出入校报备记录控制器 |
||||
*/ |
||||
import * as addIORecord from './addIORecord'; |
||||
import * as getIORecordByID from './getIORecordByID'; |
||||
import * as getIORecordsList from './getIORecordsList'; |
||||
|
||||
export { getIORecordByID, getIORecordsList }; |
||||
export { addIORecord, getIORecordByID, getIORecordsList }; |
||||
|
||||
Loading…
Reference in new issue