Commit 265d6704 authored by liboyang's avatar liboyang

新增页面

parent 05ea13ac
...@@ -98,7 +98,8 @@ public class PersonPostApi { ...@@ -98,7 +98,8 @@ public class PersonPostApi {
* @param printTime * @param printTime
* @return * @return
*/ */
public boolean printPostList(@RequestParam("id") int id, @RequestParam("printTime") String printTime) { @RequestMapping("updatePrintDate")
public boolean updatePrintDate(@RequestParam("id") int id, @RequestParam("printTime") String printTime) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
boolean flag=false; boolean flag=false;
try { try {
......
...@@ -58,5 +58,5 @@ public interface PersonPostMapper { ...@@ -58,5 +58,5 @@ public interface PersonPostMapper {
public PersonPostEntity findPostInfoById(int id); public PersonPostEntity findPostInfoById(int id);
@Update("update PERSON_POST SET PRINT_DATE=#{printDateTime} where id=#{id}") @Update("update PERSON_POST SET PRINT_DATE=#{printDateTime} where id=#{id}")
void updateIsPrint(int id, Date printDateTime); void updateIsPrint(@Param("id") int id, @Param("printDateTime") Date printDateTime);
} }
...@@ -55,7 +55,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -55,7 +55,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
console.log(id) console.log(id)
$http({ $http({
method: 'GET', method: 'GET',
url: "../api/idCard/printPostList" + urlTimeStamp(), url: "../personPostApi/updatePrintDate" + urlTimeStamp(),
params: { params: {
id: id, id: id,
printTime: printTime printTime: printTime
......
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