Commit 938f2255 by lixinming

no message

parent f04a430e
......@@ -101,11 +101,13 @@ export async function getMonthByUscc(uscc:string) {
*/
export async function monthTableList(state:number, year:number, month:number, page:number) {
let selectParam:any = {};
if (state) selectParam.state = state;
// if (state) selectParam.state = state;
if (state == 2 || state == 3) {
selectParam.draftLock = state == 2 ? true : false;
}
if (year) selectParam.year = year;
if (month) selectParam.month = month;
let dataBaseList = await monthData.findMonthTableList(selectParam, (page-1)*10 );
let count = await monthData.findMonthTableListCount(selectParam);
......
......@@ -3,6 +3,7 @@ import * as fuhuaqiinModel from "../../data/fuHuaQi/fuhuaqi";
import * as enterpriseinModel from "../../data/enterprise/enterprise";
import * as financinginModel from "../../data/enterprise/financing";
import * as monthTableModel from "../../data/fuHuaQi/monthTable";
import * as guanweihuiModel from "../../data/guanWeiHui/guanweihui";
export async function initTable() {
taskinModel.initModel();
......@@ -10,4 +11,5 @@ export async function initTable() {
enterpriseinModel.initModel();
financinginModel.initModel();
monthTableModel.initModel();
guanweihuiModel.initModel();
}
\ No newline at end of file
......@@ -33,9 +33,9 @@ export function setRouter(httpServer) {
*/
async function login(req, res) {
let reqConf = {loginId:'String', pwd:'String'};
let {uscc, pwd} = checkReqParam(reqConf, req.body);
let {loginId, pwd} = checkReqParam(reqConf, req.body);
let userInfo = await guanWeiHuiBiz.login(uscc, pwd);
let userInfo = await guanWeiHuiBiz.login(loginId, pwd);
res.success(userInfo);
}
......
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