Commit 265d6704 authored by liboyang's avatar liboyang

新增页面

parent 05ea13ac
......@@ -98,7 +98,8 @@ public class PersonPostApi {
* @param printTime
* @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");
boolean flag=false;
try {
......
......@@ -58,5 +58,5 @@ public interface PersonPostMapper {
public PersonPostEntity findPostInfoById(int 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'])
console.log(id)
$http({
method: 'GET',
url: "../api/idCard/printPostList" + urlTimeStamp(),
url: "../personPostApi/updatePrintDate" + urlTimeStamp(),
params: {
id: id,
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