elis 2 лет назад
Родитель
Сommit
f6624825f2

+ 6 - 1
src/main/groovy/com/jd/brume/util/ApiUtil.groovy

@@ -73,18 +73,22 @@ class ApiUtil {
 		def map = getDict()
 		JSONObject obj = new JSONObject()
 		Date date = new Date()
-		date = DateUtil.offset(date, DateField.DAY_OF_MONTH, -1)
+//		date = DateUtil.offset(date, DateField.DAY_OF_MONTH, -1)
 		def str = String.valueOf(DateUtil.year(date)).concat('/').concat(String.valueOf(DateUtil.month(date) + 1))
 			.concat('/').concat(String.valueOf(DateUtil.dayOfMonth(date)))
 		obj.set('kssj', "2022/1/11")
 		obj.set('jssj', str)
+		System.out.println(obj)
 		// 封装参数
 		def params = getParams(obj, map)
+		System.out.println(String.valueOf(map['YKB_API_URL']).concat(String.valueOf(map['YKB_DATA_URL'])))
 		def result = HttpRequest.post(String.valueOf(map['YKB_API_URL']).concat(String.valueOf(map['YKB_DATA_URL'])))
 			.form(params)
 			.execute().body()
+		System.out.println(result)
 		def data = JSONUtil.parseObj(result).getStr('data')
 		data = DESUtil.decrypt(data, map['YKB_DES_KEY'])
+		System.out.println(data)
 		def json = JSONUtil.parseObj(data)
 		if (json.getInt('Count') == 0) {
 			return null
@@ -107,6 +111,7 @@ class ApiUtil {
 			}
 		}
 		List<ServiceRecordEntity> record = []
+		System.out.println(arr)
 		for (ar in arr){
 			service.save(ar)
 			def list = corpService.list()

+ 2 - 2
src/main/resources/mapper/ServiceMapper.xml

@@ -122,8 +122,8 @@
 			<if test="type != null and type == 2">
 				AND ts.gdhh LIKE CONCAT(#{deptPrefix}, '%')
 			</if>
-			<if test="type != null and type == 3">
+			<!--<if test="type != null and type == 3">
 				AND ts.gqhh LIKE CONCAT(#{deptPrefix}, '%')
-			</if>
+			</if>-->
 	</select>
 </mapper>

+ 1 - 1
src/main/resources/static/web/view/login.html

@@ -35,7 +35,7 @@
 				</div>
 				<div class="layui-form-item">
 					<input class="brume-check" type="checkbox" name="checkpass" lay-skin="primary" title="记住密码">
-					<span class="brume-forget">忘记密码?</span>
+					<span class="brume-forget"></span>
 				</div>
 				<div class="layui-form-item">
 					<button id="loginBtn" type="button" class="layui-btn layui-btn-normal brume-btn"