main
黄海 2 years ago
parent 6f06c6e80f
commit 8832efa0c3

@ -855,16 +855,16 @@ public class CollectController extends Controller {
*/ */
@Before({POST.class, RepeatIntercetpor.class}) @Before({POST.class, RepeatIntercetpor.class})
@IsLoginInterface({}) @IsLoginInterface({})
@IsNumericInterface({"job_id","status_code"}) @IsNumericInterface({"job_id"})
@EmptyInterface({"deadline_time"}) @EmptyInterface({"deadline_time"})
public void extensionJob(int job_id, String deadline_time, int status_code) throws ParseException { public void extensionJob(int job_id, String deadline_time) throws ParseException {
//操作人员 //操作人员
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id"); String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
//根据人员ID获取人员所在的单位ID //根据人员ID获取人员所在的单位ID
LoginPersonModel personModel = new LoginPersonModel(); LoginPersonModel personModel = new LoginPersonModel();
Record rs = personModel.getLoginInfoByPersonId(person_id); Record rs = personModel.getLoginInfoByPersonId(person_id);
String bureau_id = rs.get("bureau_id"); String bureau_id = rs.get("bureau_id");
cm.extensionJob(job_id, deadline_time, bureau_id, status_code); cm.extensionJob(job_id, deadline_time, bureau_id);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("success", true); map.put("success", true);
map.put("message", "保存成功!"); map.put("message", "保存成功!");

@ -1328,10 +1328,10 @@ public class CollectModel {
* *
* @param job_id * @param job_id
*/ */
public void extensionJob(int job_id, String deadline_time, String bureau_id, int status_code) throws ParseException { public void extensionJob(int job_id, String deadline_time, String bureau_id) throws ParseException {
String sql = "update t_collect_job_target set deadline_time=? where job_id=? and bureau_id=? and status_code=?"; String sql = "update t_collect_job_target set deadline_time=? where job_id=? and bureau_id=?";
Date date = dateFormat.parse(deadline_time); Date date = dateFormat.parse(deadline_time);
Db.update(sql, date, job_id, bureau_id, status_code); Db.update(sql, date, job_id, bureau_id);
} }
/** /**

Loading…
Cancel
Save